Files
loki/scripts/hetzner
Mao NakamotoandClaude Opus 4.8 f0cc29ac1d feat(runner): box-runner clone-on-demand + unattended claude (P1 #1/#2)
Make a real Control dispatch run to completion on the box, not just spawn a PTY.

#2 clone-on-demand — src/lib/agent-execution/box-workspace.ts: a dispatch carries
the LAPTOP dir (absent on the box). ensureBoxWorkspace() resolves the project by
tab (name match) → gitUrl → git clone (GITHUB_TOKEN auth) into ~/dev/<key>, or
reuses the dir if it already exists. Hooked into launchAgentPty via dynamic
import gated by FLEETCROWN_BOX_PREPARE (keeps @/db + git off the desktop bundle).

#1 unattended claude — auth was never the blocker (the inference token launches
interactive claude); the blockers were claude's trust-folder gate and per-tool
permission prompts. box-workspace pre-seeds ~/.claude.json
projects[dir].hasTrustDialogAccepted, and the claude adapter adds
--dangerously-skip-permissions gated by FLEETCROWN_RUNNER_UNATTENDED (box-only;
desktop keeps interactive confirmations). Single-tenant owner box — acceptable
per the spec until SandboxExecutor lands.

Verified live: dispatched fleetcrown → cloned from github.com/maonakamoto, dir
pre-trusted, claude launched unattended in the clone.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 11:46:59 +02:00
..