From e571bf964a6c1dfe6eb84b540da82642ff6af66e Mon Sep 17 00:00:00 2001 From: roboomp Date: Tue, 30 Jun 2026 22:09:50 +0000 Subject: [PATCH 1/6] fix(agent): rejected stale yield labels - Rejected unknown incremental yield labels when the active output schema is closed, so caller override schemas fail in-tool with retry feedback instead of post-mortem schema_violation.\n- Added regression coverage for reviewer-native labels under a caller override schema.\n\nFixes #3926 --- packages/coding-agent/CHANGELOG.md | 4 ++ .../src/tools/output-schema-validator.ts | 12 +++--- packages/coding-agent/src/tools/yield.ts | 27 +++++++++++--- .../coding-agent/test/tools/yield.test.ts | 37 +++++++++++++++++-- 4 files changed, 65 insertions(+), 15 deletions(-) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 8690c9aeb..a20807ec1 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Fixed + +- Fixed eval `agent()` subagents with caller-provided output schemas receiving stale native incremental `yield` labels by rejecting unknown labels for closed schemas with retry feedback naming the valid labels. ([#3926](https://github.com/can1357/oh-my-pi/issues/3926)) + ## [16.2.9] - 2026-06-30 ### Breaking Changes diff --git a/packages/coding-agent/src/tools/output-schema-validator.ts b/packages/coding-agent/src/tools/output-schema-validator.ts index 21edc37e2..a08208d19 100644 --- a/packages/coding-agent/src/tools/output-schema-validator.ts +++ b/packages/coding-agent/src/tools/output-schema-validator.ts @@ -25,12 +25,11 @@ export interface OutputValidator { * Per-label validators for incremental yields (`type: ["