Skip to content

fix(orchestrator): register 404'd task-detail routes + terminal-completed-state evidence (#11028) - #11699

Merged
lalalune merged 2 commits into
developfrom
evidence/11028-orchestrator-terminal-state
Jul 2, 2026
Merged

lalalune merged 2 commits into
developfrom
evidence/11028-orchestrator-terminal-state

Conversation

@lalalune

@lalalune lalalune commented Jul 2, 2026

Copy link
Copy Markdown
Member

Two things, found and proven by driving a real coding task end-to-end (the terminal-state evidence gap #11650 left open).

1. Bug fix — task-detail + control routes 404'd over HTTP

Driving a task to completion surfaced that the task-detail pane hangs on "Loading task…". The orchestrator UI's useOrchestratorData.fetchDetail runs Promise.all([getCodingAgentTaskThread, listOrchestratorTaskTimeline]), and GET /api/orchestrator/tasks/:taskId/timeline 404'd — rejecting the whole fetch, so Approve/Reject/Restart were unreachable.

Root cause: the handlers for timeline, auto-validate, retry-turn, rerun-from-event, restart, restart-with-edited-plan, and plan-revisions are implemented in api/orchestrator-routes.ts (verified: sub === "timeline" at :828, etc.) but were never listed in CODING_AGENT_ROUTE_PATHS in setup-routes.ts, which the runtime route matcher needs as exact templates. Same class of gap already fixed once for credential paths — this adds the 7 missing task-scoped templates + a guard test modeled on the existing setup-routes-credential-paths.test.ts.

  • bunx turbo build --filter=@elizaos/plugin-agent-orchestrator
  • setup-routes-task-detail-paths.test.ts + sibling: 5 passed.

2. Evidence — task reaches terminal done state

.github/issue-evidence/11028-orchestrator-terminal-state/. Task "Write hello.txt" driven through the live orchestrator on the claude ACP sub-agent (Miya [claude]) reached a verified terminal state:

  • UI: 04b-orchestrator-list-done.png shows the green "● done" badge; 04-completed-terminal.png shows the task + sub-agent completion checks and the hello.txt deliverable in Changes.
  • Backend: logs/task-result.jsonfinalStatus:"done", artifactsVerified:true, all 3 acceptance criteria met, a live grilling test (wc -c hello.txt = 3 bytes hi\\n); logs/backend.log[swarm-synthesis] … 1 completed.
  • Deliverable: hello.txt (hi\\n) committed.
  • Recording: video/orchestrator-terminal-state-walkthrough.webm (4.9 MB), plus browser console log.

This is the terminal-completed proof #11650's capture never reached (it stalled in validating).

Refs #11028

🤖 Generated with Claude Code

claude added 2 commits July 2, 2026 16:58
… that 404'd over HTTP

While driving a real coding task to completion for #11028 evidence, the task-
detail pane hung on "Loading task…": the orchestrator UI's fetchDetail does
Promise.all([getCodingAgentTaskThread, listOrchestratorTaskTimeline]), and
GET /api/orchestrator/tasks/:taskId/timeline 404'd — rejecting the whole fetch
so Approve/Reject/Restart controls were unreachable.

Root cause: the handlers for timeline, auto-validate, retry-turn,
rerun-from-event, restart, restart-with-edited-plan, and plan-revisions exist in
api/orchestrator-routes.ts but were never listed in CODING_AGENT_ROUTE_PATHS,
which the runtime route matcher needs as exact path templates to reach them.
Same class of gap already fixed for credential paths (setup-routes-credential-
paths.test.ts); this adds the missing task-scoped templates + a guard test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…eenshots + recording + deliverable (#11028)

Closes the gap #11650 left (its task stalled in 'validating'). A real coding
task 'Write hello.txt' driven through the live orchestrator on the claude ACP
sub-agent reached finalStatus:done: UI shows the green 'done' badge + task/sub-
agent completion checks; task-result.json shows artifactsVerified:true, all 3
acceptance criteria met, a live grilling test (wc -c hello.txt = 3 bytes 'hi\n');
backend log shows [swarm-synthesis] '1 completed'; the deliverable hello.txt is
committed. Includes the walkthrough .webm + backend/console logs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 06b3f0c2-94e6-434c-9d6a-7eb6a69209c7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch evidence/11028-orchestrator-terminal-state

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lalalune
lalalune merged commit 1992c85 into develop Jul 2, 2026
34 of 38 checks passed
@lalalune
lalalune deleted the evidence/11028-orchestrator-terminal-state branch July 2, 2026 23:59
@claude

claude Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants