Repository navigation
Conversation
(cherry picked from commit 785d606a365c8cb1b764990f4421f46b42db5d4e)
|
Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 8:32 PM ET / 00:32 UTC. Summary PR surface: Source +56, Tests +55. Total +111 across 4 files. Reproducibility: yes. at source level. Current main and 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Coordinate and release compatible gogcli file-secret support first, gate OpenClaw on that capability or version, then share a cleanup-safe secret-file handoff across both gateway auto-start and foreground Gmail runner paths with inspectable redacted proof. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main and Is this the best way to solve the issue? No. File-backed secrets are the right direction, but this is not the best mergeable fix until the gogcli contract exists, both runner paths are covered, cleanup is failure-safe, and the contributor adds inspectable proof. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1289abddcb96. Label changesLabel justifications:
Evidence reviewedPR surface: Source +56, Tests +55. Total +111 across 4 files. View PR surface stats
Security concerns:
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
Review history (1 earlier review cycle)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 558041b3c0
ℹ️ 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".
| cfg.hookToken, | ||
| ]; | ||
| if (secretFiles.pushTokenFile) { | ||
| args.push("--token-file", secretFiles.pushTokenFile); |
There was a problem hiding this comment.
Keep watcher argv compatible with gog serve
When the gateway auto-starts Gmail watching, this branch now passes --token-file (and the paired --hook-token-file just below) to gog gmail watch serve. I checked gogcli's generated command docs for gog gmail settings watch serve (https://gogcli.sh/commands/gog-gmail-settings-watch-serve.html), and the supported flags include --token, --hook-url, and --hook-token, but not these *-file flags; the local setup path also only ensures a gog binary exists, not a minimum version with these new options. On existing installations with the documented/current gog CLI, Gmail watcher startup will fail immediately with an unknown flag instead of serving pushes, so the secret-file handoff needs to be implemented only after verifying/supporting the gog contract (or kept on supported flags).
Useful? React with 👍 / 👎.
|
Withdrawing. |
|
Reopening - the withdrawal was on our side, the patches stand. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
The gmail watcher launched
gog watch servewith the push token passed via--tokenand the hook token embedded in--hook-url, exposing both to any local process viaps/procfs for the lifetime of the watcher. The watcher now writes both secrets to private secret files and passes file paths on argv instead.Real behavior proof
Behavior addressed: gmail watch push/hook tokens visible in process listings on any multi-process host.
Real environment tested: production single-operator OpenClaw gateway (Ubuntu, Node 22.22), patch live since 2026-06-12.
Exact steps or command run after this patch:
ps -ef | grep "gog watch serve"on the live gateway with the gmail hook active.Evidence after fix: no token material in the watcher argv; tokens resolved from secret files.
Observed result after fix: gmail watch connects and delivers push notifications normally.
What was not tested: Windows/macOS service-manager spawn paths.
Verification
src/hooks/gmail-watcher.test.ts,src/hooks/gmail.test.ts.🤖 Generated with Claude Code