Add query ID and update notification badge to query list - #356
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ctive Track window blur timestamp and mark queries whose updatedAt is newer than that timestamp when the window regains focus. The mark is cleared when the query is selected, or when the previously selected query is moved away from. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
morishin
marked this pull request as ready for review
May 26, 2026 03:33
morishin
marked this pull request as draft
May 26, 2026 03:35
…selected Previously the mark was only added on window focus based on updatedAt. With this change, a query whose execution completes while it is not the currently selected query is also marked, so the user notices the result when switching back to it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
morishin
marked this pull request as ready for review
May 26, 2026 03:40
nekketsuuu
approved these changes
May 26, 2026
morishin
marked this pull request as draft
May 26, 2026 04:12
morishin
force-pushed
the
feature/query-list-id-and-update-mark
branch
from
May 28, 2026 05:53
e77a4bb to
d02866c
Compare
morishin
marked this pull request as ready for review
May 28, 2026 06:02
Use a Set for the marked ids so duplicates are deduped automatically, and fold the inactive-period guard into the filter predicate, dropping the explicit includes check and the surrounding if block. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Purpose
What I did
Mark conditions
blur) is recorded. When the window regains focus, any query whoseupdatedAtis newer than that time gets marked. This covers anything that changed while you were away — MCP body edits, newly created queries, and executions that finished in the background.In-app edits made while the window is active are naturally excluded, because their
updatedAtis older than the time the window later goes inactive.Clear conditions
The badge is removed when:
The badge state is kept in memory only and is not persisted across app restarts.
Screenshot
🤖 Generated with Claude Code