Skip to content

feat(ios): add the SwiftUI iOS companion app with Live Activity - #66

Merged
DimoADE merged 2 commits into
DimoADE:masterfrom
DorJay007:feat/ios-companion-app
Nov 7, 2026
Merged

DimoADE merged 2 commits into
DimoADE:masterfrom
DorJay007:feat/ios-companion-app

Conversation

@DorJay007

Copy link
Copy Markdown
Contributor

Stacked on the CompanionCore PR (this branch contains its commit). Needs the Host API PR for file browsing, diffs and project grouping; without it those screens show an error or fall back to a flat list.

Summary

<RootTabView>                       // 对话 / 看板 / 协作空间 / 文件 / 设置
  <ConversationsView>               // projects -> only that project's conversations
    <ConversationDetailView>
      <ToolChipsView/>              // tool rows + per-file diff chips
      <TaskDock/>                   // Agent task list
      <PromptBar/>                  // model / effort / permission modes
      <ApprovalCard/>               // Agent questions; permission banner
  <FilesView/>  <SettingsView/>
<VibeXTaskWidget>                   // Live Activity: Dynamic Island / Lock Screen

What the iOS companion does today

  • Pair by scan or paste; credential in Keychain; survives desktop restarts.
  • Conversation list grouped by project; create a conversation in a project with any usable Agent.
  • Incremental transcript with streaming-style reveal, reasoning, tool call rows, plan/task rows.
  • Diff chips per changed file; falls back to the Agent's own Write/Edit calls when the workspace has no git.
  • Prompt bar: model, reasoning effort, permission modes; send / cancel.
  • Answer permission requests and Agent questions (choices, text, number, boolean).
  • Read-only file browser and working-tree diff (line by line).
  • Live Activity: task progress, or current step + timer when there is no task list.

iOS vs Android in this repo

Android (mobile/android) iOS (mobile/ios)
Pairing client + scope allowlist ✅ ✅
Secure credential store Keystore Keychain
UI Compose shell full SwiftUI app
Conversation list / detail / transcript – ✅
Prompt bar, model/effort/permission controls – ✅
Permission + question answers – ✅
Files + diff browsing – ✅
Project grouping – ✅
Live Activity / Dynamic Island n/a ✅
Unit tests scopes, pairing 31 (pairing, client, transcript, session, diff, grouping)

Android's full UI is specified in docs/companion/android-frontend.md and lives in a separate repo, so the table compares what this repo contains.

Not in this PR / limits

  • 看板 and 协作空间 are placeholders: the Companion preset has no application.call.
  • Token streaming needs application.call; the phone polls incrementally instead.
  • Live Activity only updates while the app runs; closing that gap needs APNs, which the protocol does not have.
  • Signing: set your own Team on both targets (VibeXCompanion, VibeXTaskWidget); no team id is committed.

Evidence

  • xcodebuild -scheme VibeXCompanion -sdk iphonesimulator build succeeds with the widget embedded.
  • Run on an iPhone 14 Pro and simulator against a dev Host: pairing, chat, tool chips, diff sheet, project list; Live Activity starts on a running turn.

Merge Danger

Door: two-way

Blast Radius: new directory; no desktop or Android code touched

ltf added 2 commits November 7, 2026 05:01
Pairing (vibex-pairing invitation, companion preset check, origin fallback), an authenticated Remote Protocol v1 HostClient (conversations, incremental transcript, offline control-plane events, permission/question answers, session modes and config, read-only workspace tree/file/diff, projects), and the models that fold them into UI state. Wire models are linked from docs/protocol/v1/generated/swift. 31 unit tests.
Pairing by scan/paste, conversations grouped by project, conversation detail (incremental transcript, streaming reveal, thinking, tool chips with per-file diffs, task list and prompt bar with model/effort/permission controls, permission and question cards), read-only file browser and git diff, and a Live Activity widget (Dynamic Island / Lock Screen) that follows the Agent's task list or the current step.
@DimoADE
DimoADE merged commit 2abb178 into DimoADE:master Nov 7, 2026
6 of 12 checks passed
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