Fix Re-run All: queued items stuck in loading state forever#44
Open
Fix Re-run All: queued items stuck in loading state forever#44
Conversation
…n promise Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issue #42
Fix Re-run All: queued items stuck in loading state forever
Feb 26, 2026
Member
|
@claude review |
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 "Re-run All" is clicked, items that don't complete within the server's 10s timeout receive a 202 and are silently discarded — leaving those panel rows in loading state indefinitely. Additionally, when a
forceRefreshre-run is issued against an already in-flight item, the chained promise is not stored, causing any coalescing poll to receive the stale result.Changes
lib/eval-queue.ts— store theforceRefreshchain promiseWhen
forceRefresh=truechains after an existing in-flight promise, the resulting chain was not written back tostate.promises. A subsequent coalescing call would therefore resolve to the old stale promise instead of waiting for the fresh re-run:app/actions/queue-session-eval.ts&queue-session-enrichment.ts— poll after 202Instead of immediately surfacing
__queued__to the panel (which treated it as a no-op), these helpers now poll/api/queue-itemwithforceRefresh: false— coalescing onto the in-flight queue promise — until the result is available or a ~10-minute ceiling is hit:The panel components require no changes — they already handle results correctly once they arrive.
Type of Change
Checklist
npm run lintpassesnpx tsc --noEmitpassesnpm run test:runpassesnpm run buildsucceedsWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh gh issue view 42(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.