Skip to content

Send attended signal (#1518) - #4

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 and PermissionRequest bodies gain attended: { claim: mode !== "never", source: "permission_mode", mode }, sent only when the payload has a non-empty string permission_mode.
  • Nothing on PostToolUse/Stop. agent_tier logic unchanged.

Honest source

The payload's own permission_mode ("never" = nobody answers prompts). Not derived from ACP_AGENT_TIER or config.

native_ask: no

hook.mjs emits permissionDecision "ask" on PreToolUse (encodeDecision), but the README states the ask-prompt round trip in an interactive session is still unverified against a live model run, so it is not declared.

Tests

npm test: 37 pass, 0 fail.

Part of (internal tracker)

PreToolUse and PermissionRequest now carry attended { claim, source: permission_mode, mode }.
@davidcrowe
davidcrowe merged commit 4abcdf4 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