Skip to content

ui: show remaining-time countdown on approval prompt#32

Closed
Swissola wants to merge 3 commits into
anthropics:mainfrom
Swissola:enhance/prompt-countdown
Closed

ui: show remaining-time countdown on approval prompt#32
Swissola wants to merge 3 commits into
anthropics:mainfrom
Swissola:enhance/prompt-countdown

Conversation

@Swissola
Copy link
Copy Markdown

Summary

  • Replace elapsed-seconds header on the approval prompt with a remaining-time countdown
  • ~Xm when more than a minute remains, Xs below that, red below 30s
  • Includes the 5-minute auto-dismiss (supersedes Clear stale approval prompts after 5-minute timeout #27 if merged first — dedup the constant)

Motivation

The previous display showed how long you had been waiting (approve? 42s), which is not what matters. What matters is how long you have left. A countdown from 5 minutes gives the user a clear sense of urgency and lets them decide whether to act now or come back.

Below 60 seconds the display switches to a live seconds counter so the final window is actionable rather than a vague <1m.

Behaviour

Remaining Display Colour
2–5 min approve? ~4m dim
1–2 min approve? ~1m dim
30–60s approve? 45s dim
0–30s approve? 12s red
0 prompt clears

Test plan

  • Prompt appears — header shows ~5m
  • Wait — ticks down through minutes, switches to seconds below 60s
  • Goes red at 30s remaining
  • Clears automatically at timeout
  • Normal approve/deny before timeout unaffected

🤖 Generated with Claude Code

Swissola and others added 3 commits May 22, 2026 17:37
sleep=Donald Duck, idle=Bongo Cat, busy=SpongeBob multitasking,
attention=Surprised Pikachu (Nouns glasses), celebrate=Peanuts party,
dizzy=Powerpuff Girls spiral eyes, heart=heart eyes ghost.

Source GIFs in characters/memes-src/, device-ready pack in characters/memes/.
Built with prep_character.py at 96x98px, 64 colours per frame.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Track the current peer BD address in onConnect (extended overload).
bleRemoveCurrentBond() removes only that peer's LTK from NVS. The
"unpair" JSON command now calls this instead of bleClearBonds(), so
each host unpairs itself independently. bleClearBonds() is reserved
for factory reset only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace the elapsed-seconds display with a remaining-time countdown.
Shows ~Xm when more than a minute remains, switches to seconds below
that, and turns red below 30s. Also includes the 5-minute auto-dismiss
so the countdown reaches zero and clears rather than sitting at 0s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Swissola
Copy link
Copy Markdown
Author

Closing as this is outside the scope of the upstream reference implementation per CONTRIBUTING.md. This change is maintained in the community fork at https://github.com/Swissola/claude-desktop-buddy — see the enhance/haptics-and-settings branch.

@Swissola Swissola closed this May 23, 2026
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