Skip to content

fix: restore detailed chat-mode replies#601

Merged
rogerchappel merged 2 commits into
mainfrom
fix/chat-mode-assistant-detail
May 24, 2026
Merged

fix: restore detailed chat-mode replies#601
rogerchappel merged 2 commits into
mainfrom
fix/chat-mode-assistant-detail

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

Summary

  • skip the private Answered in chat. delivery placeholder during assistant recovery
  • stream explicit message-tool sourceReply.text as the visible assistant answer
  • cover both history recovery and live gateway events with targeted tests

Root Cause

In webchat/direct chat, OpenClaw sends the human-facing answer through the message tool, then Codex emits a private final assistant message: Answered in chat. CrewCmd was treating that private final as the chat answer and recovery selected it before the later delivery-mirror message.

Verification

  • pnpm test src/lib/chat-recovery.test.ts src/app/api/chat/route.test.ts
  • pre-commit hook ran npx tsc --noEmit for the staged files

Notes

The branch was rebased on current origin/main in a clean temporary worktree before pushing. The main checkout still has unrelated pre-existing mobile changes that are not included in this PR.

@rogerchappel rogerchappel marked this pull request as ready for review May 24, 2026 22:37
@rogerchappel rogerchappel merged commit a35795d into main May 24, 2026
1 check passed
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