mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-07-09 17:28:45 +00:00
fix(coding-agent): allow extra edit replacement fields
This commit is contained in:
parent
d53b567601
commit
a1b336d73e
2 changed files with 3 additions and 2 deletions
|
|
@ -16,6 +16,7 @@
|
|||
- Fixed split-turn compaction to serialize summary requests so single-concurrency local providers do not fail with 429 errors ([#5536](https://github.com/earendil-works/pi/issues/5536)).
|
||||
- Fixed custom session entries appended during assistant streaming to render before the live assistant message, matching persisted session order.
|
||||
- Fixed oversized bash tool timeouts to fail with a clear validation error instead of being clamped to an immediate timeout ([#6181](https://github.com/earendil-works/pi/issues/6181)).
|
||||
- Fixed the edit tool schema to allow model-invented extra replacement fields instead of rejecting otherwise valid edits ([#6278](https://github.com/earendil-works/pi/issues/6278)).
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const replaceEditSchema = Type.Object(
|
|||
}),
|
||||
newText: Type.String({ description: "Replacement text for this targeted edit." }),
|
||||
},
|
||||
{ additionalProperties: false },
|
||||
{},
|
||||
);
|
||||
|
||||
const editSchema = Type.Object(
|
||||
|
|
@ -49,7 +49,7 @@ const editSchema = Type.Object(
|
|||
"One or more targeted replacements. Each edit is matched against the original file, not incrementally. Do not include overlapping or nested edits. If two changes touch the same block or nearby lines, merge them into one edit instead.",
|
||||
}),
|
||||
},
|
||||
{ additionalProperties: false },
|
||||
{},
|
||||
);
|
||||
|
||||
export type EditToolInput = Static<typeof editSchema>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue