Skip to content

fix: strip empty WorkBuddy chat-stream deltas - #114

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/workbuddy-empty-stream-deltas
Sep 7, 2026
Merged

fix: strip empty WorkBuddy chat-stream deltas#114
caigee-cmd merged 1 commit into
mainfrom
fix/workbuddy-empty-stream-deltas

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • WorkBuddy chat SSE always includes empty content / reasoning_content, dummy function_call, and empty tool_calls.
  • Sanitize those deltas on the chat stream so OpenAI-compatible clients do not render a flood of blank thinking chunks.
  • Keep real reasoning, content, finish_reason, usage, and [DONE].

Test plan

  • go test ./internal/providers/workbuddy/
  • After merge, ship the next patch from main via release.yml (do not freeze Unreleased first).

WorkBuddy chat SSE always includes empty content, reasoning_content, and dummy function_call fields. Drop those blanks so OpenAI-compatible clients do not render a flood of empty thinking chunks.
@caigee-cmd
caigee-cmd merged commit 31dddcd into main Sep 7, 2026
6 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.

1 participant