Repository navigation
feat(tools): onParameterParseFailure teardown boundary (split 4/6 of #1066) #1931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
easonLiangWorldedtech
wants to merge
28
commits into
Zoo-Code-Org:main
Choose a base branch
from
easonLiangWorldedtech:p1066/u3-parse-failure-boundary
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
cf5abe6
fix(task): stage-independent saveClineMessages + finalize open partia…
easonLiangWorldedtech d172c95
feat(write-to-file): per-task partial stream state + cleanup primitives
easonLiangWorldedtech 52699c6
test(write-to-file): cover partial-state cleanup primitives directly
easonLiangWorldedtech 4b23b6a
fix(write-to-file): capture streaming failure once, report it once
easonLiangWorldedtech e3c1040
feat(tools): onParameterParseFailure teardown boundary
easonLiangWorldedtech 445c2f5
chore(ci): re-trigger the unit suite after the flaky writeToFileTool …
1e0f1c4
test(write-to-file): align the partial-path case with handlePartial's…
b04e224
fix(tools): scope the write_to_file stream teardown to one task and f…
0dc92ca
fix(tools): do not report a completed teardown when the diff revert f…
58c1a2b
test(tools): cover rollback failure with a retained stream error, and…
af51675
fix(tools): report the rollback hazard from the failed-partial-stream…
1311c90
fix(tools): tear down the per-task stream state when a write is rejected
5d713e5
chore: trigger a fresh review pass at this head
41ae456
fix(tools): release the stream state on execute()'s early returns too
7c11c26
fix(write-to-file): stop a cancelled partial stream at every provider…
6626914
fix(write-to-file): let the cancellation teardown own a rejected open…
bcd801e
fix(write-to-file): release the partial stream state when the preview…
c1a9f1d
Merge org main (036245c5e, U1 #1927) into p1066/u3-parse-failure-boun…
41ccb42
fix(write-to-file): guard every setup step and roll a failed diff-ope…
easonLiangWorldedtech 5c0f212
fix(editor): gate rollback on an in-progress edit and restore buffers…
easonLiangWorldedtech d96c417
fix(tools): hand created directories to the diff view and release str…
6749898
Merge org main (a101c613e) into p1066/u3-parse-failure-boundary
1b09bab
test(editor): keep the new diff-view assertions inside the suppressio…
2a9bfab
fix(tools): stop a post-commit failure from rolling back a landed write
5ff7bea
style: format the write-path files for the repo-wide prettier check
b97f68e
fix(editor): fail the approved save when the document save reports false
3daf338
fix(editor): fail the rollback when the pre-stream restore edit is no…
23213ef
fix(editor): fail the existing-file rollback when the revert edit or …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this hook run for a truncated
write_to_filecall in production? The!block.nativeArgsguard inpresentAssistantMessage.ts(~l.551-576) pushes a generic result and breaks beforehandle(), sofinalizePartialToolAskandonParameterParseFailuremight never be reached. The specs callhandle()directly, so they would not show this.