refactor(cli): route session restore through runtime SDK - #1585
Merged
limityan merged 1 commit intoJul 16, 2026
Conversation
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.
概要
SessionTranscript为明确的只读消息投影,并让 CLI/TUI 的恢复、历史渲染和session show不再依赖 CoreMessage。CoreAgentRuntimeCompatibility::restore_session/get_messages;持久化、分支、用量、快照和交互能力继续保留在兼容边界内。边界与取舍
api-layer,也不增加只转发方法的公共服务层。验证
cargo +nightly fmt --all -- --checkcargo +nightly test -p bitfun-runtime-ports -p bitfun-agent-runtime -p bitfun-clicargo +nightly check --workspacenode scripts/check-core-boundaries.mjsnode --test scripts/check-core-boundaries.test.mjspnpm run prepare:mobile-webgit diff --checkcargo +nightly test --workspace完成编译并运行到未改动的bitfun-agent-tools时,被现有framework::tests::get_tool_spec_description_preserves_prompt_contract断言阻断:描述未包含Read full schema(43/44 通过)。该文件相对main无差异,本 PR 未扩大范围修改提示词契约。