agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

ao start, always creates a new indentifier for orchestrator agent, instead of resuming old session and dashboard links to a completely broken ink

Open OrcInc opened this issue 7 months ago • 3 comments

Last login: Wed Apr  8 23:02:00 on ttys019
➜  ~ tmux list-sessions
c13a0108f64e-int-1: 1 windows (created Wed Apr  8 18:55:09 2026) (attached)
c13a0108f64e-int-2: 1 windows (created Wed Apr  8 18:29:30 2026) (attached)
c13a0108f64e-int-orchestrator-4: 1 windows (created Wed Apr  8 23:03:54 2026)

ao start takes me to -> http://localhost:3001/sessions/int-orchestrator-3

I do ao stop and ao start again

ao start takes me to -> http://localhost:3001/sessions/int-orchestrator-4

dashboard links to http://localhost:3001/sessions/integrator-orchestrator

we keep changing the orchestrator agent session link for no good reason, and the session name prefix in dashboard doesn't even match

OrcInc avatar Apr 08 '26 17:04 OrcInc

@i-trytoohard , today i was testing another issue. but i didn't found the issue you are facing.

  • refer: https://discord.com/channels/1476302178913357958/1491735678156013588/1492511315510693992

whoisasx avatar Apr 11 '26 13:04 whoisasx

Status check — this issue is effectively fixed by #1075 (approved, CI green except an unrelated NPM Audit flake, just waiting to merge).

What #1075 fixes (directly addresses this issue):

  • ao start now selects an existing live orchestrator (or restores a restorable one, preserving the original numbered ID) instead of minting a fresh int-orchestrator-N every time.
  • ao stop resolves the real orchestrator session ID via sm.list() instead of the phantom ${prefix}-orchestrator ID — which is what was producing the broken dashboard link (integrator-orchestrator in your repro).
  • Tightens isOrchestratorSession to require metadata.role === "orchestrator" (or the numbered pattern) so stale bare legacy IDs don't leak into dashboard listings.

Remaining gap (not covered by #1075 or #1288): If an orchestrator runtime dies unexpectedly, the metadata stays in active/ and still shows up in ao status as a ghost *-orchestrator-N row until killed/archived manually. #1288 (auto-archive of terminal worker sessions) intentionally protects orchestrator sessions from auto-archive, so that problem is not fully solved by the combination.

Recommendation: merge #1075, close this issue, and open a follow-up specifically for "auto-cleanup / archive of dead orchestrator metadata in ao status".

/cc @harsh-batheja — the NPM Audit failure on #1075 is what's blocking merge. Re-running the check (or confirming the audit finding is pre-existing and unrelated to this PR) should unblock.

ashish921998 avatar Apr 17 '26 13:04 ashish921998

@harshitsinghbhandari is working on a part of this already https://github.com/ComposioHQ/agent-orchestrator/issues/1306

OrcInc avatar Apr 18 '26 17:04 OrcInc