Skip to content

Add a header badge for unanswered permission requests and questions#207

Open
leonidasbarkas98-cpu wants to merge 2 commits into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/pending-questions-badge
Open

Add a header badge for unanswered permission requests and questions#207
leonidasbarkas98-cpu wants to merge 2 commits into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/pending-questions-badge

Conversation

@leonidasbarkas98-cpu

Copy link
Copy Markdown

When Claude asks for permission or input while the user has scrolled away (or multiple requests are pending), questions were easy to miss. This adds a "❓ N" header badge counting pending permission/question blocks (pure DOM query, no new state), click scrolls to the oldest one with a highlight pulse. Also fixes stale pending blocks when loading another conversation while a process is running.

Fixes #191

🤖 Generated with Claude Code

Jonas Kunert and others added 2 commits July 22, 2026 07:17
Show a header badge counting pending permission requests and
AskUserQuestion prompts, computed via DOM query (no new state);
clicking it smooth-scrolls to and briefly highlights the oldest one.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Restore flex display for the badge so the icon/count stay aligned
  with the .btn base rule instead of falling back to block layout.
- Expire stale pending permission/askUserQuestion history entries by
  checking the still-open request ID register instead of just whether
  any Claude process is running, so loading an unrelated old
  conversation while a different process is active no longer leaves
  unanswerable ghost pending entries in the badge count.
- Track the highlight timeout/element in closure state so repeated
  clicks on the badge clear the previous timer instead of causing a
  flicker or shortened highlight.
- Replace the reused status-dot pulse keyframes with a dedicated
  box-shadow-only animation sized for full message blocks.
- Keep the badge in sync with the optimistic permission response UI by
  setting dataset.status and recomputing the count immediately.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

When Claude asks questions they get lost if other actions are performed before answered.

1 participant