Repository navigation
feat(interactions): show countdowns for known approval deadlines - #226
Merged
Merged
Conversation
Persist enforced response deadlines across replay and expose them to cards. Show a stable countdown that waits for gateway expiry at zero. Keep unknown and unbounded waits without a deadline, including offline bot approvals. Related: #225
nixuuu
added a commit
that referenced
this pull request
Nov 9, 2026
Moves known request deadlines into a shared card header: beside the title on wider cards and right-aligned below it on narrow cards. The question panel keeps the countdown before its collapse chevron, truncates the title first, and preserves the header when the gateway marks the request expired. Known deadlines keep their reserved space after resolution. Applies the same header pattern to thread permission cards, timeline requests, bot questions and bot approvals. Mobile question and timeline requests use the equivalent wrapping header; the changes are JS/TS only. Amber at 25 seconds, tabular digits and non-live countdown behavior are preserved. The existing intentional two-row question footer is unchanged. ### Verification - Browser: light/dark at 1280, 720 and 390 px; short, typical and very long synthetic titles; question panel, timeline request, permission card and both bot cards. Checked normal/amber/zero/expired countdown states, collapse/expand before and after expiry, and advancing from 1 of 3 to 2 of 3. Header dimensions and title/chevron positions remain stable relative to the header when the countdown clears. No overlapping controls or seams observed. Temporary gallery fixtures were removed; no screenshots are committed. - Passed: `bun install`, `bun run gen:check`, `bun run typecheck`, `bun run lint`, `bun run format:check`, and `bun run --filter @canopy/web build`. - Passed: full `bun run check:tmp`, 1854 passed / 161 skipped / 0 failed across 329 files, with nothing left in its temporary directory. A preceding full run hit three `ENOSPC` failures while copying supervisor test binaries in the memory-backed temporary filesystem; the complete rerun used a disk-backed temporary directory and passed, including those three cases. No test or application code was changed for this environment issue. - Mobile: `bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive` passed before and after the changes. Unchanged fingerprints: iOS `2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3`; Android `c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d`. No native-device visual check was performed. - Copy audit: no new or changed UI text. Related: #226
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.
Approval and question cards now show how much time is left when the deadline is known.
Deadlines (from the same place that enforces the timeout)
ask_user: 120 s.0085_interaction_deadlines) and survive replay; when two limits apply, the earlier one wins. Timeout values are unchanged.On the card (
RequestCountdown.svelte)Tests: gateway integration in
ask-user.test.tsandbots-harness.test.ts:43 related integration tests pass.
check:tmp: 1442 passed, 0 failed.Copy audit (§8):
Checked through the ticking, warning, expiring and expired states, in light and dark, at desktop and phone width.