Repository navigation
fix(min): the retired session activate tip names min session start --detach - #4028
Conversation
…detach 0.7's `min session activate` attached only with `--attach` (v0.7.4 cli.rs), and 0.8's `min session start` attaches unless `--detach` is given (BCLI-029). The tip mapped `activate` to plain `min session start`, so a script migrated by it hung in an attached session. The tip, and the Old command names table it follows (BCLI-042), now map `activate` to `min session start --detach` and `activate --attach` to `min session start`. The 0.8 upgrade notes in the install guide say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Approved: every review thread resolved at @norrietaylor resolved the last thread, which releases the approval this review had withheld. Nothing to do. |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The tip now maps min session activate to min session start --detach. This agrees with the design: start attaches unless --detach is given (architecture.md line 492). Line 425 also names min session start --detach to create without attaching. The 0.7 activate attached only with --attach, so the old tip was wrong for scripts. The tip still only names the replacement and exits 2. No condition.
Ruled at 6a20905 against gominimal/arch@c73026f5ba2b by claude-opus-5-5.
8000There was a problem hiding this comment.
The fix is correct. v0.7.4's ActivateArgs has --attach ("Automatically attach after creation", default off), and at this head min session start attaches unless --detach is given (SessionStartArgs.detach, cli.rs:1583), so the old tip sent a 0.7 script into an attached session. min session start --detach exists and parses as written.
8000
removed_spellings_name_their_replacement pins the new text for both session activate and session activate --attach, and the existing -C cases still match. No spec or script quotes the old tip text. The Old command names table and the 0.8 upgrade notes now say the same thing as the tip. One low wording point is inline.
Generated by Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The tip now maps min session activate to min session start --detach, and activate --attach to min session start. This matches the Command reference at line 497: a start attaches unless --detach is given. The removed spelling still exits 2, and the test pins the full text for both spellings. Since the earlier PASS, the change only rewords the tip and tightens the test. No condition is open.
Ruled at bb6d5d3 against gominimal/arch@5cfb8febb353 by claude-opus-5-5.
There was a problem hiding this comment.
Re-review at bb6d5d3. The new commit only rewords the min session activate tip in crates/minimal/src/cli.rs and updates removed_spellings_name_their_replacement to pin the full new text, including the "was removed:" prefix. The tip still names min session start --detach for activate and min session start for activate --attach, and the session activate --attach case still matches. Nothing in the tree still quotes the old "as activate did" wording, and the docs did not change.
Earlier finding: Low (one sentence carried three facts, and "as activate did" read as if activate still worked): fixed. The clause is gone, and the first sentence now uses the "was removed: with " form that every other retired-verb tip uses. No new findings.
Generated by Claude Code
There was a problem hiding this comment.
minimal-review — approved
Verdict APPROVE — every review thread is resolved; @norrietaylor closed the last one. The review of bb6d5d3b166e withheld this approval on the threads open then.
Addresses an RC test-triage finding: a script migrated from 0.7 hangs in an attached session. The issue is not filed yet, and this PR will link it.
The bug
The retired-verb tip from #3934 maps
min session activateto plainmin session start. The two attach differently:min session activateattached only with--attach. In v0.7.4cli.rs, the flag's help reads "Automatically attach after creation".min session startattaches unless--detachis given (BCLI-029).So a script that followed the tip now attaches to the session and never returns.
The fix
crates/minimal/src/cli.rs) now reads: "min session activatewas removed: start a session without attaching, asactivatedid, withmin session start --detach. Formin session activate --attach, runmin session start". It still only names the replacement and exits 2, as BCLI-042 and Karl's 2026-12-02 ruling require.docs/concepts/sessions.md) mapsactivatetomin session start --detach, andactivate --attachtomin session start. BCLI-042's sub-rule takes its replacements from this table, so the spec text needs no change.docs/guide/install.md) say thatmin session startattaches, so a script that ranactivateshould runmin session start --detach. The "From 0.7" guide only links the table.Tests
removed_spellings_name_their_replacementpins the new tip text for bothsession activateandsession activate --attach. An existing test already parsesmin session start --detach.cargo nextest run -p minimal: 1368 tests pass.-D warningsand fmt are clean.🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
Summary by CodeRabbit
min session activatecommand now provides a replacement that matches its behavior: usemin session start --detachto start without attaching, ormin session startfor the former--attachbehavior.min session startattaches by default and that scripts usingactivatewithout attaching should use--detach.