Skip to content

feat(framework): start runs from the daemon dashboard (#345)#351

Merged
suleimansh merged 1 commit into
mainfrom
feat/dashboard-start-run-345
Jul 11, 2026
Merged

feat(framework): start runs from the daemon dashboard (#345)#351
suleimansh merged 1 commit into
mainfrom
feat/dashboard-start-run-345

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Closes #345. The MVP DX from #331: run framework, open the dashboard, type a prompt.

  • Prompt textarea + Start button on the daemon dashboard page (Ctrl+Enter submits). Hidden on pages that cannot start runs (per-run dashboard, relay).
  • POST /api/start on the daemon: spawns framework "<prompt>" --no-dashboard --cwd <ws> as a detached child, the same spawn pattern ensureDaemon uses. Events stream into the page via the existing tailed event log; gates + Stop steer through the control channel (Dashboard control channel: Stop + choice gates for runs the dashboard didn't start #344).
  • One-run-at-a-time guard (the Retrieve usage limits #322 runaway concern): while the last child is alive, Start returns 409 with the reason. The guard resets when the child exits; a nonzero exit is surfaced as a log line on the page.
  • Route guards mirror /stop and /choice: POST-only (405), 404 when no handler is wired, 400 on an empty prompt. Same fork-bomb guard as ensureDaemon so a test entry is never re-exec'd as a run.

Verified live end to end: real daemon from the compiled bin, Start spawned a real run whose events streamed into the page, a second Start got 409, the daemon Stop button aborted the run through control.jsonl, and the guard reset after exit.

Prompt textarea + POST /api/start on the daemon page. The daemon spawns
framework "<prompt>" --no-dashboard as a detached child (same spawn
pattern as the daemon itself); the run streams in via the tailed event
log and is steerable through the control channel (#344). One run at a
time: while the last child is alive, Start returns 409.
@suleimansh suleimansh added enhancement New feature or request priority: high Should be addressed soon the-framework ♻️ labels Jul 11, 2026
@suleimansh suleimansh self-assigned this Jul 11, 2026
@suleimansh suleimansh merged commit 72fb351 into main Jul 11, 2026
2 checks passed
@suleimansh suleimansh deleted the feat/dashboard-start-run-345 branch July 11, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: high Should be addressed soon the-framework ♻️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Start runs from the dashboard: prompt textarea + POST /api/start

1 participant