feat(minimald): RPC to stream files to session homedir - #862
feat(minimald): RPC to stream files to session homedir#862twitchyliquid64 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds client support for streaming zstd-compressed home-directory archives over SSH and daemon support for routing, unpacking, and testing the new homedir subsystem. ChangesHomedir file streaming
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant SSH as SSH session channel
participant Daemon as minimald RPC
participant Home as Session home
Client->>SSH: Request HomedirFilesTarZst
SSH->>Daemon: Stream tar.zst archive
Daemon->>Home: Unpack files
Daemon-->>SSH: Return unpack errors via ExtendedData
SSH-->>Client: Close channel
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.
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/minimal/src/client.rs`:
- Around line 251-255: Update the error context on the channel_open_session call
in the homedir file upload method to identify homedir file upload rather than
workspace file upload. Preserve the existing await and error propagation
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: 981d20d4-4e4a-41c5-a480-0e9ef6bf021b
📒 Files selected for processing (2)
crates/minimal/src/client.rscrates/minimald/src/rpc.rs
| let mut channel = self | ||
| .handle | ||
| .channel_open_session() | ||
| .await | ||
| .context("open channel for workspace file upload")?; |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Correct the upload error context.
Line 255 reports a workspace upload when this method uploads homedir files, which misleads users during channel-open failures.
Proposed fix
- .context("open channel for workspace file upload")?;
+ .context("open channel for homedir file upload")?;📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| let mut channel = self | |
| .handle | |
| .channel_open_session() | |
| .await | |
| .context("open channel for workspace file upload")?; | |
| let mut channel = self | |
| .handle | |
| .channel_open_session() | |
| .await | |
| .context("open channel for homedir file upload")?; |
🤖 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/src/client.rs` around lines 251 - 255, Update the error
context on the channel_open_session call in the homedir file upload method to
identify homedir file upload rather than workspace file upload. Preserve the
existing await and error propagation behavior.
116600c to
03945ab
Compare
Not sure if needed in your loadouts work, but thought i would throw it together in case and you can merge in your morning if so
Summary by CodeRabbit