Add a header badge for unanswered permission requests and questions#207
Open
leonidasbarkas98-cpu wants to merge 2 commits into
Open
Add a header badge for unanswered permission requests and questions#207leonidasbarkas98-cpu wants to merge 2 commits into
leonidasbarkas98-cpu wants to merge 2 commits into
Conversation
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>
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.
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