Repository navigation
fix(bots): expire unanswered approvals and fit long values - #225
Merged
Merged
Conversation
Expire bot approvals and blocking thread interactions when their waiting call or turn ends. Serialize decisions with expiry, retain offline waits and preserve stored decisions on replay. Render long approval values with shared markdown previews, disclosure and copy controls. Keep structured values intact instead of parsing prompt paragraphs as fields. Fixes: #97
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A bot's approval card no longer stays actionable after the bot has stopped waiting, and long values no longer break the card.
1. Expired approvals
The maintainer approved after the bot's tool call had timed out. Nothing ran, yet the card switched to "✓ Approved". Causes:
Fix:
FailedPrecondition: This request expired., and nothing is recorded or run.0084_bot_approval_expiryrepairs stale bot cards.Timeouts found (unchanged):
ask_userin threads: 120 s;MCP_TOOL_TIMEOUT).2. Card layout with long values
The label column took most of the width, and parsing newlines split prompt paragraphs into separate fields. Now:
Tests: expiry broadcasts, late decisions rejected, in-time approvals still working, offline waits, reconnects, restarts and parent-routed questions.
check:tmp: 1431 passed, 0 failed.Copy audit (§8)
Checked in a browser at desktop, narrow and phone width, in light and dark.
Fixes: #97