Repository navigation
Require terminal output from Claude token optimizer - #11535
Conversation
Co-authored-by: lpcox <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The prompt omits max: 1, leaving noop capped at 2 and allowing multiple terminal outputs despite the single-output contract; the configuration and compiled lock should be corrected.
1 open issue
What changed in this PR
Updates the Claude token optimizer workflow so successful runs always emit a terminal safe output, including noop when no optimization issue should be created.
Changes:
- Adds a non-issue
noopsafe-output configuration. - Updates no-target and no-report paths to require terminal safe output.
- Adds regression assertions and regenerates the workflow lock metadata.
| File | Description |
|---|---|
| scripts/ci/smoke-copilot-workflow.test.ts | Adds regression checks for the noop configuration and required early-exit instructions. |
| .github/workflows/claude-token-optimizer.md | Configures noop and documents terminal safe-output behavior for successful runs and fallback paths. |
| .github/workflows/claude-token-optimizer.lock.yml | Regenerates the compiled workflow metadata and safe-output configuration. |
Review effort: Lite (dynamic)
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Co-authored-by: lpcox <[email protected]>
Fixed in |
…1850) * docs(diagnostics): add CI-012 terminal safe-output finding and CI-008 citation - CI-012: agentic workflow exits 0 without a terminal safe output (issue #11523, PR #11535) - CI-008: cite PR #11558 for local-build config sync on published-release workflows - Regenerate docs/diagnostics/README.md index Co-authored-by: Copilot <[email protected]> * docs(diagnostics): scope CI-012 to Copilot Co-authored-by: copilot-swe-agent[bot] <[email protected]> * docs: regenerate diagnosis artifacts Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: lpcox <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Landon Cox <[email protected]>

When no eligible workflow was staged, the optimizer exited without a terminal safe output, leaving completion unconfirmed. Configure
noopfor successful runs that have no optimization issue to create, including the no-target and no-report paths.noopoutput that does not create an issue.create_issuefor recommendations,noopotherwise.