Repository navigation
Key rejected ≠ gateway unreachable; deleted-workspace notice (gsc#1693) - #3
Merged
Merged
Conversation
…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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports two behaviours from claude-code-acp-plugin 0.29.3 ((internal tracker)).
1. A 401/403 is a credential failure, not an outage
2. Deleted workspace
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.Tests: new key-rejected suite with a temp HOME; full suite green. Patch version bumped.