#7940: fix(googlechat): add messageReplyOption for proper thread replies
channel: googlechat
size: XS
Cluster:
WhatsApp and Google Chat Fixes
Add REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD query parameter to ensure bot replies are posted within the existing thread instead of creating new messages in the main space.
This fixes the issue where bot responses appeared outside of threads when users messaged within a Google Chat thread context.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the Google Chat message send endpoint to include the `messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD` query parameter when posting messages, aiming to keep bot replies within an existing thread rather than creating a new top-level message in the space.
Change is localized to `extensions/googlechat/src/api.ts` in `sendGoogleChatMessage`, which is used by the Google Chat channel implementation when sending text/media replies.
<h3>Confidence Score: 4/5</h3>
- This PR looks safe to merge; it’s a small behavioral change confined to Google Chat message sending.
- The change is a single query parameter addition and should not affect other endpoints, but it does slightly alter message routing semantics for all sends, so it’s worth ensuring this is desired for non-threaded posts as well.
- extensions/googlechat/src/api.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#3837: fix(googlechat): space events response and thread reply context
by rehanchrl · 2026-01-29
79.6%
#13829: fix(googlechat): detect bot @mentions via user.type when botUser no...
by mcaxtr · 2026-02-11
75.6%
#2300: fix(mattermost): ensure replies create threads in channels
by blizzy78 · 2026-01-26
75.5%
#7218: fix(telegram): skip empty text messages in threaded mode
by ArsalanShakil · 2026-02-02
73.7%
#15643: fix(googlechat): DM's works, but groups don't - return add-on actio...
by kamil-rudnicki · 2026-02-13
73.6%
#3300: changed chat session selection logic in iMessage
by KimEJ · 2026-01-28
73.5%
#3727: fix(googlechat): space type detection for modern API
by gustavozirbes · 2026-01-29
73.5%
#7127: fix(webchat): add regenerate flag to prevent context leak on response…
by craihub · 2026-02-02
73.4%
#8284: Fix: Webchat images now persist after sending
by vishaltandale00 · 2026-02-03
73.1%
#7261: fix(telegram): preserve DM topic thread id for outbound media
by ViffyGwaanl · 2026-02-02
72.8%