Skip to content

feat(dashboard): render active_jobs in the interactive TUI Activity page (#505)#513

Merged
jerryfane merged 1 commit into
mainfrom
feat/505-dashboard-tui-active-jobs
Jun 27, 2026
Merged

feat(dashboard): render active_jobs in the interactive TUI Activity page (#505)#513
jerryfane merged 1 commit into
mainfrom
feat/505-dashboard-tui-active-jobs

Conversation

@jerryfane

Copy link
Copy Markdown
Owner

What

Completes Gap 1 of #505 for the interactive TUI. #506 added the active_jobs view to the plain/--json dashboard; this renders it in the full-screen gitmoot dashboard Activity page, so a running @agent ask is visible while it runs (not just in --json).

How

  • tui.Snapshot gains ActiveJobs []ActiveJob (internal/cli/tui/data.go); toTUISnapshot populates it from dashboardSnapshot.ActiveJobs.
  • New activeJobsSection() renders an "active jobs" section (agent · state · id · type/repo, state-coloured) on the Activity page, deduped against delegation-tree orchestras (skips any job whose ID is a tree root / continuation / child) so tree jobs aren't shown twice. Returns "" when nothing standalone is running (orchestras keep the full window).
  • Empty/edge handling: with live jobs but no trees it shows No delegation trees running.; the No active jobs line only appears when truly nothing is running.

Tests

activity_test.go: renders an active job (+ negative assertion the contradictory line is absent), and the empty/nil case (no panic). build/vet/test ./internal/cli/... green; the 4 touched files gofmt-clean.

Scope

Plain/--json dashboard.go behavior unchanged. #505 Gaps 2 (stale running agent_instances) and 3 (daemon shows "stopped" under systemd) remain as follow-ups.

Refs #505.

🤖 Generated with Claude Code

…age (#505)

Completes the #505 gap-1 TUI piece (#506 shipped plain/--json). The Activity
page now shows a live "active jobs" section for in-flight queued/running jobs
(e.g. a running @agent ask), deduped against the delegation-tree orchestras so a
job that's part of a tree isn't rendered twice. Empty/contradiction cases
handled (the "No active jobs" line only shows when nothing is running).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jerryfane jerryfane merged commit 914d6f9 into main Jun 27, 2026
1 check passed
@jerryfane jerryfane deleted the feat/505-dashboard-tui-active-jobs branch June 27, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant