Skip to content

Bridge F4: renderer -> main orchestration.run / taskCreate binding #15

Description

@zaridan

Part of #5. Depends on F1 (#12).

Why

A recipe director (no LLM agent) must start a coordinator run from the app, but today orchestration.run is CLI-only — the only caller is src/cli/handlers/orchestration.ts:462, and there is no window.api.orchestration binding in the renderer (confirmed). The current LLM director only ever starts runs because the agent types orca orchestration run inside the worktree.

What

  • Add a preload/IPC binding exposing orchestration.run (and orchestration.taskCreate) to the renderer, so RecipeDirectorBackend can compile a recipe → tasks → run without an agent.
  • The RPC method already exists (orchestration-gates.ts:44); this is wiring it through the preload API (src/renderer/src/web/web-preload-api.ts) + types.
  • Consider whether the run should be triggered from main directly at recipe-director launch instead of round-tripping through the renderer — decide alongside F3 (lifecycle owner).

Verdict from investigation

Additive (~preload binding). The loop still lives in main, so a renderer reload won't kill it; an app restart is handled by F3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions