Skip to content

fix(agents): status-only replies silently suppress fallback and task completion - #128269

Merged
steipete merged 1 commit into
mainfrom
codex/terminal-reply-visibility-qa
Aug 23, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/terminal-reply-visibility-qa

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users waiting for an agent answer or delegated task completion would receive no reply when the only generated output was transient commentary, a compaction/provider/status notice, or supplemental speech audio. Model fallback incorrectly settled the unfinished turn, and grouped completion delivery incorrectly reported success even though no terminal assistant answer was produced.

Why This Change Was Made

Both completion owners now use the existing canonical terminal-content classification instead of partially reimplementing visibility rules. This removes the divergent filtering path and its unsafe assertion, shares the same answer contract across fallback and delegated delivery, and preserves deliberate NO_REPLY, already-committed messaging-tool delivery, real attachments, and genuine assistant answers.

User Impact

An unfinished turn now advances to the next configured model instead of going silent, and delegated completions containing only progress/status/speech supplements visibly fail instead of being falsely marked delivered. Mixed notices plus a real answer and intentional silent completions remain unchanged.

Evidence

  • Pre-fix red: six model-classification/fallback failures, including actual two-candidate fallback dispatch; five grouped completion failures through the real gateway/Slack-thread announcement boundary.
  • Post-fix green: 63 canonical fallback/reply-payload/restart-recovery tests and 186 gateway-mediated delegated-completion tests.
  • Core and agent-test TypeScript checks, targeted lint/format, assertion-safety and max-lines ratchets, and runtime import-cycle checks pass.
  • Production delta: +6/-14 (net -8); tests: +89/-4. The assertion-safety baseline improves from three unchecked assertions to two.
  • Fresh independent in-session source-aware review covers both ownership boundaries, sibling terminal-answer contracts, intentional silence, committed delivery, real media, and the complete final diff. The external review CLI was unavailable under the session's approval boundary.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Aug 23, 2026
@steipete
steipete marked this pull request as ready for review August 23, 2026 16:11
@steipete
steipete merged commit 1d54ce3 into main Aug 23, 2026
294 checks passed
@steipete
steipete deleted the codex/terminal-reply-visibility-qa branch August 23, 2026 16:20
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant