Repository navigation
feat: /acp explains chain passthrough — verdict panel replaces the armed-idle notice (#1218) - #1229
Merged
Merged
Conversation
…med-idle notice (#1218) A session judged an external bili chain by the content fallback is passed through with NO local state, so /acp answered 'unknown plugin conversation' (rendered as armed-idle 'no model request yet') — misleading: requests ARE arriving, compression is just disabled for this conversation (#1218). The warn-once set in server.ts becomes a bounded per-conversation verdict store in plugin.ts (kind + protocol + last-seen timestamp): server.ts records the verdict under the session id AND the client's own conversation value (the key space /acp probes use), and handlePluginStatus renders a panel that names the evidence and the chainContentDetection=false escape valve. Every /acp surface (pi / dsh / opencode) renders the panel verbatim, so no agent-side changes.
Contributor
📦 Built Package ArtifactBranch: Option A — Install from npm PR tag (recommended)npm install -g billion-context@pr-1229Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pr1229.tgz
npm install -g packageInstall instructions are refreshed on each push. |
Owner
Author
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.
Problem (#1218)
A conversation judged an external bili chain (content fallback, #1086) is passed through without creating any local session state.
/acpthen answersunknown plugin conversation, which every client surface renders as the armed-idle notice — "no model request yet; send one, then run /acp again". That is misleading: requests ARE arriving (passed through unprocessed), compression is silently disabled for that conversation, and the user has no way to find out why.Fix — root cause, not a mask
The judgment already exists server-side (the once-per-session
[chain]warn); the status path just never saw it. The warn-onceSetinserver.tsbecomes a bounded per-conversation verdict store inplugin.ts(WARNED_CHAIN_SESSION_CAP= 4096, same FIFO discipline):recordChainVerdict(id, kind, protocol)returns first-verdict (drives the once-per-session warn — semantics unchanged), refreshesaton every passthroughserver.tsrecords under the session id AND the client's own conversation value when they differ —/acpprobes arrive keyed by the client's value (same key spaceresolveConversationuses)handlePluginStatus: no session + verdict for the probed id → 200 withphase: "chain-passthrough", the verdict, and a renderablepanelnaming the evidence (kind,protocol, last passthrough time) and the escape valve (chainContentDetection=false/BILI_CHAIN_CONTENT=0)panelverbatim → zero agent-side changes neededTests
tests/issue1086-chain-self-exemption.test.ts:#1218regression test: passthrough POST → no session →/acpprobe returns 200 withphase=chain-passthrough, evidence kind, panel containingPASSED THROUGH UNPROCESSED+ the escape valve; unknown conversation stays 404Local: typecheck ✅ · issue1086 suite 18/18 ×3 runs ✅ · plugin/dsh/pck/instance suites 79/79 ✅ · build ✅
Fixes #1218