Repository navigation
Preview reading lists a few per request - #1059
Merged
Merged
Conversation
The Add Reading Lists dialog sent every picked list in one preview request, and the server fetches and matches each list before it answers. With dozens of lists the request outlasted the idle timeout of a proxy or browser in front of Codex (often 60s): the button reset while the server kept fetching. 34 lists previewed, 63 did not. The dialog now sends five lists per request, one request at a time, shows "Previewed N of M lists…" while it works, and stops asking for more when it is closed. Co-Authored-By: Claude Opus 5.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.
Bug
A user previewing 63 lists in Admin → Reading Lists → Add saw the Preview 63 button lose its spinner and reset before the preview finished, while the server logs showed it still fetching lists afterward. 34 lists worked.
Cause
The dialog sent every picked list in one
POST /admin/reading-lists/preview, and the server fetches, parses and matches each list before answering, so the request took longer the more lists were picked. Codex itself has no request timeout (not Granian, Django or xior). Something in front of it, a reverse proxy or the browser, dropped the connection, often after 60s idle. The fetch was rejected and the button reset, but the server kept working.Fix
add-lists-dialog.vuenow:Previewed N of M lists…in the footer while it works;The server is unchanged except for a docstring line on the preview view saying why the dialog batches.
Notes for review
Checks
make fix,make lint: cleanmake test: 1469 frontend and 2891 Python tests pass, 2 skipped🤖 Generated with Claude Code