Phase 4: remote worker + web shell (SSH-first)#117
Merged
DeadWaveWave merged 5 commits intomainfrom Mar 30, 2026
Merged
Conversation
- Extract reusable control surface HTTP server (token auth + /invoke) - Add headless worker entry + headless PTY runtime - Make ptyHost entry support child_process IPC - CLI: --endpoint/--token + worker start/status - Docs: SSH tunnel workflow
- Add node-env contract tests for control surface HTTP server + web shell - Add web fallback for copy space path (navigator.clipboard) - Add unit tests ensuring web UI hides open path when openers unavailable
- Avoid await-in-loop in server polling helper - Remove unused hook state variable in unit test
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.
💡 Change Scope
📝 What Does This PR Do?
Implements Phase 4 (M1–M4) “Remote Worker + Web UI (SSH-first)” v0:
POST /invoke, bearer token auth, connection file)out/main/worker.js) running the same contracts/handlersGET /) for quick debug / manual invoke--endpoint+--tokenfor tunnels/remote +opencove worker start/status🏗️ Large Change Spec
1. Context & Business Logic
/invoke) with the same{ kind, id, payload }contract shape.2. State Ownership & Invariants
127.0.0.1+ bearer token; remote viassh -L).3. Verification Plan & Regression Layer
pnpm pre-commit(tsc + lint/format checks + vitest + playwright e2e) ✅GET /, token auth, invalid JSON)✅ Delivery & Compliance Checklist
pnpm pre-commitis completely green.DEVELOPMENT.mdarchitectural boundaries.📸 Screenshots / Visual Evidence
N/A (no renderer UI changes; worker web shell is a minimal debug surface).