Skip to content

fix(googlechat): drop invalid thread resource names before send - #108324

Merged
steipete merged 1 commit into
openclaw:mainfrom
jailbirt:fix/googlechat-invalid-thread-resource-name
Aug 1, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
jailbirt:fix/googlechat-invalid-thread-resource-name

Conversation

@jailbirt

@jailbirt jailbirt commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

sendGoogleChatMessage forwards the reply-routing thread straight into the
Chat API request. When routing yields something that is not a valid
spaces/{space}/threads/{thread} resource name — a bare id, a
spaces/{space}/messages/{message} name, or a thread from a different (or
wrongly-cased) space — the API rejects the whole send with
400 INVALID_ARGUMENT and the reply is silently dropped, even though the agent
already produced it and ran any side effects.

This guards the send so the thread field (and the messageReplyOption
fallback) is applied only when the thread is well-formed and belongs to the
target space. Otherwise the message is delivered to the space as a new thread
instead of failing outright.

Revives the approach of #28153 (auto-closed as stale) and addresses the failure
mode behind #64313. Complements the DM-only fix in #87054, which only stops
setting replyToId on the ingress side.

Changes

  • extensions/googlechat/src/api.ts: add isUsableGoogleChatThreadName(thread, space) and gate the thread/messageReplyOption usage on it.
  • extensions/googlechat/src/targets.test.ts: cover the drop-invalid cases (bare id, thread key, message name, space name, foreign-space thread) and confirm a valid same-space thread is preserved.

Test plan

  • node scripts/test-projects.mjs extensions/googlechat/src/targets.test.ts → 39/39 pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W7pvAaMii7o42ZgVFmUdk5

What Problem This Solves

Google Chat DM replies can disappear after OpenClaw deletes the typing placeholder: an invalid reply thread is forwarded to Google Chat, which rejects the completed reply with 400 INVALID_ARGUMENT. This is the reproduced P1 customer failure in #115742.

Why This Change Was Made

Validate thread resource names at the shared Google Chat outbound API owner. Keep a valid same-space spaces/{space}/threads/{thread} target; omit malformed, message-resource, and foreign-space targets and the corresponding reply option so the reply is delivered as a new thread.

User Impact

Completed Google Chat replies are delivered instead of silently disappearing. Valid same-space threaded replies keep their existing behavior. No new configuration or operator action is required.

Evidence

Maintainer independently exercised the actual production deliverGoogleChatReply -> sendGoogleChatMessage -> google-auth-library RSA/JWT OAuth -> SSRF-guarded HTTP path against a local real HTTP server. One real OAuth token exchange authenticated every Chat request:

current main: DELETE /v1/spaces/AAA/messages/typing -> 200
current main: POST thread=113887189178345237288721356 replyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD -> 400 INVALID_ARGUMENT; completed reply lost
positive control / proposed wire shape: POST thread=<omitted> replyOption=<omitted> -> 200; reply delivered
same-space control: POST thread=spaces/AAA/threads/valid -> 200; reply stays threaded
foreign-space negative: POST thread=spaces/BBB/threads/foreign -> 400
message-resource negative: POST thread=spaces/AAA/messages/message-1 -> 400

Independent live customer verification applied this exact guard to a real staging Google Chat bot: 4 DM exchanges over approximately 10 minutes, including a 156-second multi-tool turn; all 4 replies arrived, with zero invalid-thread errors, dropped replies, or duplicate replies: #108324 (comment) and #108324 (comment).

Focused contributor coverage: node scripts/test-projects.mjs extensions/googlechat/src/targets.test.ts (39 passing). Exact-head full hosted CI: https://github.com/openclaw/openclaw/actions/runs/30709830635.

Google Chat thread contract: https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#Thread and https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#messagereplyoption.

Fixes #115742

@openclaw-barnacle openclaw-barnacle Bot added channel: googlechat Channel integration: googlechat size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 15, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Jul 16, 2026
@clawsweeper

clawsweeper Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 2:58 PM ET / 18:58 UTC.

ClawSweeper review

What this changes

The PR validates optional Google Chat reply-thread resource names before creating an outbound message, omitting invalid or foreign-space targets so the completed reply is delivered as a new top-level message instead of being rejected.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This PR remains necessary: current main still forwards every nonempty reply-thread value into the Google Chat create-message request, so malformed or cross-space values can reject a completed reply. The patch places one strict resource-name guard at the shared outbound owner, preserves valid same-space threading, and has both focused request-shape coverage and supplied live Google Chat proof; no blocking patch defect was found.

Priority: P1
Reviewed head: b0f4dde00eccdc43b181a1be4ac3a95606830e65

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) This is a focused, source-aligned repair with strong real-channel proof and no concrete correctness finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The PR contains current-main failure evidence, a maintainer exercise of the production delivery stack, and independent redacted live Google Chat staging evidence showing four completed replies without invalid-thread errors, drops, or duplicates.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The PR contains current-main failure evidence, a maintainer exercise of the production delivery stack, and independent redacted live Google Chat staging evidence showing four completed replies without invalid-thread errors, drops, or duplicates.
Evidence reviewed 6 items Current-main failure boundary: Current main copies any truthy thread string into both the Google Chat request body and the reply-option query parameter; it has no resource-name or target-space validation at this owner boundary.
Caller and lifecycle path: Reply delivery obtains payload.replyToId, uses it as deliveryThreadName, and passes it directly to sendGoogleChatMessage; this is the path that can delete a mismatched typing placeholder before the invalid create request.
Focused regression coverage: The branch tests bare identifiers, message and space resource names, and a foreign-space thread as omitted request fields, while retaining body and reply-option behavior for a valid same-space thread.
Findings None None.
Security None None.

How this fits together

Google Chat inbound handling resolves a space and optional reply target, then reply delivery calls the extension’s shared outbound sender. That sender builds the Google Chat create-message URL and body, which determines whether the user receives a threaded reply, a top-level reply, or no reply after an API rejection.

flowchart LR
  A[Incoming Google Chat event] --> B[Reply target resolution]
  B --> C[Reply delivery]
  C --> D[Shared outbound sender]
  D --> E{Valid same-space thread?}
  E -->|Yes| F[Threaded Chat API message]
  E -->|No| G[Top-level Chat API message]
  F --> H[Visible completed reply]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - For an invalid or cross-space reply target, the deliberate recovery is a visible top-level message rather than a threaded reply; in the reported typing-placeholder flow, users can briefly see the deleted placeholder before the completed reply arrives.
  • Resolve merge risk (P1) - The branch is behind current main. GitHub reports it cleanly mergeable and the patch is isolated to two Google Chat files, but maintainers should keep the usual exact-head merge/CI gate before landing.
  • Complete next step (P2) - An open, proof-backed PR already owns the source-proven bug; no separate repair lane should duplicate it, and the remaining action is normal maintainer merge review.
Agent review details

Security

None.

PR surface

Source +14, Tests +52. Total +66 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 17 3 +14
Tests 1 52 0 +52
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 69 3 +66

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: extensions/googlechat/src/targets.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Land the guarded top-level fallback (recommended)
    Accept the documented presentation tradeoff so malformed or foreign thread state becomes a visible top-level reply while valid same-space threads remain threaded.
  2. Pause for an alternative recovery policy
    Do not merge if maintainers require a different operator-visible recovery than posting the completed response as a top-level message.

Technical review

Best possible solution:

Merge the shared outbound validation so every Google Chat caller preserves valid same-space threads while invalid routing state is converted into a visible top-level reply instead of a silent failed delivery.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main’s shared sender forwards any nonempty thread value, and the supplied maintainer path proof shows a bare identifier is rejected by Google Chat after the typing placeholder is deleted; the branch’s guard omits that field and preserves a valid same-space control.

Is this the best way to solve the issue?

Yes. Guarding the common outbound sender is the narrowest canonical fix because reply delivery, channel-adapter sends, and action sends all converge there; caller-specific filtering would leave paths to drift.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 063907e9701c.

Labels

Label justifications:

  • P1: Current main can lose a completed Google Chat response after an invalid outbound thread makes the create-message request fail.
  • merge-risk: 🚨 message-delivery: The patch intentionally changes invalid reply-thread sends into top-level message delivery, which is safer than loss but visibly changes placement.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The PR contains current-main failure evidence, a maintainer exercise of the production delivery stack, and independent redacted live Google Chat staging evidence showing four completed replies without invalid-thread errors, drops, or duplicates.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR contains current-main failure evidence, a maintainer exercise of the production delivery stack, and independent redacted live Google Chat staging evidence showing four completed replies without invalid-thread errors, drops, or duplicates.

Evidence

Acceptance criteria:

  • [P1] Inspect the current-head three-way merge result and required CI status before landing.
  • [P1] Run the focused Google Chat sender regression coverage on the exact merge head through the approved untrusted-source proof path if CI must be refreshed.

What I checked:

  • Current-main failure boundary: Current main copies any truthy thread string into both the Google Chat request body and the reply-option query parameter; it has no resource-name or target-space validation at this owner boundary. (extensions/googlechat/src/api.ts:203, 063907e9701c)
  • Caller and lifecycle path: Reply delivery obtains payload.replyToId, uses it as deliveryThreadName, and passes it directly to sendGoogleChatMessage; this is the path that can delete a mismatched typing placeholder before the invalid create request. (extensions/googlechat/src/monitor-reply-delivery.ts:57, 063907e9701c)
  • Focused regression coverage: The branch tests bare identifiers, message and space resource names, and a foreign-space thread as omitted request fields, while retaining body and reply-option behavior for a valid same-space thread. (extensions/googlechat/src/targets.test.ts:569, b0f4dde00ecc)
  • Current-source provenance: Blame shows the current extracted outbound sender and reply-delivery module were carried into their present files by the August 1 Google Chat module split, so this review checked the current owner rather than an obsolete pre-split file. (extensions/googlechat/src/api.ts:181, afe024e8c799)
  • Release and current-main status: The PR head is not contained in any local release tag and therefore is not fixed in the reported latest release; supplied GitHub context also shows the PR remains open and cleanly mergeable, though behind main. (extensions/googlechat/src/api.ts:181, b0f4dde00ecc)
  • Real behavior proof: The supplied PR body and the August 1, 2026 maintainer comment document the current-main invalid-thread failure through the real delivery stack and independent redacted staging-bot verification that the guarded behavior delivers replies without invalid-thread errors or duplicates. (extensions/googlechat/src/monitor.reply-delivery-failure.test.ts:3, 063907e9701c)

Likely related people:

  • Yiğit ERDOĞAN: Commit afe024e carried the current Google Chat API sender and reply-delivery files into their present split modules, and current blame attributes the relevant boundary lines to that commit. (role: recent area contributor; confidence: medium; commits: afe024e8c799; files: extensions/googlechat/src/api.ts, extensions/googlechat/src/monitor-reply-delivery.ts)
  • steipete: Provided maintainer verification on August 1, 2026 that exercised the actual Google Chat delivery path and the proposed fallback behavior. (role: recent reviewer; confidence: high; files: extensions/googlechat/src/api.ts, extensions/googlechat/src/monitor-reply-delivery.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Reconfirm the clean current-head merge and required CI gate before landing because the branch is behind main.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-07-16T03:26:31.081Z sha 57214312f4e3397fb0551c21125c66854387646e :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-29T20:00:51.104Z sha 57214312f4e3397fb0551c21125c66854387646e :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-01T06:21:41.591Z sha 57214312f4e3397fb0551c21125c66854387646e :: needs changes before merge. :: none
  • reviewed 2026-08-01T17:22:02.389Z sha b0f4dde :: needs maintainer review before merge. :: none

@danieljimz

Copy link
Copy Markdown

+1 real-world hit on this, no dedicated issue existed so filed one

Hit exactly this on v2026.7.2-beta.5 — a Google Chat DM's typing placeholder got deleted (deleteGoogleChatMessage, since typingMessageThreadName !== replyThreadName) and the follow-up sendGoogleChatMessage call failed with the same 400 INVALID_ARGUMENT: The request contains an invalid thread resource name, dropping the reply entirely. Happened with two different models (anthropic-vertex/claude-haiku-4-5 and its google/gemini-3-flash-preview fallback), so it's not model-specific — purely the DM thread-resource-name handling.

Filed #115742 with our full repro/logs since there wasn't an open issue tracking this specific regression yet (only the older, already-closed #39554/#64313).

This PR's test plan (39/39, isUsableGoogleChatThreadName guard + fallback-to-new-message) looks like a complete, low-risk fix for the exact failure mode we hit. Would appreciate a review/merge — currently makes Google Chat DMs unusable for us on this beta.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 29, 2026
@danieljimz

Copy link
Copy Markdown

Real-behavior verification (2026-07-30, live Google Chat traffic)

Following up on my earlier "+1 real-world hit" comment — we built a test image that applies this PR's fix (isUsableGoogleChatThreadName guard in sendGoogleChatMessage) directly onto our v2026.7.2-beta.5 deployment and ran it against our real staging Google Chat bot for ~10 minutes of live DM traffic.

Setup: the PR branch itself is based on a pre-beta.5 main and wouldn't source-build cleanly in our pipeline (unrelated tooling issue on our end, not a defect in this PR), so we applied the same transformation from this diff directly onto the compiled @openclaw/[email protected] dist and redeployed.

Result: 4 separate DM exchanges over ~10 minutes, each going through the anthropic-vertex → Gemini fallback chain (a separate, known auth bug — #110103), including one 156s multi-tool-call turn. Zero 400 INVALID_ARGUMENT errors, zero dropped replies, zero "Message deleted by its author" — every reply delivered cleanly. Before this patch, this exact DM scenario (typing placeholder + model fallback) reliably reproduced the failure we described in #115742.

Logs redacted (space/message IDs, no user content):

message dispatch completed: channel=googlechat sessionId=unknown sessionKey=agent:main:googlechat:default:direct:spaces/-<redacted> source=replyResolver outcome=completed duration=156583ms
message processed: channel=googlechat chatId=googlechat:spaces/-<redacted> messageId=spaces/-<redacted>/messages/<redacted> sessionId=<redacted> sessionKey=agent:main:googlechat:default:direct:spaces/-<redacted> outcome=completed duration=156814ms

No messageReplyOption/thread errors anywhere in the gateway log for the full test window. This is independent confirmation that the fix works as intended against a real Google Chat channel, not just the mocked unit tests already in this PR. Happy to share more detail if useful for review.

@danieljimz

Copy link
Copy Markdown

Follow-up detail on the verification above

One more precise detail worth recording: in the exchange that hit an invalid/mismatched thread, the Google Chat UI showed the typing placeholder as "This message was deleted by its author", followed by the actual reply as a new, separate message (no Edited tag — unlike a same-thread reply, which does edit the placeholder in place). Confirmed exactly once, no duplicate content.

That matches this PR's fallback design precisely: drop the invalid thread, delete the stale placeholder, and deliver the reply as a new top-level message rather than editing in place or failing the send. Worth calling out for reviewers/UX awareness — the user does see a brief "deleted" ghost message before the real reply lands — but no message loss and no duplication, which is the meaningful fix over current main's behavior (send fails outright, placeholder stays deleted with nothing to replace it).

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 1, 2026
Reply routing can hand sendGoogleChatMessage a `thread` that is not a
valid `spaces/{space}/threads/{thread}` resource name — a bare id, a
`spaces/{space}/messages/{message}` name, or a thread from a different
(or wrongly-cased) space. The Chat API rejects the whole request with
`400 INVALID_ARGUMENT`, so the reply is never delivered even though the
agent already produced it (and did any side effects).

Guard the send so the `thread` field and the messageReplyOption fallback
are applied only when the thread is a well-formed name belonging to the
target space; otherwise post to the space as a new thread. Revives the
approach of openclaw#28153 (auto-closed as stale) and addresses the failure mode
behind openclaw#64313.
@jailbirt
jailbirt force-pushed the fix/googlechat-invalid-thread-resource-name branch from 5721431 to b0f4dde Compare August 1, 2026 17:12
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 1, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 1, 2026
@steipete

steipete commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer reproduced this through the identical actual production path before and after, using deliverGoogleChatReply -> sendGoogleChatMessage -> real google-auth-library RSA/JWT token exchange -> SSRF-guarded localhost HTTP against current main and the exact original contributor head b0f4dde00eccdc43b181a1be4ac3a95606830e65:

BEFORE main: DELETE typing -> 200; bare-thread reply POST -> 400 INVALID_ARGUMENT; reply lost
AFTER exact PR: DELETE typing -> 200; same bare-thread reply POST -> 200; reply delivered
AFTER exact PR: foreign-space thread -> omitted -> POST 200
AFTER exact PR: message-resource thread -> omitted -> POST 200
AFTER exact PR: valid same-space thread -> preserved -> POST 200
OAuth: 1 real RSA/JWT token exchange per run; every Chat request authenticated

Independent customer live Google Chat proof: four DM exchanges, zero lost replies: #108324 (comment).

Focused owner and delivery regressions: OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/private/tmp/openclaw-vitest-s02-108324-googlechat node scripts/run-vitest.mjs extensions/googlechat/src/targets.test.ts extensions/googlechat/src/monitor.reply-delivery.test.ts — 52 passed.

Fresh gpt-5.6-sol xhigh structured review: clean. Exact-head full CI: https://github.com/openclaw/openclaw/actions/runs/30709830635. Exact-head real-behavior-proof gate: https://github.com/openclaw/openclaw/actions/runs/30713545211. Fixes #115742.

@steipete
steipete merged commit 7563e40 into openclaw:main Aug 1, 2026
96 of 100 checks passed
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 1, 2026
…reentrant-stop-20260801

* origin/main:
  fix(openai): keep embedding identity stable across upgrades (#117557)
  fix(googlechat): drop invalid thread resource names before send (#108324)
  fix(skills): preserve profile in ClawHub command hints (#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (#117556)
  fix(irc): strip markdown from outbound text (#112961)
abdulrahman305 pushed a commit to qenex-ai/openclaw that referenced this pull request Aug 1, 2026
* origin/main:
  refactor(policy): centralize doctor health-check descriptors (openclaw#117578)
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
vincentkoc added a commit that referenced this pull request Aug 1, 2026
* origin/main: (22 commits)
  refactor(ui): consolidate cron form control rendering (#117576)
  fix(memory): recover restored session freshness (#117548)
  fix(whatsapp): normalize future-proof QA poll and video note ingress (#117579)
  fix(perf): separate warm and first-device health probes (#117525)
  fix(ci): repair plugin prerelease validation (#117562)
  fix(tasks): sanitize every human task and flow detail (#117568)
  fix(feishu): cancel unread streaming-card error bodies before release (#117312)
  fix(status): honor explicit local RPC fallback timeouts (#117519)
  fix(ui): preserve Talk transcript surrogate bounds
  fix(tasks): validate notification policy before persistence (#117554)
  refactor: consolidate full release child workflows (#117385)
  refactor(policy): centralize doctor health-check descriptors (#117578)
  perf(gateway): mark recovery before model preparation (#117544)
  fix(ui): harden Talk transcript marker bounds
  test(openai): parse realtime websocket frames safely
  fix(openai): keep embedding identity stable across upgrades (#117557)
  fix(googlechat): drop invalid thread resource names before send (#108324)
  test(ui): cover bounded realtime Talk entries
  fix(ui): bound realtime Talk conversation text
  test(ui): cover reentrant Talk meter cleanup
  ...
abdulrahman305 pushed a commit to qenex-ai/openclaw that referenced this pull request Aug 1, 2026
* origin/main:
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
  refactor(plugins): consolidate registry snapshots (openclaw#117561)
  fix(plugins): fail blocked enable commands (openclaw#117536)
  test(secrets): dedupe runtime state fixtures (openclaw#117563)
pull Bot pushed a commit to zhenglee1984/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (28 commits)
  refactor(ui): consolidate cron form control rendering (openclaw#117576)
  fix(memory): recover restored session freshness (openclaw#117548)
  fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579)
  fix(perf): separate warm and first-device health probes (openclaw#117525)
  fix(ci): repair plugin prerelease validation (openclaw#117562)
  fix(tasks): sanitize every human task and flow detail (openclaw#117568)
  fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312)
  fix(status): honor explicit local RPC fallback timeouts (openclaw#117519)
  fix(ui): preserve Talk transcript surrogate bounds
  fix(tasks): validate notification policy before persistence (openclaw#117554)
  refactor: consolidate full release child workflows (openclaw#117385)
  refactor(policy): centralize doctor health-check descriptors (openclaw#117578)
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  fix(ui): harden Talk transcript marker bounds
  test(openai): parse realtime websocket frames safely
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
  ...
abdulrahman305 pushed a commit to qenex-ai/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (53 commits)
  fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579)
  fix(perf): separate warm and first-device health probes (openclaw#117525)
  fix(ci): repair plugin prerelease validation (openclaw#117562)
  fix(tasks): sanitize every human task and flow detail (openclaw#117568)
  fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312)
  fix(status): honor explicit local RPC fallback timeouts (openclaw#117519)
  fix(tasks): validate notification policy before persistence (openclaw#117554)
  refactor: consolidate full release child workflows (openclaw#117385)
  refactor(policy): centralize doctor health-check descriptors (openclaw#117578)
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  test(openai): parse realtime websocket frames safely
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
  refactor(plugins): consolidate registry snapshots (openclaw#117561)
  test(ui): cover reentrant Talk meter cleanup
  fix(plugins): fail blocked enable commands (openclaw#117536)
  fix(ui): reclaim reentrant Talk audio meters
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
…claw#108324)

Reply routing can hand sendGoogleChatMessage a `thread` that is not a
valid `spaces/{space}/threads/{thread}` resource name — a bare id, a
`spaces/{space}/messages/{message}` name, or a thread from a different
(or wrongly-cased) space. The Chat API rejects the whole request with
`400 INVALID_ARGUMENT`, so the reply is never delivered even though the
agent already produced it (and did any side effects).

Guard the send so the `thread` field and the messageReplyOption fallback
are applied only when the thread is a well-formed name belonging to the
target space; otherwise post to the space as a new thread. Revives the
approach of openclaw#28153 (auto-closed as stale) and addresses the failure mode
behind openclaw#64313.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
…reentrant-stop-20260801

* origin/main:
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main:
  refactor(policy): centralize doctor health-check descriptors (openclaw#117578)
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (22 commits)
  refactor(ui): consolidate cron form control rendering (openclaw#117576)
  fix(memory): recover restored session freshness (openclaw#117548)
  fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579)
  fix(perf): separate warm and first-device health probes (openclaw#117525)
  fix(ci): repair plugin prerelease validation (openclaw#117562)
  fix(tasks): sanitize every human task and flow detail (openclaw#117568)
  fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312)
  fix(status): honor explicit local RPC fallback timeouts (openclaw#117519)
  fix(ui): preserve Talk transcript surrogate bounds
  fix(tasks): validate notification policy before persistence (openclaw#117554)
  refactor: consolidate full release child workflows (openclaw#117385)
  refactor(policy): centralize doctor health-check descriptors (openclaw#117578)
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  fix(ui): harden Talk transcript marker bounds
  test(openai): parse realtime websocket frames safely
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  test(ui): cover bounded realtime Talk entries
  fix(ui): bound realtime Talk conversation text
  test(ui): cover reentrant Talk meter cleanup
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main:
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
  refactor(plugins): consolidate registry snapshots (openclaw#117561)
  fix(plugins): fail blocked enable commands (openclaw#117536)
  test(secrets): dedupe runtime state fixtures (openclaw#117563)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (28 commits)
  refactor(ui): consolidate cron form control rendering (openclaw#117576)
  fix(memory): recover restored session freshness (openclaw#117548)
  fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579)
  fix(perf): separate warm and first-device health probes (openclaw#117525)
  fix(ci): repair plugin prerelease validation (openclaw#117562)
  fix(tasks): sanitize every human task and flow detail (openclaw#117568)
  fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312)
  fix(status): honor explicit local RPC fallback timeouts (openclaw#117519)
  fix(ui): preserve Talk transcript surrogate bounds
  fix(tasks): validate notification policy before persistence (openclaw#117554)
  refactor: consolidate full release child workflows (openclaw#117385)
  refactor(policy): centralize doctor health-check descriptors (openclaw#117578)
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  fix(ui): harden Talk transcript marker bounds
  test(openai): parse realtime websocket frames safely
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (53 commits)
  fix(whatsapp): normalize future-proof QA poll and video note ingress (openclaw#117579)
  fix(perf): separate warm and first-device health probes (openclaw#117525)
  fix(ci): repair plugin prerelease validation (openclaw#117562)
  fix(tasks): sanitize every human task and flow detail (openclaw#117568)
  fix(feishu): cancel unread streaming-card error bodies before release (openclaw#117312)
  fix(status): honor explicit local RPC fallback timeouts (openclaw#117519)
  fix(tasks): validate notification policy before persistence (openclaw#117554)
  refactor: consolidate full release child workflows (openclaw#117385)
  refactor(policy): centralize doctor health-check descriptors (openclaw#117578)
  perf(gateway): mark recovery before model preparation (openclaw#117544)
  test(openai): parse realtime websocket frames safely
  fix(openai): keep embedding identity stable across upgrades (openclaw#117557)
  fix(googlechat): drop invalid thread resource names before send (openclaw#108324)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
  refactor(plugins): consolidate registry snapshots (openclaw#117561)
  test(ui): cover reentrant Talk meter cleanup
  fix(plugins): fail blocked enable commands (openclaw#117536)
  fix(ui): reclaim reentrant Talk audio meters
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: googlechat Channel integration: googlechat merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

googlechat: DM reply silently dropped after typing-placeholder is deleted — invalid thread resource name

3 participants