fix(minimald): improve logic for scaffolding session minimal.toml - #780
Conversation
📝 WalkthroughWalkthroughThe temporary mctx scaffolding module and re-export were removed. Missing MFILE handling now uses mfile detection and initializes the project through ChangesMFILE initialization
Estimated code review effort: 2 (Simple) | ~10 minutes 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: 1
🤖 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/minimald/src/session.rs`:
- Around line 893-902: Update the missing-file initialization branch in the
session method using mfile::File::from_dir and op::InitProject so plan.toml_path
is created with an exclusive no-replace write rather than std::fs::write. Treat
an AlreadyExists error as Ok(()) and propagate other filesystem errors,
preserving the generated plan content when no concurrent upload exists.
🪄 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: 74571909-1494-4abf-bb37-31ade258ff7d
📒 Files selected for processing (3)
crates/mctx/src/lib.rscrates/mctx/src/scaffold.rscrates/minimald/src/session.rs
💤 Files with no reviewable changes (2)
- crates/mctx/src/scaffold.rs
- crates/mctx/src/lib.rs
minimal.tomlmin initlogic for creating a defaultminimal.toml