refactor(runtime): use OpenAI native ApplyPatch - #2532
Merged
Merged
Conversation
Astro-Han
force-pushed
the
feat/1552-apply-patch-toolset
branch
from
August 8, 2026 19:20
6ab6dee to
f024e55
Compare
Astro-Han
force-pushed
the
feat/1552-apply-patch-toolset
branch
from
August 9, 2026 01:44
e793f9e to
1614e7a
Compare
Astro-Han
force-pushed
the
feat/1552-apply-patch-toolset
branch
from
August 9, 2026 04:11
b012092 to
a4e381f
Compare
Astro-Han
force-pushed
the
feat/1552-apply-patch-toolset
branch
4 times, most recently
from
August 9, 2026 06:52
94b2972 to
6555f89
Compare
Astro-Han
force-pushed
the
feat/1552-apply-patch-toolset
branch
2 times, most recently
from
August 9, 2026 07:43
d74ec5c to
9887758
Compare
Astro-Han
force-pushed
the
feat/1552-apply-patch-toolset
branch
from
August 9, 2026 10:22
24b06bb to
872fdf6
Compare
Astro-Han
marked this pull request as ready for review
August 9, 2026 10:48
This was referenced Aug 9, 2026
6 tasks
2 tasks
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.
Summary
openai.tools.applyPatch()tool only for documented Apply Patch models on native OpenAI Responses; every other model and provider keeps the existing tool surface.@openai/agents-core.applyDiff()for the official single-file V4A create/update semantics.FilesystemExecutor, its canonical write lock, workspace adapter, permission boundary, and sandbox worker.Refs #1552
Verification
npm run format:checknpm run check:third-party-noticesnpm --workspace @maka/core run buildnpm --workspace @maka/runtime run buildnpm --workspace @maka/runtime-host run buildgit diff --checkNot run locally: the full repository test suite or a paid OpenAI model call.
Review focus
create_file,update_file, ordelete_fileoperation. There is no multi-file transaction or partial-settlement state machine.apply_patchname so continuation and replay serialize asapply_patch_call_output, including failures.applyDiff.mjs; it does not bundle the unrelated Agents SDK runtime.Checklist
Does this PR entail a change in behavior?