Repository navigation
feat(ui): make the streaming-turn timeout configurable via GAIA_STREAM_TIMEOUT - #4916
Merged
kovtcharov-amd merged 3 commits intoOct 12, 2026
Merged
Conversation
…e by env var in _chat_helpers.py
A typo in GAIA_STREAM_TIMEOUT now stops the Agent UI server at startup with an error naming the variable, instead of silently using 600s. - Whole seconds, 1 to 86400; unset or empty keeps the 600s default - Drop the undocumented STREAM_TIMEOUT alias and restore the file mode - Timeout message names the variable as a remedy - Document it in the Agent UI guide; add unit tests
Collaborator
|
Thanks for this, Kevin. It's a real pain point and your fix was in the right place. I pushed a follow-up commit to your branch so it can merge now; nothing more is needed from you. What changed on top of yours:
🔍 Technical details
|
Contributor
|
Verdict: Approve with suggestions Users can now raise the Agent UI's 10-minute limit on streamed replies with
🔍 Technical details
|
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…y env var in _chat_helpers.py
Summary
This makes the currently hard-coded _STREAM_TIMEOUT in _chat_helpers.py configurable by an environment variable (GAIA_STREAM_TIMEOUT), or defaults to the current 600 seconds.
Why
Long streams can time out currently when pushed hard.
Linked issue
Closes #4915 (feature request)
Changes
reads _STREAM_TIMEOUT from env var GAIA_STREAM_TIMEOUT or defaults to current value of 600
Test plan
Set GAIA_STREAM_TIMEOUT=1800 before launching GAIA, then try a long streaming query.
Evidence
Not sure what you actually need here... I can create some logs before/after the change if needed.
gaia mcp serve)gaia <subcommand>you ran and its actual outputChecklist
Closes #N/Fixes #N/Refs #N).python util/lint.py --all,pytest tests/unit/).