Repository navigation
fix(googlechat): don't set replyToId in DM conversations - #87054
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed May 26, 2026, 6:41 PM ET / 22:41 UTC. Summary PR surface: Source 0. Total 0 across 1 file. Reproducibility: yes. Source inspection shows Google Chat DM events can carry Review metrics: none identified. 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: Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge Security Review findings
Review detailsBest possible solution: Use one direct-space guard for Google Chat DM reply context and typing sends, add focused monitor coverage, and require redacted real DM proof before merge. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows Google Chat DM events can carry Is this the best way to solve the issue? No, not yet. Guarding the turn reply context is a good part of the fix, but the maintainable solution should guard all direct-space threaded sends and prove the real Google Chat DM path. 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 7d6b7f434c2e. Label changesLabel justifications:
Evidence reviewedPR surface: Source 0. Total 0 across 1 file. 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
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
In Google Chat, thread reply IDs are only valid in group spaces. Setting replyToId to message.thread?.name in DM (Direct Message) conversations causes a 400 'invalid thread resource name' error from the Google Chat API, making the agent appear unresponsive even though the model had successfully generated a reply. Fix: guard replyToId and replyToIdFull with isGroup, so DM replies are sent without a thread target (which is correct for DMs).
9e9c1f3 to
46eae16
Compare
|
Maintainer verification for the DM thread fix: Behavior addressed: Google Chat DM events that include Exact commands/proof run after the patch: Evidence after fix: Observed result after fix: the regression test proves a DM carrying What was not tested: no live Google Chat DM was exercised in this maintainer session; this is a maintainer proof override based on targeted regression coverage, Testbox changed checks, and autoreview. |
Adds an optional dmThreadMode ("none" | "thread", default "none") to the Google Chat
account config. Default preserves current behavior (DM replies not threaded, per openclaw#87054);
"thread" makes DM replies use the message thread like group replies. Includes a unit test.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Problem
In Google Chat DM (Direct Message) conversations, the monitor was setting:
Google Chat's API rejects thread reply IDs in DMs with a
400 INVALID_ARGUMENT: The request contains an invalid thread resource nameerror. This caused agents to silently fail when delivering responses — the model had generated a reply successfully, but the user saw no response.Fix
Guard
replyToIdandreplyToIdFullwithisGroup(which is already computed in the same scope):Thread reply IDs are only meaningful (and accepted by Google Chat) in group spaces. In DMs, replies go to the conversation root regardless.
Reproduction
400 INVALID_ARGUMENT: The request contains an invalid thread resource namein logs