You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Bot-to-bot (message_bot) replies fill the user's 1:1 chats; fold them under the 'Messaged X' marker #1366
When one bot messages another with message_bot, the woken bot runs with trigger bot_message inside its 1:1 thread with the user. Its final reply (or the automatic "Update from : …" fallback when it stays silent) is stored as a normal message in that thread. The sending bot's thread also gets follow-up text about the exchange.
The thread already shows a clickable "Message from X" / "Messaged X" marker (CollaborationMarker) for the exchange, so the extra text duplicates it. With a few bots coordinating, the user's DMs fill up with bot-to-bot chatter and it's hard to see what actually needs them.
Suggestion: in a bot's 1:1 thread, fold output from bot_message runs under the existing marker (collapsed by default, expandable), while keeping anything that needs the user visible (asks, choices, approvals, takeover). Display-only: stored history, model context and exports stay unchanged. Ideally the same on web/desktop and the native mobile app (apps/mobile/lib/message-presentation.ts).
Steps to reproduce
Create two bots, A and B.
In A's 1:1 chat, ask A to check something with B (A calls message_bot).
B replies to A.
Expected behavior
A's and B's chats with the user show the "Messaged B" / "Message from A" markers; the bot-to-bot content is available by clicking the marker, not as full messages in the user's DM.
Actual behavior
Both chats show the markers plus full message bubbles with the bots' replies and relays, so the user's DMs read as if the bots are messaging them.
Activity
Open folded peer replies from jumps and keep their reactions
Screenshot the folded-reply jump and reaction e2e states
Keep the reaction badge in view for the expanded screenshot
Fold only bot replies in a peer run, never a person's messages
Move the mobile thread's latest-row lookup into thread-scroll
Stop counting a fold's open or close as a new mobile message
Check that answering a bot's peer-run ask stays visible on web
Type the peer-run marker fixture in the visibility tests
Keep a keyboard-expanded peer marker in view on web
Update the transcript ref in a layout effect, not during render
Translate the peer marker toggle names into Hebrew
Fold peer-run replies under their marker in 1:1 chats (elie222#1489)