Repository navigation
feat(googlechat): add native approval cards - #89502
Conversation
|
Codex review: found issues before merge. Reviewed June 5, 2026, 12:49 AM ET / 04:49 UTC. Summary PR surface: Source +1265, Tests +1539, Docs +10. Total +2814 across 25 files. Reproducibility: not applicable. as a user bug report, but the compatibility finding is source-reproducible: current main defaults Google Chat typing to Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land the Google Chat native card implementation after preserving the shipped typing default or recording explicit maintainer acceptance of that compatibility change, plus owner signoff on the callback authorization model. Do we have a high-confidence way to reproduce the issue? Not applicable as a user bug report, but the compatibility finding is source-reproducible: current main defaults Google Chat typing to Is this the best way to solve the issue? No: native cards are a good direction, but changing the global typing default is not the narrowest compatibility-safe way to keep approval prompts durable. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against e0018382eb00. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1265, Tests +1539, Docs +10. Total +2814 across 25 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e8ea82a992
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
b98829a to
68d7c39
Compare
24b4826 to
56ade52
Compare
| sessions or targets even when Slack exec approvals are disabled | ||
| - Google Chat native approval cards handle exec and plugin approvals that originate from Google | ||
| Chat spaces or threads when stable `users/<id>` approvers resolve from `dm.allowFrom` or | ||
| `defaultTo`; they do not use reaction events for decisions |
There was a problem hiding this comment.
do not document that chat do not have reaction events
Summary
cardsV2button callbacks and updates delivered approval messages after resolution or expiry./approve ...follow-up delivery insideextensions/googlechat/when the native card path owns the approval prompt.typingIndicator: "message"default.Linked context
Which issue does this close?
Closes #
Which issues, PRs, or discussions are related?
Related Spec 24.8: Google Chat native approval cards.
Was this requested by a maintainer or owner?
Requested by maintainer in the Codex task thread.
Real behavior proof (required for external PRs)
/approveinstruction bubble.Allow Oncein Google Chat, and checked the command output reply plus marker file.GCHAT_NODOUBLE_LIVE_20260604070730, approval id949bc08c-9e57-47c0-b045-137603782292, and proof directory.mem/main/proofs/demo-89502-dev-gchat-exec-approval-no-double-send-channel-race/.raw/google-chat-gchat-nodouble-request-card-only-clean.pngshows the fresh user message followed by a single nativeExec Approval Requiredcard withAllow Once/Denyand no manual/approvefollow-up bubble.raw/google-chat-gchat-nodouble-resolved-clean.pngshows the card edited toExec Approval: Allowed onceand the final successful command reply.raw/gchat-nodouble-live-filtered-log.txtcontainsgooglechat approval resolved id=949bc08c-9e57-47c0-b045-137603782292 decision=allow-once.raw/marker-file-check.txtrecords/tmp/openclaw-gchat-no-double-GCHAT_NODOUBLE_LIVE_20260604070730as created.Allow Onceresolved the approval through the gateway and OpenClaw replied with the successful exec output in the same Google Chat DM./approveinstruction bubble.Tests and validation
Which commands did you run?
node scripts/build-all.mjs gatewayWatchnode scripts/run-vitest.mjs extensions/googlechat/src/monitor-webhook.test.ts extensions/googlechat/src/monitor.test.ts extensions/googlechat/src/monitor.reply-delivery.test.ts extensions/googlechat/src/monitor-durable.test.ts extensions/googlechat/src/approval-card-actions.test.ts extensions/googlechat/src/approval-handler.runtime.test.ts extensions/googlechat/src/approval-native.test.ts extensions/googlechat/src/approval-card-click.test.ts extensions/googlechat/src/channel-config.test.ts extensions/googlechat/src/targets.test.tsgit diff --checkpnpm docs:listuvx showboat --workdir .mem/main/proofs/demo-89502-dev-gchat-exec-approval-no-double-send-channel-race verify .mem/main/proofs/demo-89502-dev-gchat-exec-approval-no-double-send-channel-race/raw/showboat-summary.mdWhat regression coverage was added or updated?
What failed before this fix, if known?
Google Chat could deliver the native approval card and still allow a model/message-tool manual
/approvefollow-up to appear as a second visible bubble.If no test was added, why not?
Tests were added for the changed runtime and webhook behavior.
Risk checklist
Did user-visible behavior change? (
Yes/No)Yes.
Did config, environment, or migration behavior change? (
Yes/No)No migration. The shipped Google Chat
typingIndicator: "message"default is preserved.Did security, auth, secrets, network, or tool execution behavior change? (
Yes/No)Yes.
What is the highest-risk area?
Approval authorization and callback token handling for native Google Chat card actions.
How is that risk mitigated?
Callbacks carry opaque action tokens only, token bindings check account, space, message, expiry, allowed decision, and in-flight state, and actor authorization reuses the existing Google Chat approver allowlist adapter based on stable
users/<id>principals.Current review state
What is the next action?
Merge after current-head CI for
5923f2af46.What is still waiting on author, maintainer, CI, or external proof?
Current-head CI is green for
5923f2af46; live dev-profile proof is complete.Which bot or reviewer comments were addressed?
Addressed duplicate approval delivery by keeping the final suppression path inside
extensions/googlechat/, preserving default typing-message behavior, and proving the current Google Chat surface sends only the native approval card.