You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: the Sessions page keeps itself current and says who each of your pull requests is waiting on - #122
Own pull requests show a Status (Draft badge, open threads, "Waiting on: a, b, …", approved) instead of Author, from one GraphQL search. The page refreshes itself every minute while visible and shows the data's age, with a reload button that asks GitHub past the cache.
The reason will be displayed to describe this comment to others. Learn more.
P2: fresh=1 skips the cache on every click, and each click runs both the REST search and the GraphQL search. Search allows 30 requests a minute per user, and its 403 is turned into an empty list. A few impatient clicks therefore show "Nothing is waiting for your review" as if it were true. Let a fresh request reuse a cache entry younger than about 10 seconds.
The reason will be displayed to describe this comment to others. Learn more.
P3: this is a hand copy of the exported formatAge, so the server label and the ticking label can drift apart. Interpolate ${formatAge.toString()} into the script so there is one source.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved issues can hide outstanding review threads, disrupt keyboard focus during refresh, and replace valid data with error content while reporting refresh success.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
GraphQL errors can clear existing pull-request lists or produce misleading zero counts, while omitted bot reviewers can incorrectly indicate that no reviewer is requested.
No open issues 🎉
2 previously missed issues
In code that hasn't changed since last review
Include bot logins when querying requested reviewers
packages/server/src/github.ts:124
requestedReviewer can also be a Bot, such as Copilot, but the query selects fields only for users and teams, so bot reviewers are discarded by the mapping. A pull request waiting only on a bot can therefore display “No reviewer requested” despite a positive totalCount. Include the bot's login in the selection so the existing status rendering can show it.
Reject GraphQL errors before replacing pull request data
packages/server/src/github.ts:362
HTTP-200 GraphQL errors are treated as successful results, so a failed refresh can replace existing pull requests with an empty list and reset their age; partial errors can also turn unavailable status fields into zero counts. Reject responses with GraphQL errors or missing search data so the existing 502 handling preserves the displayed lists. Update the rate-limit test in packages/server/tests/service.test.ts:312 to expect rejection.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
GraphQL HTTP 403 errors are swallowed as empty results, allowing a successful response to replace previously displayed pull requests with a misleading empty state instead of retaining them and retrying.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Propagate GraphQL 403s instead of returning empty pull requests
packages/server/src/github.ts:352
An HTTP 403 from GraphQL, including a secondary rate limit, is converted into a successful empty list here. Consequently, pullsSection never sets its failure flag, and /sessions/body can return 200 and replace previously displayed own pull requests with “You have no open pull requests,” rather than retaining them and retrying. Please propagate 403 errors and update the service test that currently expects an empty list for this response.
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
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.
Own pull requests show a Status (Draft badge, open threads, "Waiting on: a, b, …", approved) instead of Author, from one GraphQL search. The page refreshes itself every minute while visible and shows the data's age, with a reload button that asks GitHub past the cache.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w