Repository navigation
Conversation
A contestant fork writes every projected part back through updatePart. The projection joins a tool's text items into one output, and preserveToolContent put that whole output into the first text item while keeping the rest. A background shell's two-part result then reached the next turn's model with the second part glued onto the first and sent again on its own. Split the output back over the original text items instead. Unchanged output keeps the content as it is; a changed item takes its new text; text added at a boundary stays with the item before it.
This branch has not been deployed
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 and why
After a vote, a background shell result came back broken in the next turn's request. The second text part (
You will be notified automatically…) was glued onto the end of the first, right after the.outpath, and still sent on its own too. Every contestant fork writes tool results back from a joined copy of their text, and that whole copy went into the first part. Now it's split back over the original parts.Testing
bun test --timeout 30000 ./test/arena/v2-session-runtime.test.tsinarena-backend/packages/opencode: 34 passed. The two new tests fail without the fixbun test --timeout 30000 ./test/arena/fork.test.ts: 8 passedbun run typecheck,npm run typecheck,npm run lintandnpm run format:checkpassChecklist
npm run typecheck,npm run lintandnpm run formatpass