From 214d908d9c76d18e97d5beddcde9f2418748a898 Mon Sep 17 00:00:00 2001 From: MorningStar Date: Sun, 15 Nov 2026 20:42:00 +0800 Subject: [PATCH 1/4] fix(opencode-v2): remove permission:allow so ACP tools can be allowlisted by name --- src/agent/opencode-v2.ts | 4 ++-- tests/opencode-v2.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agent/opencode-v2.ts b/src/agent/opencode-v2.ts index 8cb898c601..1189a6e3c9 100644 --- a/src/agent/opencode-v2.ts +++ b/src/agent/opencode-v2.ts @@ -512,7 +512,7 @@ export function createOpencodeV2Setup(options: OpencodeV2SetupOptions = {}): (ct name: t.name, description: t.description, input: t.inputSchema, - options: { codemode: false, permission: "allow" }, + options: { codemode: false }, execute: makeToolExecutor(t.name), }); } @@ -555,7 +555,7 @@ export function createOpencodeV2Setup(options: OpencodeV2SetupOptions = {}): (ct name: t.name, description: t.description, input: t.input, - options: { codemode: false, permission: "allow" }, + options: { codemode: false }, execute: makeToolExecutor(t.name), }); } diff --git a/tests/opencode-v2.test.ts b/tests/opencode-v2.test.ts index f2ddb9ca11..cfd774f0fe 100644 --- a/tests/opencode-v2.test.ts +++ b/tests/opencode-v2.test.ts @@ -304,7 +304,7 @@ test("v2 setup: registers the bundled bili tools synchronously with exact schema assert.deepEqual(fake.addedTools.map((t) => t.name), EXPECTED_TOOLS); for (const t of fake.addedTools) { assert.equal(t.options?.codemode, false); - assert.equal(t.options?.permission, "allow"); + assert.equal(t.options?.permission, undefined); } const compressSrc = [...ACP_TOOLS_OPENAI, ABSORB_TOOL_OPENAI].find((t) => t.function.name === "compress")!; assert.deepEqual(fake.addedTools.find((t) => t.name === "compress")!.input, compressSrc.function.parameters); @@ -877,7 +877,7 @@ test("#2443: a manifest-advertised conditional tool (acp_retrieve) is registered const retrieve = fake.addedTools.find((t) => t.name === "acp_retrieve")!; assert.deepEqual(retrieve.input, rt.parameters); assert.equal(retrieve.options?.["codemode"], false); - assert.equal(retrieve.options?.["permission"], "allow"); + assert.equal(retrieve.options?.["permission"], undefined); // The registered executor forwards to the live proxy dispatcher (reachable, not a dead pointer). const out = await retrieve.execute({ ref: "m00001" }, { sessionID: "ses_ccr" }); assert.ok(typeof out.content === "string" && out.content.length > 0, "retrieve executes against the proxy"); From 6d7a479da5a46072ff5a172461fc9d13459db375 Mon Sep 17 00:00:00 2001 From: MorningStar Date: Mon, 16 Nov 2026 20:01:22 +0800 Subject: [PATCH 2/4] docs(architecture): list src/responses-system-sections.ts in reference/architecture.md --- reference/architecture.md | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/architecture.md b/reference/architecture.md index 484cd70bf1..1c6e959b35 100644 --- a/reference/architecture.md +++ b/reference/architecture.md @@ -181,6 +181,7 @@ billion-context/ │ ├── error-dump.ts # Rejected-body dump (diagnostics.dump4xx / BILI_DUMP_4XX) │ ├── ws-bridge.ts # Generic WebSocket bridge shell │ ├── responses-ws.ts # Codex/OpenCode Responses-over-WebSocket codec (#1844) +│ ├── responses-system-sections.ts # Shared developer-section joiner for Responses wire (#6944) │ ├── kiro.ts # Kiro CLI: model-gateway hosts, built-in developer/system→user roles, kiro:conversation_id identity │ ├── launcher.ts # `bili ` launcher (auto-proxies both schemes) │ ├── client-config.ts # Read-only discovery of each client's own upstream config From 8ed56be997c292584844ab8b482c04f8fe77256f Mon Sep 17 00:00:00 2001 From: ci-check Date: Mon, 16 Nov 2026 20:42:39 +0800 Subject: [PATCH 3/4] docs(architecture): add src/responses-system-sections.ts to the module map (#6922) --- reference/architecture.md | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/architecture.md b/reference/architecture.md index 484cd70bf1..9226ec7713 100644 --- a/reference/architecture.md +++ b/reference/architecture.md @@ -303,6 +303,7 @@ billion-context/ │ ├── remote-notices.ts # Remote announcement feed watcher: fail-open polling, last-known-good snapshot (#5548) │ ├── request-membership.ts # Settle-side membership probe: is this usage report ours (#4805) │ ├── resolver-wedge.ts # Persistent local DNS resolver wedge detector + alarm (#5221) +│ ├── responses-system-sections.ts # Single source of truth for the Responses-wire developer-section join: steady prepare + round-2 rebuild share one separator (#6922) │ ├── responses-tool-output.ts # Responses tool-output image parts: projection + patch helpers │ ├── rollout.ts # Feature rollout: per-install uuid, basis-point buckets, nested cohorts (#3062) │ ├── runaway-guard.ts # Intrinsic stream terminator for runaway tag/codepoint enumeration (#2346) From 3a91f2373bc039183b35d97fe77e30e43dde694f Mon Sep 17 00:00:00 2001 From: ci-check Date: Mon, 16 Nov 2026 22:34:43 +0800 Subject: [PATCH 4/4] fix(architecture): dedupe responses-system-sections.ts entry after ci-fixes merge The ci-fixes merge added the canonical module-map line (ref #6922, correct alphabetical position) while the PR branch already carried a botched duplicate (ref #6944, non-alphabetical position). Keep the canonical ci-fixes entry, drop the duplicate. --- reference/architecture.md | 1 - 1 file changed, 1 deletion(-) diff --git a/reference/architecture.md b/reference/architecture.md index 717851c2ec..477af01d9e 100644 --- a/reference/architecture.md +++ b/reference/architecture.md @@ -181,7 +181,6 @@ billion-context/ │ ├── error-dump.ts # Rejected-body dump (diagnostics.dump4xx / BILI_DUMP_4XX) │ ├── ws-bridge.ts # Generic WebSocket bridge shell │ ├── responses-ws.ts # Codex/OpenCode Responses-over-WebSocket codec (#1844) -│ ├── responses-system-sections.ts # Shared developer-section joiner for Responses wire (#6944) │ ├── kiro.ts # Kiro CLI: model-gateway hosts, built-in developer/system→user roles, kiro:conversation_id identity │ ├── launcher.ts # `bili ` launcher (auto-proxies both schemes) │ ├── client-config.ts # Read-only discovery of each client's own upstream config