Skip to content

fix(workflows): unstall credit card repeat-back confirmation#6447

Open
chenghao-mou wants to merge 1 commit into
mainfrom
chenghao/fix/AGT-3139-credit-card-confirm-routing
Open

fix(workflows): unstall credit card repeat-back confirmation#6447
chenghao-mou wants to merge 1 commit into
mainfrom
chenghao/fix/AGT-3139-credit-card-confirm-routing

Conversation

@chenghao-mou

Copy link
Copy Markdown
Member

During repeat-back confirmation the LLM often routes the repeated value back to update_* instead of confirm_*; the task re-arms confirmation, the model then claims the value is confirmed without any tool call, and the task group stalls (dead air until the caller speaks again).

update_* now raises a ToolError redirecting the model to confirm_* when it receives the pending value again, all three instruction templates get the explicit tool-invocation guard from name.py, and the update return strings cover the late-update case where the caller already repeated the value. A different value still re-arms confirmation, so mid-confirmation corrections are unchanged.

Known gap: if the model never calls update_* until after the repeat (or calls no tool at all), the task can still stall; prompt guidance alone did not fix that for gpt-5.2 at low reasoning effort. Structural fix (forced tool_choice while confirmation is pending) tracked in AGT-3140.

Repro used for both the bug and verification: lk agent daemon text session against GetCreditCardTask(require_confirmation=True).

Fixes AGT-3139

🤖 Generated with Claude Code

…it card task

During repeat-back confirmation the LLM often routes the repeated value
back to update_* (or claims confirmation without any tool call), which
re-arms confirmation and stalls the task group (dead air until the next
user utterance). Raise a ToolError pointing at the confirm tool when
update_* receives the pending value again, add the explicit
tool-invocation guard from name.py to the three instruction templates,
and extend the update return strings to cover late update calls that
arrive after the user already repeated the value.

Fixes AGT-3139

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chenghao-mou chenghao-mou requested a review from a team as a code owner July 15, 2026 21:09

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant