feat(minimald): add debug log on workspace unpack error - #883
Conversation
📝 WalkthroughWalkthroughThe PR updates activation upload prompting, makes related tests deterministic and VCS-rooted, and adds debug logging for workspace unpack failures before errors are sent to the client. ChangesActivation upload behavior
Workspace unpack diagnostics
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crates/minimal/tests/cli.rs (1)
207-211: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd coverage for the new
--no-promptupload path.Both tests now create
.git, sois_vcs_rootshort-circuits the confirmation beforeargs.no_promptis evaluated. Add a focused test using a non-VCS temporary directory withno_prompt: trueto prevent regressions in the behavior this PR changes.As per coding guidelines, run
cargo test -p minimalafter adding the regression test.Also applies to: 246-250
🤖 Prompt for 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. In `@crates/minimal/tests/cli.rs` around lines 207 - 211, Add a focused CLI regression test for the upload path with args.no_prompt set to true, using a temporary directory that does not contain .git so the no-prompt behavior is actually exercised rather than the VCS-root short circuit. Keep the existing VCS-root setup in the current tests, and run cargo test -p minimal after adding the test.Source: Coding guidelines
🤖 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.
Nitpick comments:
In `@crates/minimal/tests/cli.rs`:
- Around line 207-211: Add a focused CLI regression test for the upload path
with args.no_prompt set to true, using a temporary directory that does not
contain .git so the no-prompt behavior is actually exercised rather than the
VCS-root short circuit. Keep the existing VCS-root setup in the current tests,
and run cargo test -p minimal after adding the test.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 99f7edfa-ef7d-45fe-ad4f-af81156e92f2
📒 Files selected for processing (2)
crates/minimal/src/lib.rscrates/minimal/tests/cli.rs
Aside from fixing a test failure, adds a debug log when the
unpack_workspace_fileshandler fails.Note
Add debug log on workspace unpack error in
serve_stream_workspace_filesrpc.rsthat records the unpack error reason before relaying it over the SSH channel's extended data stream.cmd_activateinlib.rsto skip the non-VCS upload confirmation prompt when--no-promptis set..gitdirectory in temp projects so they are treated as VCS roots, preventing tests from blocking on stdin.Macroscope summarized f6213f0.
Summary by CodeRabbit
--no-promptreliably skips interactive confirmation in non-VCS contexts..gitsetup and avoid environment-dependent path detection.