Skip to content

(MOT-3874) feat(shell): coder::apply-patch + worktree add/remove#412

Closed
ytallo wants to merge 1 commit into
feat/console-code-modefrom
feat/coder-apply-patch
Closed

(MOT-3874) feat(shell): coder::apply-patch + worktree add/remove#412
ytallo wants to merge 1 commit into
feat/console-code-modefrom
feat/coder-apply-patch

Conversation

@ytallo

@ytallo ytallo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Adds the apply_patch (V4A) format codex-family models are trained on:
*** Begin/End Patch with Add/Delete/Update File hunks, @@ context
markers, optional Move to, and End of File pinning. seek_sequence and
the replacement engine are ported from OpenAI's codex-rs apply-patch
crate (Apache-2.0) so context matching (exact -> rstrip -> trim ->
unicode-normalised) matches the reference; the parser is a compact
re-implementation pinned by the reference test cases.

All-or-nothing: every hunk resolves through the jail and computes
before anything is written (context mismatch fails C210 with re-read
guidance, filesystem untouched); writes land atomically per file and
modified files return a bounded echo of the first changed region.

Refs MOT-3874

Adds the apply_patch (V4A) format codex-family models are trained on:
*** Begin/End Patch with Add/Delete/Update File hunks, @@ context
markers, optional Move to, and End of File pinning. seek_sequence and
the replacement engine are ported from OpenAI's codex-rs apply-patch
crate (Apache-2.0) so context matching (exact -> rstrip -> trim ->
unicode-normalised) matches the reference; the parser is a compact
re-implementation pinned by the reference test cases.

All-or-nothing: every hunk resolves through the jail and computes
before anything is written (context mismatch fails C210 with re-read
guidance, filesystem untouched); writes land atomically per file and
modified files return a bounded echo of the first changed region.
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9e4bfa2a-8510-4ffc-8126-6de1fb896a8a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/coder-apply-patch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
workers Ready Ready Preview, Comment Jul 6, 2026 11:41am
workers-tech-spec Ready Ready Preview, Comment Jul 6, 2026 11:41am

Request Review

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

skill-check — worker

0 verified, 32 skipped (no docs/).

Layer Result
structure
vale
ai
render

Four for four. Nicely done.

@ytallo

ytallo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Consolidated into #423.

@ytallo ytallo closed this Jul 6, 2026
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.

1 participant