Repository navigation
Description
Summary
On a project's overview, the Default reviewer setting declares a saved reviewer agent unavailable whenever the project's agent list fails to load. The field shows:
The selected reviewer agent is unavailable. Choose another reviewer.
That text appears both as the select's value and as a caption under it. The agent exists and still reviews tasks; only the read failed. Following the instruction replaces a working reviewer.
This is the same class as #4605, where a failed project-list read marks Project budget rules "Deleted project" and says to remove them: a failed read is turned into a verdict plus a corrective instruction.
Source
origin/mainb3976a03f49b65ee3f39fe9a41991f29f6005354.- This is a deterministic code path, read statically. No running stack was used: Review A has no stack reservation this occurrence.
- The logic dates from feat(platform): let independent agents review task results #4076 (
19776cf18, 2026-10-02).
In services/platform/app/features/projects/components/project-task-reviewer-section.tsx, rendered by project-overview.tsx:333:
- Line 40:
const { agents, isLoading: agentsLoading } = useProjectAgents(projectId);.useProjectAgents(hooks/queries.ts:63) also returnshasAnswer,errorandretry; the project's Agents tab uses them, but this section doesn't. A failed read leavesagents: []withisLoadingfalse. - Lines 84–85:
const unavailable = reviewer.kind === 'agent' && !agentsLoading && !selectedAgent;. - Line 153: the select shows
selectedAgent?.name ?? t('taskReview.unavailable'). - Lines 200–201: the caption
taskReview.unavailable. - Not tested:
project-task-reviewer-section.test.tsxmocksuseProjectAgentswith a loaded list only.
The same text ships in German ("Der gewählte Reviewer-Agent ist nicht verfügbar. Wähle einen anderen Reviewer.") and French ("L’agent relecteur sélectionné est indisponible. Choisis un autre relecteur.").
Dedupe: I scanned 252 open items (85 PRs); none covers this.
Reproduction (expected from the code; not run live)
- In a project, set Default reviewer to an agent that has
task_review. - Reload the project's overview while
projects/queries:listProjectAgentsfails (offline, or a server error). - The field reads "The selected reviewer agent is unavailable. Choose another reviewer."
Expected
Only a successful read that lacks the agent may say it is unavailable. On a failed read:
- keep the saved choice;
- say the agent list couldn't load;
- offer Try again (
retry, which the hook already returns).
Regression expectation
A section test with useProjectAgents returning a failed read (hasAnswer: false, error set, no agents) and a saved agent reviewer:
- no
taskReview.unavailabletext; - a load-failure message with Try again;
- the existing "agent removed" case keeps its message.
Triage
- Severity: low. It needs a failed read, but the text invites replacing a working reviewer.
- Owner: the platform owner of task review (feat(platform): let independent agents review task results #4076).
- Review A cells:
projects.overviewUX-CLARITY and REL-MANUAL. Found by Review A (TALE-358) at the 2026-10-09 12:15 Europe/Zurich occurrence. - Related: bug(platform): a failed project list read marks every Project budget rule "Deleted project" and says to remove it #4605 and bug(platform): API key owner pickers say no member, team or project qualifies while the list loads or after it fails to load #4586 (same class).
Activity
yannickmonney commentedon Oct 12, 2026
Addendum at
mainaec031867(Review A, TALE-358, 2026-10-12 04:15 Zurich occurrence; static reading).The same pattern is on the task page's reviewer field, and #4681 (
0cae27f45) didn't change it. Inservices/platform/app/features/tasks/components/task-reviewer-field.tsx::58-60keeps only{ agents, isLoading }fromuseProjectAgents(…).:74computesunavailable = agentId !== undefined && !agentsLoading && !agent.:154-156then showsreviewer.agentUnavailable, "This reviewer agent is unavailable. Choose another reviewer."So a failed agent-list read tells someone on a task that the task's configured or inherited reviewer agent is gone and should be replaced. The project-level section this issue names (
project-task-reviewer-section.tsx:84-85,:153,:200-201) is unchanged too. #4681 only made the task field show the selected or inherited reviewer.Expected: extend this issue's fix to the task field. On a failed agents read, say the reviewer list couldn't be loaded and offer Try again; give no verdict about the reviewer.
fix(platform): tell a failed agent read apart from a missing reviewer
fix(platform): tell a failed agent read apart from a missing reviewer
fix(platform): tell a failed agent read apart from a missing reviewer