Skip to content

docs(passthrough): 补登 Riff 无透传面的文档说明与残余配对边界注释 - #3133

Merged
deepcoldy merged 2 commits into
masterfrom
docs/3080-riff-passthrough-note
Nov 8, 2026
Merged

deepcoldy merged 2 commits into
masterfrom
docs/3080-riff-passthrough-note

Conversation

@deepcoldy

Copy link
Copy Markdown
Owner

背景

#3080(fix(passthrough): Riff 后端判为无透传面)已合入。本 PR 是评审中记录的两条非阻断 follow-up,仅文档与注释、零行为变化。

改动

  1. docs/design/2026-09-11-command-router.md:无 raw 面 CLI 名单补登 riff,并注明 Riff 的斜杠命令不进斜杠解析器、按普通消息封装成一次远端任务。
  2. docs-site/docs/{zh,en}/slash-commands.md「透传给底层 CLI」一节:中/英对称补一段「Riff 无透传面」说明,明确 /compact、/model 及 customPassthroughCommands 在 Riff 会话里等价于一条普通对话文本,不会拆成多次远端任务。
  3. 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 仍对称)。

范围说明

🤖 Generated with Claude Code

#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]>
按复审意见修订 #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]>
@deepcoldy
deepcoldy merged commit 96e1e6c into master Nov 8, 2026
14 checks passed
@github-actions

Copy link
Copy Markdown

🚀 Released in v3.59.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant