Skip to content

Send attended signal (#1518) - #6

Merged
davidcrowe merged 1 commit into
mainfrom
feat/attended-1518
Oct 27, 2026
Merged

davidcrowe merged 1 commit into
mainfrom
feat/attended-1518

Conversation

@davidcrowe

@davidcrowe davidcrowe commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • PreToolUse body gains attended: { claim, source: "permission_mode", mode }, sent only when payload permission_mode is a non-empty string. claim is false for bypassPermissions, dontAsk, never.
  • ACP_CLIENT fallback changed from claude-code-plugin to codex-plugin (hooks.json already sets codex-plugin).
  • Nothing new on PostToolUse. agent_tier logic unchanged.

Honest source

Codex's payload permission_mode is the runtime signal for whether anyone answers a prompt. It is read directly, never from ACP_AGENT_TIER.

native_ask: no

Codex runs the tool on "ask", so bin/govern.mjs keeps ask -> deny (ask(), HARNESS === "codex"). No capability declared.

Tests

node --test test/: 34 pass, 0 fail (new test/attended.test.mjs).

Part of (internal tracker)

PreToolUse now carries attended { claim, source: permission_mode, mode }.
ACP_CLIENT fallback is codex-plugin, never claude-code-plugin.
@davidcrowe
davidcrowe merged commit 03703bd into main Oct 27, 2026
1 check passed
@davidcrowe
davidcrowe deleted the feat/attended-1518 branch October 27, 2026 04:34
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