Skip to content

feat(ios,server): real-device UX polish, Live Activity progress ring, dual-engine QR pairing & Subagent roles - #68

Merged
DimoADE merged 7 commits into
DimoADE:masterfrom
DorJay007:feat/ios-companion-device-polish
Nov 8, 2026
Merged

DimoADE merged 7 commits into
DimoADE:masterfrom
DorJay007:feat/ios-companion-device-polish

Conversation

@DorJay007

Copy link
Copy Markdown
Contributor

Summary

Real-device testing and UX polish for the iOS Companion app (mobile/ios) and workspace diff endpoint (crates/server):

 mobile/ios/
 ├── App/
+│   ├── QRScannerView.swift          # Dual-engine (AVMetadata + Vision VNDetectBarcodesRequest) + Triple/DualWide macro + 1x/1.5x/2.5x zoom + PhotosPicker
+│   ├── PairView.swift               # 1-tap QR scan, smart clipboard auto-redeem, recent origin chips & bare IP normalization (:17891)
+│   ├── SettingsView.swift           # Standardized single-line iOS Settings rows, 1-tap navbar QR menu, desktop-aligned Subagent Roles CRUD
+│   ├── ServerDetailView.swift       # Clean connection status, active switch & re-pair actions (removed raw scopes dump)
+│   ├── RequiresServer.swift         # Direct 1-tap scanner / manual code sheets on empty & expired-auth states
+│   ├── ConversationDetailView.swift # Viewport width clamping, non-unmounting VStack timeline, 120pt scroll safe-zone & floating unread/down indicator
+│   ├── ConversationTools.swift      # Binary/empty diff explanation + synthetic unified diff fallback for newly added files
+│   ├── CompanionAttentionCenter.swift # Interactive UNNotificationCategories (Approve/Deny/Reply) for background & lock-screen turns
+│   └── TaskActivityController.swift # Semantic status label + 0..1 progress ring estimation for Live Activities
 ├── Shared/
+│   └── TaskActivityAttributes.swift # Added statusText & progress to ContentState
 ├── TaskWidget/
+│   └── TaskActivityWidget.swift     # VibeX brand mark + circular progress ring in Dynamic Island & Lock Screen Live Activity
 └── crates/server/src/host/
+    └── workspace_files.rs           # Synthesize +line unified diff for untracked files & allow workspace dotfiles (.claude, .vscode)

What Was Added & Optimized

  1. Conversation Timeline & Smart Scroll Safe-Zone (ConversationDetailView.swift, StreamingText.swift, ThinkingView.swift, ToolChips.swift, RootTabView.swift):
    • Clamped conversation message rows and Markdown blocks to viewport width (minWidth: 0, maxWidth: .infinity) and kept the bottom 4-tab navigation bar (对话 / 看板 / 协作空间 / 设置) persistently accessible.
    • Replaced LazyVStack with VStack in the active conversation timeline so returning from background or switching tabs never leaves an unmounted blank message viewport.
    • Added a 120pt bottom scroll safe-zone (isNearBottom) that auto-follows streaming output only when the user is in the safe-zone, and surfaces a floating bottom pill (showing unread new step count or a down-arrow) when scrolled up.
  2. Untracked / Dotfile Diffs (crates/server/src/host/workspace_files.rs, WorkspaceModels.swift, ConversationTools.swift):
    • Relaxed validate_relative_path so workspace dotfiles such as .claude/settings.local.json and .vscode/extensions.json are no longer rejected while still blocking .git and .env*.
    • Synthesized unified + diffs for untracked text files (status == "?") when git diff HEAD returns empty output, and added a client-side fallback + clear binary/empty file state in DiffFileSheet.
  3. Dynamic Island, Lock Screen Live Activity & Background Interactive Notifications (TaskActivityAttributes.swift, TaskActivityWidget.swift, TaskActivityController.swift, CompanionAttentionCenter.swift):
    • Upgraded Dynamic Island (compact, minimal, expanded) and Lock Screen Live Activity with the VibeX logo badge, semantic activity label (开发中 / 思考中 / 调用工具中 / 等待审批), and a circular progress ring (0%–100%).
    • Registered native UNNotificationCategory actions (APPROVE_ACTION, DENY_ACTION, textInput reply) so users can approve permissions or reply to agent questions directly from the iOS Lock Screen or notification banner when the app is backgrounded.
  4. Dual-Engine High-Speed QR Pairing & Settings Hierarchy (QRScannerView.swift, PairView.swift, SettingsView.swift, ServerDetailView.swift, RequiresServer.swift):
    • Upgraded camera discovery to [.builtInTripleCamera, .builtInDualWideCamera, .builtInDualCamera, .builtInWideAngleCamera] with continuous center auto-focus, .near range restriction, default 1.5x anti-moiré zoom (1x / 1.5x / 2.5x pills + pinch-to-zoom + auto-zoom on distant QR candidates), Vision VNDetectBarcodesRequest running in parallel with AVCaptureMetadataOutput, and PhotosPicker album QR recognition.
    • Normalized bare IP input (172.20.10.2 → http://172.20.10.2:17891), added recent IP quick-select chips, and auto-submitted full vibex-pairing: invitations on paste/scan.
    • Aligned the Subagents (子代理) tab in SkillsHubSettingsView 1:1 with desktop MultiAgentSettings.tsx ({EnabledAgent} · 默认配置 + custom CollabRoles with full Create / Edit / Delete support) and fixed the 4-segment tab bar to stay single-line (height: 36).

What Was Deprecated / Removed

  • Removed raw CatalogAgent engine dump from the 子代理 (Subagents) tab: Main CLI executors (Claude Code, Codex, Gemini, etc.) are no longer conflated with Subagent delegation roles.
  • Removed redundant 当前版本 row and repetitive row subtitles in SettingsView & PairedComputersSettingsView: Consolidated version info into the 关于 VibeX row trailing value and removed redundant instructional footers.
  • Removed raw developer scopes list from ServerDetailView: Replaced with user-facing connection status, one-tap active workstation switching, and credential re-pairing.

Evidence

  • Before:
    • Untracked files and .claude / .vscode dotfiles showed "此文件没有可显示的文本差异" in the iOS diff viewer.
    • Returning from background or switching tabs could leave ConversationDetailView blank until manually scrolled due to LazyVStack unmounting off-screen anchors.
    • Scanning desktop QR codes on iPhone Pro models suffered from minimum-focus blur and screen moiré, and the 子代理 tab wrapped text onto two lines (子\n代理) while listing uninstalled CLI engines instead of Subagent roles.
  • After:
    • swift test in mobile/ios: 35/35 passed (0.007s).
    • cargo test -p server workspace_files: passed.
    • Verified build, installation, and runtime behavior on both physical iPhone (iPhone 14 Pro, iOS 26.1) and iOS Simulator (iPhone 17).

Merge Danger

Door: Two-way

All changes are additive or localized to mobile/ios and the companion workspace diff helper in crates/server/src/host/workspace_files.rs.

Blast Radius: Low

confined to the iOS Companion client and companion-facing workspace diff serialization.

@DimoADE
DimoADE merged commit c1ed072 into DimoADE:master Nov 8, 2026
6 of 12 checks passed
DimoADE added a commit that referenced this pull request Nov 8, 2026
Replace the in-tree mobile/ios sources with a submodule pointing at
https://github.com/Xircth/vibex-remote-ios. The Host workspace-diff
helper from PR #68 stays in this repository.
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