Skip to content

Scaffold iOS companion control architecture#1252

Open
heyramzi wants to merge 1 commit intostablyai:mainfrom
heyramzi:feature/ios-companion-architecture
Open

Scaffold iOS companion control architecture#1252
heyramzi wants to merge 1 commit intostablyai:mainfrom
heyramzi:feature/ios-companion-architecture

Conversation

@heyramzi
Copy link
Copy Markdown
Contributor

Summary

This PR scaffolds the first backend architecture for an Orca iPhone companion app that can continue existing laptop sessions while the laptop remains the source of truth.

It adds:

  • a durable architecture note for the iPhone companion control plane
  • shared remote-control protocol types for pairing, session snapshots, commands, and events
  • a main-process RemoteControlService scaffold that translates live Orca terminals into phone-manageable sessions
  • a focused test covering session capability mapping and ordering

Why this cut

The goal is to review the session identity, security, and transport boundaries before any SwiftUI or networking work lands.

The key architectural choice is that one remote session maps to one live Orca PTY leaf, not one repo or one worktree. That keeps remote continuation aligned with the exact agent conversation the laptop already has open.

Verification

  • pnpm exec vitest run src/main/remote-control/service.test.ts
  • pnpm run typecheck:node

@nwparker
Copy link
Copy Markdown
Contributor

Hey @heyramzi !
Thanks for this

@Jinwoo-H is also working on something similar (in case you missed that PR): #1245

Still as a draft for now! But coming along

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.

3 participants