Skip to content

fix(remote): mark results read after successful IM delivery - #3787

Closed
bobleer wants to merge 3 commits into
openBitFun:mainfrom
bobleer:bob/fix-imbot-read-receipts
Closed

bobleer wants to merge 3 commits into
openBitFun:mainfrom
bobleer:bob/fix-imbot-read-receipts

Conversation

@bobleer

@bobleer bobleer commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Successfully sending a final reply through Feishu, Telegram or WeChat now acknowledges that turn as read on its execution host. This uses the existing send operation's success result. Failed sends retain the unread marker. WeChat proactive replies also acknowledge the turn outputs actually included in the sent reply.

The host persists the receipt and publishes it to connected surfaces. Reopening Desktop, reconnecting before transcript hydration, or receiving a delayed completion event preserves the acknowledgement. A receipt does not clear a different turn's result or pending permissions/questions.

Cross-device acknowledgements negotiate session_result_ack_v1 and target the original execution device and admitted turn. Older targets retain their existing sending and unread behavior.

Type and Areas

Type: Bug fix

Areas: IM bot reply delivery, session persistence, Remote Connect, Web UI unread state

Verification

  • Web UI store/navigation regression tests: 358 passed.
  • Session metadata/storage tests: 40 passed; activity payload compatibility: 14 passed; metadata contracts: 22 passed.
  • Remote Connect wire contracts: 81 passed; acknowledgement command routing: 1 passed.
  • Core IM bot tests: 78 passed, including encrypted loopback forwarding, send failure without acknowledgement, successful delivery acknowledgement, and legacy-target compatibility.
  • Read event projection and replay publication: 2 passed.
  • pnpm run check:web, pnpm run check:core-boundaries, pnpm run fmt:rs, and git diff --check: passed.

Reviewer Notes

AI-assisted implementation. Validation uses local persistence, mocked IM send results, encrypted remote-control loopback, and simulated Peer surfaces. Live IM services, SSH remote workspaces, and Detached Dispatch deployments were not exercised. No changes to provider response validation are included.

Checklist

  • Focused changes; no secrets, temporary planning files or unrelated workspace edits.
  • Relevant verification and remote-scenario limits recorded above.
  • No new UI copy or visual changes.

@bobleer bobleer changed the title fix(remote): default IM bot turns to read fix(remote): mark results read after successful IM delivery Nov 7, 2026
@bobleer bobleer closed this Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant