feat(pilot): land the Operator-style Pilot (live viewport + auth proxy + HITL)#209
Merged
Conversation
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>
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.
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).
x-pilot-tokenfrom~/.codec/pilot_tokenserver-side; the token never reaches the browser. Runner stays loopback-only on :8094 (per the P-1 RCE closure — never tunneled).StreamingResponsechunk passthrough (~4fps), LIVE + CODEC DRIVING badges, current-URL overlay.avadigital.ai→https://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