Let readers retry a failed Report tab read
Opened by @shuxiachai · Assignees: None
Claim Status & GitHub Signal
Unassigned, with 2 comments. Unassigned does not guarantee unclaimed—read comments and linked PRs first.
The issue requires understanding of error handling and state management in a web application, which may be challenging for complete beginners but is manageable for those with some experience in JavaScript and asynchronous programming.
What It's About
Implementing a retry mechanism for a failed report read in the Report tab of the application.
Why It Matters
This feature enhances user experience by allowing users to recover from temporary errors without needing to reload the entire page, thus improving the application's reliability and usability.
Expected Outcome
Users can retry reading a report after a failure, and the application correctly handles the state and displays the report upon success.
Log in to compare this issue's requirements against your profile skills. Required concepts: Error handling, Asynchronous programming, State management, API requests, User interface updates.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
Issue Description
Why
A temporary error reading a completed assessment can strand the reader on the Report tab. In an offline Chromium run using the shipped result component, the report's display request returned 503 while Sources returned 200. After the report endpoint recovered, opening Sources and returning to Report still showed the old error and issued no new report request. Reloading the page retrieved the report successfully. The tab is marked eligible to reopen on error, but the failed report promise remains cached. Report and citation reads · Tab loading and error handling · Error cleanup
Task
Offer a retry in the completed assessment's Report tab after its display read fails. A retry should use a fresh read of the saved report and recover any citation lookup that depended on the failed read.
Done when
- Given an intercepted report display request that fails once and then returns Markdown, the reader can retry within the Report tab. One retry sends one fresh GET and replaces the error with the report.
- An inline citation opens its usual source card after recovery, including if a citation lookup had already used the failed read. Healthy tabs remain usable and successful reads still share their existing requests.
- Add an offline result-view regression with an initial 503, a healthy neighboring tab, and a successful retry. Verify that the run URL stays on the same page and that the original report is read through the display endpoint. Report display route · Existing result browser fixture
Read the contribution guide and comment here before starting. Keep the PR focused and to one commit.
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (2)
I'd like to take this one. I'll add a retry control to the Report tab's error state that clears the old message, discards the failed report and citation-index reads, and issues one fresh display GET (successful reads stay shared), and cover an initial 503, a healthy neighbouring tab and a successful retry in an offline result-view regression.
Thanks, @leninworld — it's yours.
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
CONTRIBUTING.md Excerpt
Contributing
Read AGENTS.md first. It is a decision index: several seemingly obvious changes have already been rejected on measured evidence. Use the documentation map for current guides and historical results.
For a first contribution, the map below is enough; read AGENTS.md before changing pipeline, scoring or experiment code.
Where newcomers can work
Look for issues labelled
good first issue
or help wanted.
Comment on one before you start, so two people don't take the same issue.
You can hold up to five at a time, counting the ones whose pull request is
still open. If three days pass after your claim without a pull request, or
after a review that asks for changes without a reply or a push, the issue
goes back to the pool; a maintainer may also finish an open pull request on
its branch, keeping you as its author. You need no API keys: the test suite
and the browser smokes make no paid requests.
| Where | |
|---|---|
| Good for a first PR | The main web client (web/index.html, web/samples.html, web/static/; new UI strings go in web/static/js/i18n.js, in English and Chinese); ui/ readers and PDF export; current guides (README*, CONTRIBUTING.md, docs/operating-guide.md, docs/README.md); new tests in tests/ and e2e/; new tools under scripts/ |
| Open an issue first | Production pipeline and retrieval (src/academic_agent/crew.py, source_pipeline.py, config/); API access, BYOK and billing boundaries in api/; anything that changes scores, prompts or providers |
| Do not change | src/academic_agent/evidence.py (frozen experiments hash its bytes, and their tests fail on any edit; to change its behaviour, wrap it as reviewer_plan_bounds.py does); AGENTS.md, the maintainer's instructions to assistants; the experimental pages web/saved-source-*/ and web/source-locator/; the experiment scripts under experiments/ and the experimental modules in src/academic_agent/ (their paths and bytes are bound the same way); dated documents docs/prereg-*, docs/results-*, docs/errata-*, docs/protocol-*; fixtures in tests/fixtures/, evals/ and benchmark_fixtures/. Touch pyproject.toml and `u |
... (truncated)
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.