#604

mux-activity: show Claude background agents under Luvus even when `luvus agent list` fails

Openwiiiimmopened 13d ago

When luvus agent list fails, mux-activity under Luvus hides every Claude background agent too, although their files on this machine are still readable.

Context / problem

stealth-factory/opscope#616 (PR #618) reads background agents from Claude's jobs/*/state.json on every board. Under Luvus, that read happens inside the success branch of luvus agent list (agents.map(...) in luvus.rs). If the snapshot succeeds but agent list fails, the AGENTS section shows the failure and no background-agent rows. The failure is on screen, so nothing reads as empty. But a blocked background agent, the row that most needs you, disappears until a separate Luvus command recovers. Rex and Herdr do not have this gap: their job rows do not depend on another command succeeding.

CodeRabbit raised this on PR #618, and the reply deferred it to a follow-up.

Scope

In:

  • Read background agents under Luvus regardless of whether luvus agent list succeeded.
  • When agent list fails, show the failure and the background-agent rows together: the error in place of the pane agents, and the background agents · via jobs group below it.
  • Keep the cursor, the e screen and Enter working on those rows in that state.

Out:

  • Changing how Rex or Herdr report a failed read.
  • Partial results from agent list itself.

Acceptance

  • With luvus agent list failing and a working background agent on disk, the Luvus board shows the agent-list error and the background agent's row.
  • e on that row opens its explain screen, and Enter gives the no-pane note.
  • A test covers the failed-agent-list case.
  • cargo test passes, including check.rs.

Activity

1
linear-code[bot]13d ago