Skip to content

feat(pilot): land the Operator-style Pilot (live viewport + auth proxy + HITL)#209

Merged
AVADSA25 merged 1 commit into
mainfrom
feat/pilot-operator-landing
Jul 2, 2026
Merged

feat(pilot): land the Operator-style Pilot (live viewport + auth proxy + HITL)#209
AVADSA25 merged 1 commit into
mainfrom
feat/pilot-operator-landing

Conversation

@AVADSA25

@AVADSA25 AVADSA25 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

What

Lands the complete June-10 Operator-style Pilot implementation that never got committed — on HEAD, Pilot fails at step 1 (proxy doesn't inject the pilot token → 401 on every runner call) and the live viewport can't stream (buffered MJPEG → infinite hang).

  • Auth (PP-1): proxy injects x-pilot-token from ~/.codec/pilot_token server-side; the token never reaches the browser. Runner stays loopback-only on :8094 (per the P-1 RCE closure — never tunneled).
  • Live viewport: MJPEG relayed via StreamingResponse chunk passthrough (~4fps), LIVE + CODEC DRIVING badges, current-URL overlay.
  • Mission rail: task input, voice in/out, incremental action log (navigate/click/type/scroll), terminal status.
  • HITL: pause / resume / take over / hand back — fully wired.
  • Bare-domain fix: avadigital.aihttps://avadigital.ai.

Tests: 4/4 pass. Full suite green locally. Bonus: un-blocks the 6 AM auto-pull cron (these dirty files were tripping its clean-tree guard for 3 weeks).

🤖 Generated with Claude Code

This is the complete Pilot build that sat uncommitted in the working
tree since 2026-06-10 — HEAD was a non-functional skeleton (no auth
token injection → every pilot-runner call 401'd; MJPEG buffered →
viewport hung forever; bare-domain navigation broken).

- routes/pilot_proxy.py: injects x-pilot-token from ~/.codec/pilot_token
  server-side (PP-1 — token never reaches the browser), relays the
  MJPEG stream via StreamingResponse chunk passthrough, 503/502 on
  runner-down.
- codec_tasks.html: Operator-style layout (1280×800 live viewport +
  400px mission rail), LIVE / CODEC DRIVING badges, incremental action
  log, pause / resume / take-over / hand-back HITL controls, voice I/O,
  https:// prepend for bare domains.
- tests/test_pilot_proxy.py: 4 tests (token read/strip, missing-file,
  header injection, MJPEG path coverage).

Side effect: clears the dirty working tree that had been blocking the
6 AM auto-pull cron since ~Jun 10.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@AVADSA25 AVADSA25 merged commit 3a977bf into main Jul 2, 2026
1 check passed
@AVADSA25 AVADSA25 deleted the feat/pilot-operator-landing branch July 2, 2026 14:24
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.

2 participants