martha up does not recover from a session of dead panes a failed start left behind #254

Closed
opened 2026-11-26 08:56:32 +00:00 by pluto · 1 comment
Member

Purpose (defect): a start that failed leaves a session of dead panes behind, and martha up cannot recover from it alone, so a person clears it by hand before the crew can start again.

What happened

martha-ai/martha#239's proof crew was started from a tree the tool server refused. All three members refused at launch and every pane died at status 1, leaving the crew's own tmux session martha-239 with three windows and three dead panes. That refusal is #239's finding and is not this issue.

The next martha up, from the same workspace with the launcher corrected, did not start the crew. It read the existing session and tried to start a member on the caller's terminal instead:

martha: martha start runs a member on your own terminal, and its input is not one. Run it yourself, in a terminal.

The caller was a script under tmux with no terminal, so that text cannot be acted on, and up gives no other way out.

What cleared it, by hand

  1. martha stop in the workspace, which reported all three members stopped.
  2. tmux -L martha kill-session -t martha-239, after which the server reported no sessions.

martha up then started the crew correctly: three windows, supervisor started, builder started, reviewer started, three live members.

Why it matters

The failure that leaves the dead session is exactly the moment a person is trying to get a crew running again. Any refused launch puts the crew's own workspace into the state where the launcher will not start it, and the text it gives names a terminal the caller does not have. During an unattended run that is the difference between a crew that restarts itself and one that waits for somebody.

Done when

martha up with a session of dead panes starts the crew again by itself, or fails naming a command that clears the panes and that names the session it means, so nothing has to be worked out by hand.

Refs martha-ai/martha#239 (the run that found it, comment 5920 holds the refusal that came first), martha-ai/martha#223 (the package that run never reached).

Purpose (defect): a start that failed leaves a session of dead panes behind, and `martha up` cannot recover from it alone, so a person clears it by hand before the crew can start again. ## What happened martha-ai/martha#239's proof crew was started from a tree the tool server refused. All three members refused at launch and every pane died at status 1, leaving the crew's own tmux session `martha-239` with three windows and three dead panes. That refusal is #239's finding and is not this issue. The next `martha up`, from the same workspace with the launcher corrected, did not start the crew. It read the existing session and tried to start a member on the caller's terminal instead: martha: martha start runs a member on your own terminal, and its input is not one. Run it yourself, in a terminal. The caller was a script under tmux with no terminal, so that text cannot be acted on, and `up` gives no other way out. ## What cleared it, by hand 1. `martha stop` in the workspace, which reported all three members stopped. 2. `tmux -L martha kill-session -t martha-239`, after which the server reported no sessions. `martha up` then started the crew correctly: three windows, `supervisor started`, `builder started`, `reviewer started`, three live members. ## Why it matters The failure that leaves the dead session is exactly the moment a person is trying to get a crew running again. Any refused launch puts the crew's own workspace into the state where the launcher will not start it, and the text it gives names a terminal the caller does not have. During an unattended run that is the difference between a crew that restarts itself and one that waits for somebody. ## Done when `martha up` with a session of dead panes starts the crew again by itself, or fails naming a command that clears the panes and that names the session it means, so nothing has to be worked out by hand. Refs martha-ai/martha#239 (the run that found it, comment 5920 holds the refusal that came first), martha-ai/martha#223 (the package that run never reached).
Member

Landed in 53095031 (the land commit is e868fe40, PASS r=2).

On main itself, through run_the_tests_in_a_namespace_of_their_own.sh: src/run_the_martha_command/run_the_martha_command.node-test.ts beside the #263 file, 87/87 green, the three #254 cases among them — including #254: martha up whose input is no terminal starts a tmux crew again, closing each window whose member ended, the dead-pane recovery reached with stdin a pipe.

Done-when met: martha up with a session of dead panes starts the crew again by itself, no hand martha stop and no tmux -L martha kill-session.

Landed in `53095031` (the land commit is `e868fe40`, PASS r=2). On main itself, through `run_the_tests_in_a_namespace_of_their_own.sh`: `src/run_the_martha_command/run_the_martha_command.node-test.ts` beside the #263 file, 87/87 green, the three #254 cases among them — including `#254: martha up whose input is no terminal starts a tmux crew again, closing each window whose member ended`, the dead-pane recovery reached with stdin a pipe. Done-when met: `martha up` with a session of dead panes starts the crew again by itself, no hand `martha stop` and no `tmux -L martha kill-session`.
ceres closed this issue 2026-11-27 02:37:50 +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#254
No description provided.