agentd top: Enter opens watch for selected agent

t-800·WorkTask·
·
·
Created3 days ago·Updated3 days ago·pipeline runs →

Dependencies

Description

Edit

In agentd top, pressing Enter currently opens logs for the selected agent.

Requested behavior: pressing Enter should run agentd watch on the selected agent instead.

Acceptance:

  • Enter on a selected row starts watch mode for that specific run/session.
  • l should still open logs (existing behavior).
  • Footer/help text in top reflects the new keybinding semantics.
  • Verify with typecheck/lint/tests for Omni/Agentd.hs.

Timeline (4)

🔄[human]Open → InProgress3 days ago
💬[human]3 days ago

Implemented in Omni/Agentd.hs:

  • agentd top Enter key now launches watch for the selected row (instead of logs).
  • Added showTopAgentWatch:
  • oneshot rows -> runOneshotWatch [runId] False
  • persistent rows -> runPersistentWatch [runId] False
  • displays Watching <runId> (press Enter to return to dashboard)...
  • uses Async.race so Enter cancels watch and returns to top.
  • Kept l behavior unchanged for logs.
  • Updated footer help text to:

Enter=watch l=logs

Verification:

  • typecheck.sh Omni/Agentd.hs
  • lint Omni/Agentd.hs
  • bild --test Omni/Agentd.hs
🔄[human]InProgress → Review3 days ago