Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Dec 31, 2025

Slight simplification of #10414

daniel-lxs and others added 2 commits December 30, 2025 23:33
…ing streaming

During streaming, the partial-json library may return truncated string values when
chunk boundaries fall mid-value (e.g., 'sr' instead of 'src/core/prompts/sections/skills.ts').

This fix:
1. Waits for the path to stabilize (same value in consecutive partial blocks) before creating files
2. Updates diffViewProvider.relPath in execute() when isEditing is already true
3. Re-reads fresh block data for non-partial tool_use blocks

Fixes ROO-311
@mrubens mrubens requested review from cte and jr as code owners December 31, 2025 07:56
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Dec 31, 2025
@roomote
Copy link
Contributor

roomote bot commented Dec 31, 2025

Rooviewer Clock   See task on Roo Cloud

All issues resolved. The fix correctly adds writeToFileTool.resetPartialState() to beforeEach and updates the test assertions to match the expected behavior.

  • Test relies on state pollution: beforeEach should call writeToFileTool.resetPartialState() to isolate tests
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 31, 2025
@mrubens mrubens merged commit dea33f9 into main Dec 31, 2025
10 checks passed
@mrubens mrubens deleted the minimal_write_to_file_fix branch December 31, 2025 08:12
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Dec 31, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Dec 31, 2025
@roomote roomote bot mentioned this pull request Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants