Skip to content

structured_patch: Support structured hunks in Write create payloads#103

Merged
davidabram merged 1 commit into
mainfrom
sce/write-structured-hunks
Jun 30, 2026
Merged

structured_patch: Support structured hunks in Write create payloads#103
davidabram merged 1 commit into
mainfrom
sce/write-structured-hunks

Conversation

@stefanskoricdev

Copy link
Copy Markdown
Contributor

No description provided.

Write payloads with structured hunks (non-null originalFile + structuredPatch) now produce ParsedPatch hunks instead of being skipped as unsupported. The shared hunk-parsing logic is extracted into modified_patch_from_structured_hunks for reuse across Write and Edit paths. When no structured hunks are usable, Write falls back to tool_input.content for simple creates.

Fixture write_create_simple is repurposed to test the structured-update path; context documentation is updated to reflect the new semantics.

Co-authored-by: SCE <sce@crocoder.dev>
@stefanskoricdev stefanskoricdev marked this pull request as ready for review June 29, 2026 13:49
@davidabram davidabram merged commit 6f52dec into main Jun 30, 2026
6 checks passed
@davidabram davidabram deleted the sce/write-structured-hunks branch June 30, 2026 14:30
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