Skip to content

Conversation

@GuyPaddock
Copy link
Owner

No description provided.

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

This restores a feature that was previously part of `str_replace_editor` for some reason.
This is essential for the LLM to see the outcome of a patch. Otherwise, they
will loop repeatedly.
We don't need to specially handle "success"/"error" observations. Also,
since both "patch_success" and "patch_error" are handled the same way,
we can just handle it with a single method.
This was inadvertently dropped and did not need to be removed to
implement this feature.
None of the other observation types differ by outcome type, so
ApplyPatch should follow the existing convention.
@GuyPaddock GuyPaddock force-pushed the feature/replace_str_replace_editor_with_apply_patch branch 2 times, most recently from 4421af5 to fa4c776 Compare December 21, 2025 21:27
This was supposed to be a correlation ID for patches, but we didn't use
it at all, and I didn't see a way it's that different from built-in tool
call IDs.
@GuyPaddock GuyPaddock force-pushed the feature/replace_str_replace_editor_with_apply_patch branch 3 times, most recently from dcc39b5 to 419dde4 Compare December 21, 2025 22:48
v0 conversations automatically look up the localized text by action type
and don't provide an existing switch/case statement injection point to
dynamically provide arguments to the localized text. At the same time,
it's really not necessary for us to make the title dynamic because a
patch can theoretically touch multiple files, so it's best to expose
this info in the action details.
@GuyPaddock GuyPaddock force-pushed the feature/replace_str_replace_editor_with_apply_patch branch 2 times, most recently from 06bef48 to 00b3dab Compare December 21, 2025 23:45
- Put patch after file summary.
- Use the correct loop structure for the data structure.
@GuyPaddock GuyPaddock force-pushed the feature/replace_str_replace_editor_with_apply_patch branch from 00b3dab to c46382c Compare December 21, 2025 23:50
@GuyPaddock GuyPaddock force-pushed the feature/replace_str_replace_editor_with_apply_patch branch from 4f5b644 to 0077cd2 Compare December 22, 2025 02:23
@GuyPaddock GuyPaddock force-pushed the feature/replace_str_replace_editor_with_apply_patch branch from e7b47fc to 6aba3bb Compare December 22, 2025 04:10
@GuyPaddock GuyPaddock force-pushed the feature/replace_str_replace_editor_with_apply_patch branch from 6aba3bb to 2cb0ffa Compare December 22, 2025 05:22
We already have an in-context example of how to use this tool, so this
change revises that existing example to include the details we want
about including context in the patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants