Repository navigation
fix(core): recover common tool-call argument and edit-match failures - #485
Conversation
…ne hash parser Models with no hash fill if_hash and if_changed_since with zeros; on the v0.1.8 build that was 21 stale_file errors in 15 runs. The placeholder is now absent, and edit, write and read share one short-hash parser.
…matches, accept a string checklist - An edit whose old equals its new is skipped with a note instead of failing the batch (17 errors in 11 v0.1.8 runs). - Fuzzy matches in CRLF text write CRLF; curly quotes, dashes and ellipses match their ASCII forms; a copied read_file gutter is stripped. - update_goal accepts the checklist JSON-encoded as a string (5 errors). - One helper formats stopped shell results instead of three copies.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Change
Plan section D: tool calls that used to fail now apply, or fail with a clearer error. I measured first on the newest build in the session store (prompt version 22, 334 runs, 2026-10-14 to 10-22; the store has no v0.1.9 runs) and fixed only the shapes that still occur:
if_hash/if_changed_sinceset toh:000000000000now counts as no hash rather than a stale one (21 stale_file errors in 15 runs). An unread file still needs a read. Edit, write and read share one hash parser.oldequals itsnewis skipped withnote=identical_edit_skippedinstead of failing the whole batch (17 errors in 11 runs). A batch of only such edits is still an error.…match their ASCII forms (via=punctuation).oldcopied withread_file's line-number prefix is retried without it (via=line_numbers_stripped), and the prefix is stripped fromnewtoo.update_goalaccepts the checklist sent as a JSON string (5 errors in 4 runs).The shapes the plan listed (
{}arguments,rangeswithoffset/limit, every insert field set) show 0 errors on that build. Two items were left out: a minimal valid call on the second identical error had only 1 back-to-back repeat, andeditssent as a string had 1 occurrence ever. Themax_per_fileerror is kept, because an earlier commit pinned it as an error that tells the model the valid range.Verification
zero_hash_placeholder_reads_as_absent(fails on main),an_identical_edit_is_skipped_and_the_rest_of_the_batch_applies,a_fuzzy_match_in_crlf_text_writes_crlf,typographic_punctuation_matches_its_ascii_form,a_copied_read_file_gutter_is_stripped_from_old_and_new,a_checklist_sent_as_a_json_string_decodes.cargo xtask check: passed on the pushed head.Known impact
docs/design/tools.mdupdated for the new strategies and notes.