Repository navigation
Stream Dot task turns so long tasks bridge their prompt and answer - #37
Merged
Merged
Conversation
A task turn fetched with itemsView=full carries every tool call and command output, and long tasks exceed the 4 MiB response cap, so the decode hit an unexpected EOF on every attempt and the task's prompt and answer were never bridged. Walk the turns response token by token, keep only the items that are bridged, and allow up to 64 MiB for streamed responses.
Contributor
Author
|
All clear! No issues remaining. 🎉 1 issue already resolved
All CI checks passed on
Select any unchecked box below to run or rerun that agent. Full resultsIndent Review Agent
|
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.
What the logs show. With the decode logging from #36 on stable, every
Could not bridge ChatGPT task repliesfailure in the last day (105 lines, 5 tasks, 4 accounts) is/v2/threads/<id>/turnswithtruncated=true,bytes_read=4194304,decode_error=unexpected eofand a chunked body (content_length=-1). All 5 attempts fail the same way, and the cycle repeats whenever the task's turn changes or the bridge restarts. The task's prompt and answer never reach the chat.Cause.
TaskTurnsasks foritemsView=full, which includes every tool call, reasoning item and command output in the turn.Client.requestdecodes the whole body through a 4 MiBLimitReader, so long tasks get cut off.Change. Responses whose target implements a stream decoder are walked token by token with a 64 MiB cap. The turns page keeps only the items the bridge uses (user/agent messages and the
send_messagedelegation output) and skips the rest. Items that don't match the expected shape are still skipped, as before. Other endpoints keep the 4 MiB decode.Tag
@indentto continue the conversation here.