feat(cli): add OpenCode-compatible session forking - #1913
Merged
Conversation
Add exclusive before-turn persistence semantics, Shared IPC v9 controller transfer, and the /fork TUI selector for Embedded and Shared deployments.
limityan
marked this pull request as ready for review
July 31, 2026 01:52
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.
概要
/fork入口,不增加/branch等别名或自创快捷键;多余参数明确返回Usage: /fork。Full session与历史用户提示词。选择提示词时只复制该 Turn 之前的持久化历史,并把原提示词放回 composer,不自动发送。设计与兼容性
docs/superpowers/**内容。范围
验证
node scripts/core-boundaries/self-test.mjsnode scripts/check-core-boundaries.mjscargo check --workspacecargo test -p bitfun-runtime-ports -p bitfun-services-core -p bitfun-agent-runtime -p bitfun-agent-runtime-ipc -p bitfun-core -p bitfun-cli --no-fail-fast另尝试了
cargo test --workspace;Windows 上被当前 main 已存在的src/crates/services/terminal/src/exec.rs测试模块缺少PathBuf导入阻塞。该文件不在本 PR diff 中,受影响的六个包完整测试均已通过。