martha up refuses a session another root's crew opened (martha#197) #200
Loading…
Reference in a new issue
No description provided.
Delete branch "vesta/197-shared-tmux-session"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (fix):
martha upin a second clone of one crew either opens the crew or says why it cannot, and never reports another root's session as this crew's; and the namemartha initwrites carries no double dash, and no claim the code does not keep.Refs #197
What changed:
upreads the root the crew's session was opened in (#{session_path}, whichupitself sets to the crew's root) and refuses a session another root's crew opened, naming that root, before it opens or closes any window.crewIdForreads a run of dashes as one and takes off a dash the 24-character cut leaves, so no name carries--.declare_a_solo_crew.tsand the #192 case's title say what holds: two workspaces that each ran init are named apart, and a declaration copied into another workspace keeps its name, whichuprefuses to open into.Tests, written red first:
upneither reports the first crew's session nor opens a window in it;crewIdForcase with the folder's word ending on a dash exactly where the cut falls, and one holding a run of dashes.Whole
npm teston5095d8f5: 5505 tests, 0 fail, 38 skipped. typecheck and lint clean.bc8c2c25into the crew-tmux session branch (martha#197)Attempt 1 of
ci.ymlonfdc70005is red. Recorded here before any rerun, so a rerun cannot hide it.src/drive_the_recorded_host/a_switch_does_not_move_the_owners_default.node-test.ts:173"on the recorded host a switch leaves an owner with no model where they were: no file key appears (martha#359)"
Error: ENOENT: no such file or directory, open '<run temp>/.local/state/martha/crews/756ad7a6…/model/builder.model.json'at
theRecordOf(line 116), called from line 188.src/declare_a_solo_crewandsrc/open_the_crew_in_tmuxonly; this file is untouched by it.Mars rules on it. No rerun from here until then.