refactor(acp): route session mode updates through runtime#1620
Merged
limityan merged 1 commit intoJul 18, 2026
Conversation
Add a narrow typed session mode port, wire it to the existing Core owner, and migrate ACP mode changes without changing history replay or other product surfaces.
limityan
marked this pull request as ready for review
July 18, 2026 16:46
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.
变更概述
sessionId与modeId的窄会话模式更新端口。ConversationCoordinator实现该端口,并在 Core 的各条既有 Runtime 组装路径中注入同一个 owner。范围与边界
session/load与完整历史回放不包含扩展能力、HarmonyOS、历史 DTO 泛化、公共附件读取能力、依赖升级或 compatibility 门面的整体删除。
对抗性复审后的收敛
风险控制
NotAvailable,不隐式降级到其他写路径。update_session_agent_type,保留规范化、持久化和NotFound错误语义。CurrentModeUpdate。验证
cargo +1.95.0 fmt --all -- --checkgit diff gcwing/main...HEAD --checknode scripts/check-core-boundaries.mjspnpm run check:repo-hygienecargo +1.95.0 check --workspacecargo +1.95.0 test -p bitfun-runtime-ports -p bitfun-agent-runtime -p bitfun-acp -p bitfun-clicargo +1.95.0 test -p bitfun-core session_mode_ -- --nocapture