8000 fix(min): the retired session activate tip names min session start --detach by agent-137 · Pull Request #4028 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(min): the retired session activate tip names min session start --detach - #4028

Merged
mitodrummer merged 2 commits into
mainfrom
fix/activate-tip-detach
Dec 4, 2026
Merged

mitodrummer merged 2 commits into
mainfrom
fix/activate-tip-detach

Conversation

@agent-137
@agent-137 agent-137 commented Dec 4, 2026 •
Copy link
Copy Markdown
Member

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 activate to plain min session start. The two attach differently:

  • 0.7: min session activate attached only with --attach. In v0.7.4 cli.rs, the flag's help reads "Automatically attach after creation".
  • 0.8: min session start attaches unless --detach is given (BCLI-029).

So a script that followed the tip now attaches to the session and never returns.

The fix

  • The tip (crates/minimal/src/cli.rs) now reads: "min session activate was removed: start a session without attaching, as activate did, with min session start --detach. For min session activate --attach, run min session start". It still only names the replacement and exits 2, as BCLI-042 and Karl's 2026-12-02 ruling require.
  • The Old command names table (docs/concepts/sessions.md) maps activate to min session start --detach, and activate --attach to min session start. BCLI-042's sub-rule takes its replacements from this table, so the spec text needs no change.
  • The 0.8 upgrade notes (docs/guide/install.md) say that min session start attaches, so a script that ran activate should run min session start --detach. The "From 0.7" guide only links the table.

Tests

removed_spellings_name_their_replacement pins the new tip text for both session activate and session activate --attach. An existing test already parses min session start --detach.

  • cargo nextest run -p minimal: 1368 tests pass.
  • clippy -D warnings and fmt are clean.
  • Vale is clean on the changed doc lines.

🤖 Generated with Claude Code

https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g

Summary by CodeRabbit

  • Bug Fixes
    • The retired min session activate command now provides a replacement that matches its behavior: use min session start --detach to start without attaching, or min session start for the former --attach behavior.
  • Documentation
    • Updated session and upgrade guidance to clarify that min session start attaches by default and that scripts using activate without attaching should use --detach.

…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
@agent-137
agent-137 requested a review from a team as a code owner December 4, 2026 01:58
@agent-137 agent-137 added the priority:must-have Must be done. Applied by the inbox-route classifier or a human. label Dec 4, 2026
@agent-137
Copy link
Copy Markdown
Member Author

/arch-review

@coderabbitai
coderabbitai Bot commented Dec 4, 2026 •
Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The retired min session activate command now recommends min session start --detach by default and min session start when --attach is specified. Tests and documentation reflect these mappings.

Changes: Session command guidance

Layer / File(s) Summary
Update replacement guidance and references
crates/minimal/src/cli.rs, crates/minimal/src/tests.rs, docs/concepts/sessions.md, docs/guide/install.md
The retired command hint and migration test distinguish the default and --attach cases. The session reference and upgrade notes document the corresponding replacement commands and attach behavior.

Estimated code review effort: 2 (Simple) | ~8 minutes

Possibly related issues

Possibly related PRs

  • gominimal/minimal#3934: This PR introduced the retired-command replacement hint and compatibility table that this change updates.

Suggested reviewers: mitodrummer, jessie-minimal

Merge Risk: Minimal · up to bb6d5

The retired min session activate hint now points to the correct replacement for each attach mode, so migrated scripts should no longer hang. The docs and test match the new guidance, and merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title uses a Conventional Commit subject (fix(min): ...) and names the specific change: the retired session activate tip now names min session start --detach. It matches the changeset, which updat…
Description check Passed The description follows the template's required parts. It has a Summary-equivalent that explains the bug and the fix, a Testing section that lists cargo nextest, clippy, fmt, and Vale results, and it …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title uses a Conventional Commit subject (fix(min): ...) and names the specific change: the retired session activate tip now names min session start --detach. It matches the changeset, which updates the tip in cli.rs, the test, the sessions table, and the install notes. It is lower-case, imperative-ish, and has no trailing period. It is 75 characters, within a reasonable length for a single-line subject.

Full details: Description check

Explanation

The description follows the template's required parts. It has a Summary-equivalent that explains the bug and the fix, a Testing section that lists cargo nextest, clippy, fmt, and Vale results, and it links the related issue status (not yet filed, to be linked). The Checklist items are not ticked. The Checklist asks for docs to be updated if behavior changed, and the PR updates docs. The BREAKING CHANGE footer item is not addressed, and the description does not say whether the change is breaking. The description also has no explicit Refs or Closes line because the issue is not filed yet. These gaps are minor.

Resolution

Optionally tick the Checklist items, state whether the change is breaking (it changes a retired-command tip and docs, so probably not), and add the issue link once filed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Vale (3.24.0)

{
"Line": 13,
"Path": ".vale.ini",
"Text": "Style 'ste' isn't on the StylesPath (/styles). If it's a package, run vale sync.",
"Code": "E201",
"Span": 23
}

A rabbit checks the command trail,
start --detach leaves no trail to attach.
With --attach, the terminal stays near,
The tests confirm each path is clear.
The docs now match the signs,
And the rabbit hops through session lines.

Recent review info 8000

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 848fe2ae-c464-4504-9876-f60953f86751
Commits

Reviewing files that changed from the base of the PR and between 472a6a7 and bb6d5d3.

Files selected for processing: 4

  • crates/minimal/src/cli.rs
  • crates/minimal/src/tests.rs
  • docs/concepts/sessions.md
  • docs/guide/install.md

Included review availability: This review used your included allowance. Your plan provides up to 5 included reviews per hour; 0 remain after this review.

@minimal-foundry
minimal-foundry Bot commented Dec 4, 2026 •
Copy link
Copy Markdown
Contributor

Approved: every review thread resolved at bb6d5d3b166e.

@norrietaylor resolved the last thread, which releases the approval this review had withheld.

Nothing to do.

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

8000

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approved

Verdict APPROVE — No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Dec 4, 2026
@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread crates/minimal/src/cli.rs Resolved
@agent-137
Copy link
Copy Markdown
Member Author

/arch-review

@minimal-arch minimal-arch Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approval withheld

Verdict COMMENT — APPROVE withheld: 1 unresolved thread — norrietaylor crates/minimal/src/cli.rs. No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-foundry minimal-foundry Bot removed the review:approved minimal-review approved the current head label Dec 4, 2026
@norrietaylor norrietaylor 8BD0 left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Dec 4, 2026
@mitodrummer
mitodrummer added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit b490814 Dec 4, 2026
45 checks passed
@mitodrummer
mitodrummer deleted the fix/activate-tip-detach branch December 4, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:must-have Must be done. Applied by the inbox-route classifier or a human. review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0