Repository navigation
docs(passthrough): 补登 Riff 无透传面的文档说明与残余配对边界注释 - #3133
Merged
Merged
Conversation
#3080 合入后的 follow-up,仅文档与注释,零行为变化: - 设计文档 2026-09-11-command-router 的无 raw 面名单补 riff,并注明其斜杠 命令按普通消息封装成一次远端任务 - slash-commands 中/英用户文档「透传给底层 CLI」一节对称补一段 Riff 无透传面 - passthrough-commands 注释承认历史残余边界:配对不变量之前持久化的 cliId≠riff + backendType=riff 行,下次 spawn 由 resolvePairedSpawnBackendType 纠正,现代代码构造不出 Co-Authored-By: Claude Code <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 7, 2026 22:46
按复审意见修订 #3133,仍仅文档与注释、零行为变化: - slash-commands 中/英:/fast 的 fail-closed 只在透传分支触发,真实 Riff (cliId=riff)的 /fast 在 #3080 后走 forward/unknown_slash、按普通消息封装, 原文「Riff 上 fail-closed 明确提示」与同节新增段落矛盾;改为 RPC 输入/Mojo 走透传被明确拒绝、Riff 按上一段普通消息处理 - passthrough-commands 注释:stale 形状(非 remote cliId + backend=riff)命中的是 reconcilePairedBackendId 第二条分支(丢弃 remote backend 回落默认/pty), 不是「remote cliId 钉同名后端」的第一条,按实测改准 - 设计文档无 raw 面名单顺手补全既有的 minimax 漏登 Co-Authored-By: Claude Code <[email protected]>
This was referenced Nov 8, 2026
|
🚀 Released in v3.59.0 |
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.
背景
#3080(fix(passthrough): Riff 后端判为无透传面)已合入。本 PR 是评审中记录的两条非阻断 follow-up,仅文档与注释、零行为变化。
改动
docs/design/2026-09-11-command-router.md:无 raw 面 CLI 名单补登riff,并注明 Riff 的斜杠命令不进斜杠解析器、按普通消息封装成一次远端任务。docs-site/docs/{zh,en}/slash-commands.md「透传给底层 CLI」一节:中/英对称补一段「Riff 无透传面」说明,明确/compact、/model及customPassthroughCommands在 Riff 会话里等价于一条普通对话文本,不会拆成多次远端任务。src/core/passthrough-commands.ts:在the id stands for the backend here注释旁承认残余边界——配对不变量引入之前持久化的cliId≠riff + backendType=riff历史行不会命中谓词;现代代码构造不出这种配对,下次 spawn 由resolvePairedSpawnBackendType纠正;在此之前只有该陈旧行保留原本就已失效的 raw 透传行为。不改任何运行时代码、集合成员、测试断言。
验证
tsc --noEmit通过。slash-commands-doc-sync、passthrough-commands、command-handler三个测试文件 579 条全绿(doc-sync 守卫确认中/英命令清单与 i18n 仍对称)。范围说明
设计文档同一名单里
minimax也缺登,属 fix(passthrough): Riff 后端判为无透传面,斜杠命令不再拆成两次远端任务 #3080 之前就存在的遗漏,不在本 follow-up 范围,避免夹带无关改动。评审 nit ③(在 fix(slash): 透传命令按 CLI 与输入后端能力声明 #839 说明 riff 的
/compact现在是「一次普通文本 turn」而非两次无效任务):fix(passthrough): Riff 后端判为无透传面,斜杠命令不再拆成两次远端任务 #3080 描述已注明「合入后在 issue 里说明范围再手动关闭」,issue 回帖与关闭留给作者。可用草稿:🤖 Generated with Claude Code