Skip to content

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

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.

…ect#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'. Users read that as our outage and kept running ungoverned. Interactive sessions still fail open and log the lapse, unattended tiers still deny, but the message now names ~/.acp/credentials and the fix. A 401 with code workspace_deleted says once per session (24h when there is no session id) that the workspace is gone and how to uninstall, then proceeds silently. 5xx, timeouts and network errors keep the outage posture. Ported from claude-code-acp-plugin 0.29.3.
@davidcrowe
davidcrowe merged commit ea2300e into main Oct 24, 2026
1 check passed
@davidcrowe
davidcrowe deleted the fix/key-rejected-1693 branch October 24, 2026 20:58
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