Skip to content

fix: add linebreak in gateway stream after tool calls (#2177) - #2186

Closed
mr-emmett-one wants to merge 1 commit into
NousResearch:mainfrom
mr-emmett-one:fix/2177-gateway-streaming-linebreak
Closed

fix: add linebreak in gateway stream after tool calls (#2177)#2186
mr-emmett-one wants to merge 1 commit into
NousResearch:mainfrom
mr-emmett-one:fix/2177-gateway-streaming-linebreak

Conversation

@mr-emmett-one

Copy link
Copy Markdown
Contributor

What does this PR do?
Fixes a formatting bug where text generated after a tool call is concatenated directly to the tool progress indicator. This injects \n\n into the stream delta immediately after a tool finishes, ensuring the LLM's response starts on a clean line.

Related Issue
Fixes #2177

Type of Change
[x] 🐛 Bug fix (non-breaking change that fixes an issue)

Changes Made

  • gateway/run.py: Added stream_consumer_holder[0].on_delta("\n\n") inside progress_callback.

Checklist

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits
  • I searched for existing PRs
  • I've tested on my platform: github.dev (Browser environment)

@teknium1

Copy link
Copy Markdown
Contributor

Closing — duplicate of another open PR addressing the same issue.

@teknium1 teknium1 closed this Mar 22, 2026
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.

[Bug]: Gateway streaming concatenates resumed text after tool calls without linebreak

2 participants