Repository navigation
feat(oauth): surface validated Cloud Code Assist appeal links on paused accounts - #8936
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Deterministic PR hygiene checks passed. |
|
Maintainer integration record (lane L3, 2026-11-19). Integrating exact head
|
Summary
When Google suspends a Cloud Code Assist account for a Terms of Service violation, its 403 response includes an
appeal_url. #8826 now pauses the account on the first conclusive ban, and #8751 stores the sanitized refusal aspauseEvidence, but the appeal link was still dropped, so operators never learned an appeal was possible.This PR keeps that link and shows it on the paused account in the Accounts view.
google.rpc.ErrorInfowith reasonTOS_VIOLATIONand domaincloudcode-pa.googleapis.com, on a first-party OAuth send made with the expected credential.httpsonly, with no user info, no port, and a length cap. The host must be exactlyforms.gle,support.google.com, ordocs.google.comunder/forms/. Query strings are kept only on the two Forms hosts, and fragments are removed. Anything else is dropped.pauseEvidence.appealUrl, returned byGET /api/oauth/accounts, and cleared on resume along with the rest of the evidence. Older builds ignore the extra field.target="_blank",rel="noopener noreferrer"). It uses Google's short plain-text label when one is present and a localized "Submit appeal" otherwise.Closes #8752
Verification
bun test tests/oauth/oauth-account-auto-pause.test.ts tests/server/management-account-auto-pause.test.ts, the file-size ratchet, test layout, and Spanish localization: 149 passed, 0 failed on this rebased head (independently rerun by the reviewer).cd gui && bun test tests/account-pause-display.test.tsx: 29 passed.bun run typecheck,bun run structure:check, andbun run privacy:scanpassed.javascript:anddata:URLs,google.com/urlredirects, and overlong values. It also checked where links can come from, that no URL or account ID is logged, the rendered link attributes, clearing on resume, and that the previous build still reads the stored record.Checklist