fix(session min): fix weird subcommands and messages, copypasta from tasks - #845
Conversation
📝 WalkthroughWalkthrough
ChangesSession package installation flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant min
participant SessionChannel
participant PackageResolver
participant Context
participant minimal.toml
min->>SessionChannel: add-session packages
SessionChannel->>PackageResolver: resolve and install
PackageResolver-->>SessionChannel: resolved packages
SessionChannel->>Context: SessionPackages and package list
Context->>minimal.toml: persist session.packages
Possibly related issues
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/mctx/src/min_helper.sh`:
- Line 146: Remove the --task option from the min_helper.sh help synopsis for
min add. Keep the remaining --session, --build, and --runtime options and
package argument unchanged, matching the supported min add contract.
In `@crates/minimald/src/env_min_helper.sh`:
- Line 89: Update the fallback usage message in __min_add to remove the
unsupported --task option and list only the supported --session, --build, and
--runtime flags, matching the corrected usage text.
In `@crates/minimald/src/env.rs`:
- Around line 549-556: Update install and the add-build, add-runtime, and
add-session branches in handle so install reports success or failure; only
return the dependency tuple and allow ctx.add_deps/minimal.toml persistence when
installation succeeds, while preserving existing error output and parse-failure
behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 93bd5720-4919-4e0a-87ee-6e8fe7239fa0
📒 Files selected for processing (4)
crates/mctx/src/lib.rscrates/mctx/src/min_helper.shcrates/minimald/src/env.rscrates/minimald/src/env_min_helper.sh
Fixes: #839
Summary by CodeRabbit
New Features
add-transientcommand for install-only package additions.min addto support session, build, and runtime package targets.Bug Fixes
Documentation