Skip to content

fix(google-docs): handle AI kill switch access denial [INTEG-3827]#10904

Draft
Mitch Goudy (mgoudy91) wants to merge 1 commit intomasterfrom
codex/integ-3827-ai-kill-switch
Draft

fix(google-docs): handle AI kill switch access denial [INTEG-3827]#10904
Mitch Goudy (mgoudy91) wants to merge 1 commit intomasterfrom
codex/integ-3827-ai-kill-switch

Conversation

@mgoudy91
Copy link
Copy Markdown
Contributor

@mgoudy91 Mitch Goudy (mgoudy91) commented Apr 21, 2026

Summary

Surface backend ai-access-denied access denials clearly in the Google Docs app so denied orgs and spaces do not hit generic failures during OAuth and AI import flows.

Changes

  • normalize app action and agent API access-denied responses into a dedicated AI access error utility
  • move the page into a blocked state when AI access is denied instead of continuing with generic workflow or OAuth errors
  • add focused test coverage for error normalization and the blocked page behavior

Updated in:

  • apps/google-docs/src/locations/Page
  • apps/google-docs/src/services/agents-api.ts
  • apps/google-docs/src/utils
  • apps/google-docs/test

Notes

  • This PR is the frontend UX half of INTEG-3827.
  • The companion backend enforcement PR is https://github.com/contentful/agents-api/pull/430.
  • Rollout plan: ship this apps PR first (or together with the backend PR), then ship the backend PR so kill-switched users get the clearer blocked state as soon as enforcement goes live.
  • OAuth is intentionally not the enforcement point; the backend PR owns blocking AI invocation paths, and this PR makes those denials readable in the app.

@mgoudy91 Mitch Goudy (mgoudy91) force-pushed the codex/integ-3827-ai-kill-switch branch from 15f5ac2 to bc66248 Compare April 21, 2026 23:13
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