Repository navigation
fix: fix(min): offer min init scaffold when add has no minimal.toml - #1538
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (2)
Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthroughThe scaffold helper now accepts an optional notice for skipped or declined scaffolding. The ChangesScaffolding and dependency addition
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant cmd_add
participant Context_new
participant offer_mfile_scaffold
participant User
cmd_add->>Context_new: create project context
Context_new-->>cmd_add: report missing minimal.toml
cmd_add->>offer_mfile_scaffold: offer scaffolding
offer_mfile_scaffold->>User: request confirmation
User-->>offer_mfile_scaffold: accept scaffolding
offer_mfile_scaffold-->>cmd_add: return after scaffolding
cmd_add->>Context_new: retry context creation
Suggested reviewers: Merge Risk: ⚪ Minimal · up to When 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
A rabbit checks the project door, Comment |
|
This PR has merge conflicts with its base branch ( Conflicted files:
Reason it's not trivial: conflict touches Rust source ( Recommended action: rebase or merge manually, then remove the
|
min add --session <pkg> in a directory without a minimal.toml died with the bare string "minimal.toml: not found" instead of offering the min init scaffold that min session activate already shows. Catch the MFile(NotFound) error from Context::new in cmd_add, offer the scaffold, retry, and fall back to the min init hint that min update already gives. Parameterize offer_mfile_scaffold's decline notice so cmd_add can suppress the session-specific wording. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
d6f7480 to
5bc8bc0
Compare
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABR5q44A
min add --session <pkg>in a directory without aminimal.tomldied with the bare stringminimal.toml: not foundinstead of offering themin initscaffold thatmin session activatealready shows.cmd_addnow catches theMFile(NotFound)error fromContext::new, offers the scaffold, retries, and falls back to themin inithint thatmin updatealready gives.offer_mfile_scaffoldtakes an optional decline notice socmd_addcan suppress the session-specific wording.Verification
cargo fmt --all --check --manifest-path target/Cargo.tomlcargo clippy --workspace --locked --manifest-path target/Cargo.toml -- -D warningscargo build --workspace --locked --manifest-path target/Cargo.tomlcargo test --locked --manifest-path target/Cargo.toml -p minimalSummary by CodeRabbit
minimal.tomlfile, the app now offers to set up the project configuration and retries the command if setup succeeds.min inithint.