feat(framework): start runs from the daemon dashboard (#345)#351
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #345. The MVP DX from #331: run
framework, open the dashboard, type a prompt.POST /api/starton the daemon: spawnsframework "<prompt>" --no-dashboard --cwd <ws>as a detached child, the same spawn patternensureDaemonuses. 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).ensureDaemonso 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.