Repository navigation
fix(tools): name the patch action that references a missing file - #6371
Merged
VascoSch92 merged 3 commits intoNov 5, 2026
Merged
Conversation
Closed
75 of 86 tasks
The parser already raises "Update File Error: Missing File" and "Delete File Error: Missing File" for a path absent from the loaded files, so load_files only needs to skip a missing path instead of raising its own hard-coded Delete error. This replaces the second pass over the patch text and the action_labels keyword.
Member
|
Thanks for this one. It conflicts with main now, because #6372 changed the same Could you rebase on main? When resolving, please keep the |
VascoSch92
approved these changes
Nov 5, 2026
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.
HUMAN:
Fixed the missing-file error label from #6348. I reviewed the diff and the test; an update to a missing file must not be reported as a delete.
AGENT:
Why
load_filesconverted everyFileNotFoundErrorinto a"Delete File Error: Missing File"DiffError, so an update of a file that does not exist was reported as a delete — the wrong action, and misleading to both the agent and the user reading the observation.Summary
load_filesskip a missing path instead of raising its own hard-codedDelete File Error. The parser already reports a path that is absent from the loaded files asUpdate File Error: Missing FileorDelete File Error: Missing File, matching the action that references it, so no extra parsing is needed.test_update_missing_file_error_names_updatefrom theworktree-test-edge-casesbranch (commit f2fcf6e) without itsxfail(strict=True)marker, per the [Bug]: Edge-case tests expose ~70 bugs across the SDK, agent server, tools and workspaces #6348 menu's acceptance criteria.Issue Number
Part of #6348 (menu sub-item: "Update of a missing file is reported as 'Delete File Error'")
How to Test
Before this change the update case fails (
'Delete File' is contained here); after, it passes and the existing delete case still reportsDelete File Error. The fulltests/tools/apply_patch/suite is 14 passed.ruff check/formaton the touched files are clean.Type
Notes
The
load_filessignature is unchanged, andprocess_patchis its only caller.