Skip to content

fix: show chat tool progress#286

Merged
rogerchappel merged 1 commit intomainfrom
fix/chat-tool-activity-feedback
May 5, 2026
Merged

fix: show chat tool progress#286
rogerchappel merged 1 commit intomainfrom
fix/chat-tool-activity-feedback

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

Summary

  • forward OpenClaw stream: "tool" chat events from /api/chat as chat_progress SSE payloads
  • include sanitized/truncated tool name/status/detail metadata so long-running tool calls surface in CrewCMD instead of silent waits
  • render live tool labels such as “Calling sessions_send” / “Completed sessions_send” in the execution progress panel
  • teach the active chat run store to preserve tool detail and treat tool progress events as running state

Verification

  • pnpm exec eslint src/app/api/chat/route.ts src/components/chat/execution-progress-panel.tsx src/lib/chat-active-run-store.ts src/lib/chat-active-run-store.test.ts
  • pnpm exec tsc --noEmit --pretty false
  • pnpm test -- src/lib/chat-active-run-store.test.ts --run
  • git push -u origin fix/chat-tool-activity-feedback pre-push hook ran pnpm typecheck and pnpm build successfully

Notes

  • preserves normal text streaming and [DONE] handling; tool activity is sent as additional chat_progress data frames
  • tool args/results are collapsed to single-line snippets and truncated to avoid dumping large raw payloads into the UI

@rogerchappel rogerchappel merged commit 2be4d89 into main May 5, 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