Skip to content

feat(flow-chat): fix tool event handling and add stream diagnostics#191

Merged
GCWing merged 1 commit intoGCWing:mainfrom
wsp1911:main
Mar 19, 2026
Merged

feat(flow-chat): fix tool event handling and add stream diagnostics#191
GCWing merged 1 commit intoGCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented Mar 18, 2026

  • Fix ParamsPartial batching to match backend payload fields (event_type and params), so partial tool params are dispatched correctly.
  • Ignore late ParamsPartial events after terminal tool states, preventing completed tool cards from reverting to receiving and staying expanded.
  • Replace the <thinking_end> marker with an explicit end flag for thinking chunk events across backend transport and frontend handling.
  • Add stream statistics collection and summary logging for AI stream handlers to improve streaming diagnostics.
  • Sync frontend log level with app.logging.level at runtime so logging changes take effect immediately in the UI.

- Fix `ParamsPartial` batching to match backend payload fields (`event_type` and `params`), so partial tool params are dispatched correctly.
- Ignore late `ParamsPartial` events after terminal tool states, preventing completed tool cards from reverting to `receiving` and staying expanded.
- Replace the `<thinking_end>` marker with an explicit end flag for thinking chunk events across backend transport and frontend handling.
- Add stream statistics collection and summary logging for AI stream handlers to improve streaming diagnostics.
- Sync frontend log level with `app.logging.level` at runtime so logging changes take effect immediately in the UI.
@GCWing GCWing merged commit f8a9bdf into GCWing:main Mar 19, 2026
4 checks 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.

2 participants