mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3348] [GUI] Add an iPhone companion with shared chats and model downloads #4583
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4583
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3348
Author: @jorge123255
Created: 10/20/2026
Status: 🔄 Open
Base:
main← Head:pr/ios-companion📝 Commits (4)
680bc50[GUI] Add optional iPhone companion for shared Mac conversationsaf6da40[Docs] Explain iPhone companion prerequisites and show previewa6b503a[GUI] Add model download controls for paired and remote Strata computersa7ca6da[Docs] Describe SSH-managed Terminal model download targets📊 Changes
34 files changed (+5807 additions, -0 deletions)
View changed files
📝
README.md(+11 -0)➕
apps/ios/.gitignore(+5 -0)➕
apps/ios/README.md(+89 -0)➕
apps/ios/StrataMobile.xcodeproj/project.pbxproj(+593 -0)➕
apps/ios/StrataMobile.xcodeproj/project.xcworkspace/contents.xcworkspacedata(+7 -0)➕
apps/ios/StrataMobile.xcodeproj/xcshareddata/xcschemes/StrataMobile.xcscheme(+113 -0)➕
apps/ios/StrataMobile/Assets.xcassets/AppIcon.appiconset/AppIcon.png(+0 -0)➕
apps/ios/StrataMobile/Assets.xcassets/AppIcon.appiconset/Contents.json(+1 -0)➕
apps/ios/StrataMobile/Assets.xcassets/Contents.json(+1 -0)➕
apps/ios/StrataMobile/Info.plist(+18 -0)➕
apps/ios/StrataMobile/Models/CompanionModels.swift(+424 -0)➕
apps/ios/StrataMobile/Services/CompanionClient.swift(+166 -0)➕
apps/ios/StrataMobile/Services/CompanionStore.swift(+572 -0)➕
apps/ios/StrataMobile/Services/QRScannerView.swift(+81 -0)➕
apps/ios/StrataMobile/StrataMobileApp.swift(+26 -0)➕
apps/ios/StrataMobile/Theme.swift(+74 -0)➕
apps/ios/StrataMobile/Views/ChatView.swift(+368 -0)➕
apps/ios/StrataMobile/Views/Components.swift(+197 -0)➕
apps/ios/StrataMobile/Views/ConnectionView.swift(+341 -0)➕
apps/ios/StrataMobile/Views/ContentView.swift(+63 -0)...and 14 more files
📄 Description
Problem and result
Strata's Mac conversations cannot currently be continued from a native iPhone app. This adds an optional SwiftUI companion in Strata's light/dark palette: pair, reopen shared history, continue the same chat, expand Thinking, follow ordered progress/browser/tool activity, answer approvals or Stop. The Models screen also reviews, starts and follows downloads on the paired Mac or its saved compatible Strata connections.
Related discussion
Scope proposal #3346; runtime dependency #3347 supplies the authenticated bridge, shared conversations and model-management API. Both branches share the upstream base without duplicating Mac changes. Maintainer scope agreement remains pending; both PRs are drafts.
Approach
Validation
Public HEAD
a7ca6da2aaadds SSH setup documentation only. The app/resources/tests remain byte-identical to freshly validated sanitized revisiona6b503a984, based one88ee39d. macOS 26.5 arm64; Xcode 26.6 (17F113); iOS 26.5 Simulator / iPhone 17 Pro. All 23 app/resource/test/new-fixture files match the tested full-fork source 432a8910 byte-for-byte. Build 5; signing metadata and documentation are sanitized.Passed:
build_sim({}), zero warnings/errors. Effective defaults:apps/ios/StrataMobile.xcodeproj,StrataMobilescheme, Debug, iPhone 17 Pro / iOS 26.5 selected by local simulator ID, isolated DerivedData.test_sim({extraArgs:["-only-testing:StrataMobileTests","-parallel-testing-enabled","NO"]}): 38 passed, 0 failed, 1 skipped. The skip is the explicitly optional live TLS test without an invitation. Coverage includes typed picture-reading requests, target/connection/review races, lost polling responses, older API fallback, empty-target picker safety and timeout selection.Reproduction from the repository root, with
MAC_CHECKOUTpointing to the matching Mac PR checkout:The measured UI runs used that simulator's local ID and an isolated DerivedData override. These complete UI cases were not repeated in the public checkout; fresh public build/units and file-hash equality are the exact split-revision evidence. Fixtures supply synthetic host/model state and start no real model download, inference, browser or desktop agent. Keep XCTest bundles private because entered pairing fields can be recorded.
Failed:
None in final checks. Development UI testing caught and fixed identifier propagation into controls and an index-out-of-range picker binding when targets disappeared; the final workflow/regression passed.
Not run:
Physical iPhone interaction or camera pairing against this public revision; iOS 17/iPad runtime acceptance; App Store distribution; real model downloads, inference or browser control. The signed development build 5 of the full fork was subsequently installed, and a read-only device query confirmed its bundle/build. It was deliberately left closed for the user; this is installation evidence only. No physical acceptance is inferred from simulator checks.
Limits
Requires iOS 17+ and #3347. Desktop API targets must implement and explicitly enable the matching administration extension. Terminal servers can instead use SSH configured per saved connection in the Mac app; no SSH host/user/key details are sent to the phone. SSH downloads do not prepare/load models or stop the serving model. An inference API key alone grants no SSH access. Pairing is local-network. Foreground polling does not provide background notifications/relay access; browser cards show actions/results, not screen video. Downloads/imports are not automatically loaded. The phone inherits paired conversation permissions, including approval control. See
apps/ios/README.mdandapps/ios/test-support/README.md.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.