mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3347] [CLOSED] [GUI] Add Mac pairing, shared chats and remote model controls #4582
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#4582
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/3347
Author: @jorge123255
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:pr/mac-iphone-support📝 Commits (6)
818ecf4[GUI] Add opt-in Mac support for paired iPhone conversationsed35bd5[GUI] Add remote model downloads and GGUF imports5aeb869[GUI] Manage terminal server model files over configurable SSHa2daa74Add reviewed current-model Serving controls for saved Terminal APIs5754995[GUI] Prepare and switch models on SSH servers50426b0[GUI] Merge upstream 0.2.1 into Mac companion support📊 Changes
77 files changed (+10701 additions, -74 deletions)
View changed files
📝
.gitignore(+4 -0)➕
apps/companion-bridge/README.md(+104 -0)➕
apps/companion-bridge/bridge.mjs(+843 -0)➕
apps/companion-bridge/index.mjs(+42 -0)➕
apps/companion-bridge/package.json(+7 -0)➕
apps/companion-bridge/qr.swift(+16 -0)➕
apps/companion-bridge/test/bridge.test.mjs(+349 -0)➕
apps/companion-bridge/test/conversations.test.mjs(+223 -0)➕
apps/companion-bridge/test/model-management.test.mjs(+210 -0)➕
apps/desktop/PAIRING.md(+25 -0)📝
apps/desktop/package.json(+2 -1)➕
apps/desktop/scripts/stage-companion.mjs(+21 -0)➕
apps/desktop/scripts/stage-remote-lifecycle.mjs(+31 -0)➕
apps/desktop/src-tauri/resources/companion-bridge/.gitignore(+2 -0)📝
apps/desktop/src-tauri/tauri.conf.json(+4 -0)➕
apps/host/REMOTE-MODELS.md(+63 -0)➕
apps/host/python/remote_model_lifecycle.py(+925 -0)➕
apps/host/python/remote_model_manager.py(+669 -0)📝
apps/host/server/agent/agent-bridge.mjs(+18 -3)➕
apps/host/server/companion-routes.mjs(+47 -0)...and 57 more files
📄 Description
Problem and result
Mac conversations cannot be continued securely from a native iPhone client, and saved model APIs do not provide a complete remote model workflow. This adds opt-in iPhone pairing, shared history/session continuation, Thinking and ordered progress, browser/tool activity, approvals and Stop. Saved Strata connections gain remote downloads/imports, current-model Serving controls, and Prepare & serve for SSH servers.
From Settings → Models → Manage models → Prepare & serve, a user can prepare supported downloaded/imported GGUFs, start a separate managed API, switch it between prepared profiles when idle, and save its connection for chat and Serving. Existing independently started APIs and other model services remain separate. New managed profiles are text-only and start unloaded.
Scope
Scope proposal: #3346; maintainer agreement remains pending, so this stays a draft. Native iPhone client: #3348. The client requires this Mac support at runtime. Defaults remain unchanged until the corresponding pairing or management option is enabled. No fork-specific C++/GPU backend source is changed.
Implementation
Validation
Current upstream integration
50426b0b62mergescbfd5b926b(Strata 0.2.1 / Control 0.1.46.2). Conflict resolutions keep the upstream task board and model checks alongside shared-chat migration, turn identity and management idle guards. Phone-started chats now appear on the task board and use the shared Stop path. Remote reuse applies upstream user engine options and MTP-off before canonical private path copying, then discards raw overrides. The new requirements file is staged through an exact filename allowance.On this exact integrated public commit: 35/35 Node integration checks, 88/88 Python file/lifecycle/idle checks, type checking and normal desktop production UI/resource staging passed, without skips. The 424-file source archive matches the full fork byte-for-byte (SHA-256
44f81e3f3a5219e90a3e016738f24b58e697830feab9815a9f5f706976f54d35). Public-source review found no remaining P1/P2 findings. The corresponding merged full fork also passed 111/111 companion/host checks, 63/63 remote host/browser checks, 98/98 upstream board/native/settings/update checks, both isolated real-TLS iOS simulator workflows, and 38 iOS unit tests with one optional live-Mac TLS skip. Groups overlap; these are not a cumulative total. Core Python coverage had 87 pass, three platform skips and two previously observed macOS fake-NVIDIA fixture failures. Additional fake-NVIDIA setup cases pass with Linux explicitly mocked. Full native production inference remains untested.Commands for the current integrated public checks (from the repo root; Node/Python are the installed app's bundled runtimes, and the UI build uses external Homebrew Node 26):
The matching full fork was activated locally using the verified official 0.2.1 shell/Metal 0.1.46 components and complete merged Control sources over a verified 0.1.46.2 runtime. Installed resource hashes, recursive signatures, existing histories, pairings and connections passed after launch. This local evidence does not claim fresh Tauri distribution packaging, native inference or physical-phone interaction acceptance of this split revision. Private carrier scripts and local activation material remain excluded.
Earlier lifecycle increment:
5754995db4. Its 21 public source/test/doc blobs match full-fork 1f380a18; private carrier scripts and activation evidence are excluded. All 400 bundled source files match, and the normal production build produces source archive SHA-2567ad071052fd70f748a6f0b53fe2a582f6e312d24968cab0bd2025d92a86badad.On that exact public commit:
The matching full fork also passed 91/91 focused host/bridge checks and the existing Serving browser workflow. Independent final helper/runtime, UI, packaging and publication reviews found zero remaining P1/P2 issues. Core runtime/readiness/drain coverage ran 59 tests: 56 passed, 3 platform skips. A broader model/no-acquisition/identity/isolation run had 30 pass, 2 fail; both macOS
test_no_acquisitionsetup-selection failures reproduced on pre-incrementa2daa747and are not counted as passing.Real strict-key SSH snapshots and preparation previews passed on two existing Linux NVIDIA servers using their complete two-shard imported GGUFs. No large copies, production start/switch/load/unload or inference were performed. The full fork's local Mac activation retained all six complete chat histories, both paired devices and all saved connections; 162 installed resource hashes and recursive signatures passed. This is bounded local evidence, not native inference or distribution acceptance of this split revision.
Earlier companion/pairing, shared-history and Thinking simulator/device validation remains documented in
apps/desktop/PAIRING.mdand the client PR. This increment does not change the iOS source or claim new physical-phone acceptance.Limits
The GUI SSH preparation workflow currently supports recognized complete Strata GGUFs on Linux NVIDIA servers, with a working existing engine and Python 3.10+/Jinja2/NumPy environment. New profiles are text-only. Imports reference files already on the destination. Password prompts, Windows SSH servers and arbitrary model URL imports are unsupported. Existing external APIs cannot be adopted or switched by this workflow. Startup remains lazy, and actual engine/model compatibility must be established when loaded. Full host suite, large transfers/preparation, production native inference, fresh Tauri installers, Developer ID distribution signing and notarization were not run for this increment.
Setup and trust boundaries:
apps/host/REMOTE-MODELS.md,apps/desktop/PAIRING.md.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.