Repository navigation
feat(config): add disableCliBypass option - #80
Merged
Merged
Conversation
DeepColds
force-pushed
the
canary/disable-cli-bypass
branch
from
May 29, 2026 12:49
43e5fba to
ea4ab9b
Compare
jiyuuDev
added a commit
to zsnjuts/botmux
that referenced
this pull request
Nov 1, 2026
现象:TAE 远端轮次里模型先用 botmux send --mention-back 发出授权链接, 本轮最终回答又把同一个链接贴一遍,话题里同一个授权链接出现两次。 根因:宿主有意不拿最终回答和过程消息去重(过程消息不能替代本轮回复, bridge-fallback-gate 的策略不变),最终回答按 Runner 给的原文投递;Runner 侧的说明之前也没要求模型别重复已发出的链接(说明的修改在 botmux-tce 单独提交)。 改法:在 worker 侧加一层窄的链接去重: - 新增纯模块 src/services/remote-final-link-dedupe.ts,复用 link-ref-extractor 的 URL 识别;link-ref-resolver 导出已有的代码区识别 markdownCodeLiteralRanges。 - 只认本轮(turnId + dispatch attempt)里投递成功、非 final、且 @ 了请求者 (--mention-back)的远端过程消息里出现过的链接,记在有上限的 ledger 里, 最终回答处理完即清掉;不同 attempt 互不继承。 - deliverRemoteTurnFinal 在发 final_output 前替换这些链接:[文字](url) 改成 「文字(链接已在上方消息发送)」,裸链接 / <url> 改成「(链接已在上方消息发送)」, 末尾标点保留;代码块、行内代码、图片和其它链接不动,出错或改完为空时原样投递。 - 后端仍按契约透传原始 final,link-ref 占位符不处理。 Co-Authored-By: Claude <[email protected]>
jiyuuDev
added a commit
to zsnjuts/botmux
that referenced
this pull request
Nov 1, 2026
…Mew deepcoldy#88 / deepcoldy#81 / deepcoldy#80) (#61) - --mention-back 已发过的链接,最终回答里替换为「(链接已在上方消息发送)」,不再重复贴(Mew deepcoldy#80)。 - 最终卡完成状态改为醒目的「✅ 本轮已完成 · 等待输入」,远端过程消息与补充说明卡片带标题(Mew deepcoldy#81)。 - /stop 按实际结果回复:等同一轮终态(最长 15 秒)后回已停止、停止前已结束、还在启动、没有进行中的轮次或结果不确定;挂起请求收到带 turnId 的失败不再打断 Runner(Mew deepcoldy#88)。 验证:本地全量门禁对 distributed/v55 基线没有新增失败;测试集群逐项验收与 5 路并发复测通过。 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
Summary
disableCliBypassswitch inbots.jsonfalse: botmux still injects default bypass / weak-sandbox flagstrue, stop injecting flags such as--yolo,--dangerously-*,--force,--permission-mode agentFull; for hermes, also avoid auto-accepting hooks while keeping--pass-session-idcliPathOverridewrappers for custom approval/sandbox policiesScope note
master; it now contains only the config/docs/adapter/test changes for this feature.Validation
pnpm vitest run test/cli-adapters.test.ts test/bot-registry.test.ts test/write-input.test.tspnpm tsc --noEmitpnpm buildgit diff --checkCanary
[email protected]from the earlier canary branch for validation