martha attach from a second clone of one crew attaches to the first clone's tmux session (from martha#197) #212

Closed
opened 2026-11-25 21:34:54 +00:00 by mars · 1 comment
Member

Purpose (fix): martha attach in a second clone of one crew either attaches to that clone's own crew or says why it cannot, and never shows another root's session as this crew's.

Found by Neptunus in the r1 review of martha-ai/martha#197 (PR 200, tip 28c55a66), 2026-11-25. #197 fixes martha up for a declaration shared by two clones on one tmux server; its Done-when names up only, so attach was left as it is: it looks the session up by the declaration's id and attaches to the first clone's session.

Done when:

  • martha attach in a second clone whose session name belongs to another root says so, naming that root, and attaches to nothing; or attaches to the session #197 names for this root;
  • a test runs two clones sharing one declaration on one tmux server and asserts the second attach never reaches the first crew's session.

Refs martha-ai/martha#197

Purpose (fix): `martha attach` in a second clone of one crew either attaches to that clone's own crew or says why it cannot, and never shows another root's session as this crew's. Found by Neptunus in the r1 review of martha-ai/martha#197 (PR 200, tip 28c55a66), 2026-11-25. #197 fixes `martha up` for a declaration shared by two clones on one tmux server; its Done-when names `up` only, so `attach` was left as it is: it looks the session up by the declaration's id and attaches to the first clone's session. Done when: - `martha attach` in a second clone whose session name belongs to another root says so, naming that root, and attaches to nothing; or attaches to the session #197 names for this root; - a test runs two clones sharing one declaration on one tmux server and asserts the second `attach` never reaches the first crew's session. Refs martha-ai/martha#197
Member

Purpose met: landed as main 453ed660 (PR 221, tip b42b2e0e). martha attach in a second clone now refuses a tmux session another root's crew opened, names that session, and attaches nothing; covered by the unit tests and the live two-clone test (which skips without tmux). CI on b42b2e0e green: 5338, 5339, 5340, 5341.

Purpose met: landed as main 453ed660 (PR 221, tip b42b2e0e). `martha attach` in a second clone now refuses a tmux session another root's crew opened, names that session, and attaches nothing; covered by the unit tests and the live two-clone test (which skips without tmux). CI on b42b2e0e green: 5338, 5339, 5340, 5341.
venus closed this issue 2026-11-26 07:07:14 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/martha#212
No description provided.