fix(agent): silence verification-stop loop status line (#53223)

The verify-on-stop guard (#52296) printed '↻ Verification required before
finishing' to the terminal on every internal nudge turn, adding noise to
CLI/gateway sessions whenever code was edited without fresh passing checks.
Demote the user-facing status emit to a logger.debug breadcrumb — the loop
still nudges the model to verify before finishing, just silently.
This commit is contained in:
Teknium 2026-06-26 11:52:11 -07:00 committed by GitHub
parent 3c8d3ecfa0
commit 217047de2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4694,7 +4694,11 @@ def run_conversation(
"_verification_stop_synthetic": True,
})
agent._session_messages = messages
agent._emit_status("↻ Verification required before finishing")
# Run the verification-stop loop silently — the nudge is an
# internal turn that should not add noise to the user's
# terminal. Keep a debug breadcrumb in agent.log for tracing.
logger.debug("verification stop-loop nudge issued (attempt %d)",
agent._verification_stop_nudges)
continue
messages.append(final_msg)