Skip to content

fix: auto-continue on empty streaming response - #242

Merged
avoidwork merged 1 commit into
mainfrom
fix/auto-continue-on-empty-stream
Jun 14, 2026
Merged

fix: auto-continue on empty streaming response#242
avoidwork merged 1 commit into
mainfrom
fix/auto-continue-on-empty-stream

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

Description

Detects when the ReAct agent completes a streaming cycle with zero text output (silent tool resolution, empty final LLM call, or compaction retry) and automatically sends a continuation signal to the agent. Previously, the TUI would display nothing and the agent appeared frozen.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)

Testing

Manually verified the streaming callback accumulates text correctly. The new auto-continue path triggers only when committedContent.trim() === '', surfaces tool results to the UI, and streams the actual response without blocking the main thread.

Coverage

  • 100% line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with 100% line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

@avoidwork avoidwork self-assigned this Jun 14, 2026
@avoidwork

Copy link
Copy Markdown
Owner Author

Closes #233

@avoidwork
avoidwork merged commit c8166f7 into main Jun 14, 2026
3 checks passed
@avoidwork
avoidwork deleted the fix/auto-continue-on-empty-stream branch June 14, 2026 22:40
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