Skip to content

Key rejected ≠ gateway unreachable; deleted-workspace notice (gsc#1693) - #3

Merged
davidcrowe merged 1 commit into
mainfrom
fix/key-rejected-1693
Oct 24, 2026
Merged

davidcrowe merged 1 commit into
mainfrom
fix/key-rejected-1693

Conversation

@davidcrowe

@davidcrowe davidcrowe commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Ports two behaviours from claude-code-acp-plugin 0.29.3 ((internal tracker)).

1. A 401/403 is a credential failure, not an outage

  • This hook reported a revoked or deleted key as "gateway unreachable", so it read like our outage. On 09-07 that left a user running ungoverned for six hours.
  • The message now says KEY REJECTED and gives the fix.
  • The tier posture is unchanged: interactive proceeds and logs the lapse every call; unattended stays blocked.
  • 5xx, timeouts and network errors keep the outage path.

2. Deleted workspace

  • When the gateway's 401 carries code: "workspace_deleted" ((internal tracker), live after promote), interactive sessions get one notice naming the deletion and how to remove ACP (acp-uninstall, with a curl fallback). Later calls proceed silently, and the lapse is still logged every call.
  • With no session id, the notice shows at most once per 24h.
  • Unattended tiers deny every call.

Tests: new key-rejected suite with a temp HOME; full suite green. Patch version bumped.

…nect#1693)

A 401/403 from /govern/tool-use meant this machine's key was revoked, mistyped or from a deleted workspace, but the hook reported it as 'gateway unreachable'. A user could then run ungoverned for hours believing it was our outage. The tier posture is unchanged (interactive proceeds and logs the lapse, unattended stays blocked); the message now names the key and the fix. A 4xx with code workspace_deleted says so once per session (or once per 24h with no session id) and then proceeds quietly, while unattended tiers deny every call. 5xx, timeouts and network errors keep the outage path. Lapse log and notice markers now follow env.HOME so tests stay off the real ~/.acp. Ported from codex/pi/dsh batch 1. Bumps to 0.1.2 (HOOK_VERSION had lagged package.json at 0.1.0).
@davidcrowe
davidcrowe merged commit e48728f into main Oct 24, 2026
1 check passed
@davidcrowe
davidcrowe deleted the fix/key-rejected-1693 branch October 24, 2026 21: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