Skip to content

fix: include runId in plain-text approval fallback for disambiguation#7518

Merged
noanflaherty merged 1 commit into
mainfrom
swarm/fb9c/task-1
Feb 24, 2026
Merged

fix: include runId in plain-text approval fallback for disambiguation#7518
noanflaherty merged 1 commit into
mainfrom
swarm/fb9c/task-1

Conversation

@noanflaherty
Copy link
Copy Markdown
Contributor

@noanflaherty noanflaherty commented Feb 24, 2026

Addresses Codex review feedback on #7435. When rich prompt delivery fails and falls back to plain text, the fallback now includes the runId so guardians with multiple pending approvals can disambiguate. Previously, the plain-text fallback would stall in multi-approval scenarios because handleApprovalInterception rejects decisions without a runId.

Changes:

  • Append [ref:<runId>] tag to all plain-text approval messages (both rich-fallback and non-rich channel paths)
  • Update parseApprovalDecision to extract runId from [ref:...] tags in guardian replies
  • Add tests for ref-tag extraction in the approval parser

Open with Devin

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 4 additional findings in Devin Review.

Open in Devin Review

Comment thread assistant/src/runtime/routes/channel-routes.ts
@noanflaherty
Copy link
Copy Markdown
Contributor Author

Addressed in #7571

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