feat(cli): add runtime-backed shell mode and streamline CLI docs - #1971
Merged
Conversation
limityan
marked this pull request as ready for review
August 2, 2026 09:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
!into an empty prompt. The marker is presentation-only;/remains literal shell input, Escape and empty Backspace exit, chat/shell histories stay separate, and unsupported image or structured-reference payloads fail before submission.AgentUserShellCommandPortin the Rust Runtime SDK. Core reuses the existingExecCommandToolPipeline, permission policy, local/remote workspace ports, cancellation, audit, persistence, and Agentic events; the CLI never spawns the command itself.run_user_shell_commandoperation and protocol version 12, preserving current-controller, idle, timeout, disconnect-cancellation, and outcome-unknown rules.Architecture and behavior
/shellalias or new slash command is introduced; the entry and exit behavior follows OpenCode.UserDialogplusModelRoundtool call/result, so Desktop restore and later model context observe the same persisted facts.ask, while static global/project/profiledenyrules remain authoritative.Validation
cargo check -p bitfun-cli -p bitfun-core -p bitfun-agent-runtime-ipc -p bitfun-agent-runtime -p bitfun-runtime-portscargo test -p bitfun-core --lib --no-fail-fast— 1768 passed, 1 ignoredcargo test -p bitfun-core user_shell_command -- --nocapture— 5 passedcargo test -p bitfun-agent-runtime -p bitfun-agent-runtime-ipc --no-fail-fast— passed; IPC 53/53pnpm run check:core-boundariesandpnpm run check:core-boundaries:test— passed; 32/32 boundary testsgit diff --checkand local Markdown-link validation — passedFull Windows CLI tests reached 600/603. The three failures are unchanged Dispatch workspace/platform tests outside this diff: two require detached workers that currently support only Linux/macOS, and one passes a
\\?\\C:worktree path that Git for Windows rejects.cargo check --workspacecould not complete in this local environment becausesrc/mobile-web/distwas absent and the sherpa-onnx prebuilt download ended early; the affected crates above pass.Out of scope
superpowersdocumentation is included.Implementation was AI-assisted; testing level is extensive local verification as listed above.