Skip to content

feat(ios,host): AI Chat Landing, slide-out sidebar, desktop-aligned conversation components, Collaboration Space & Kanban - #67

Merged
DimoADE merged 9 commits into
DimoADE:masterfrom
DorJay007:feat/ios-companion-v2-and-computer-use-fix
Nov 8, 2026
Merged

DimoADE merged 9 commits into
DimoADE:masterfrom
DorJay007:feat/ios-companion-v2-and-computer-use-fix

Conversation

@DorJay007

@DorJay007 DorJay007 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

 <RootTabView> (mobile/ios/App/RootTabView.swift)
   ├── <CompanionAttentionToastBanner />          # 桌面端正在进行/待审批会话的药丸提醒
   ├── <ConversationsView>                        # AI Chat Landing 工作台 + 左侧滑出抽屉
   │     ├── Launch Bloom Reveal                  # 启动中央 Logo -> 工作台 Logo 缩放上移与四周缓慢散开转场
   │     ├── <WorkspaceSlideOutSidebar />         # 已导入项目 / 最近对话 / 文件与未提交代码差异入口
   │     └── <ConversationDetailView>             # 嵌入式会话流(按时间序穿插 Thinking / ToolChips / Markdown)
   │           ├── <StreamingMessageText />       # 对齐桌面端 AstryxMarkdown + conv-markdown.css
   │           ├── <ApprovalCard />               # 对齐桌面端 AgentQuestionCard + AskQuestionToolCard
   │           ├── <PermissionBanner />           # 对齐桌面端 PermissionRequestCard (拒绝 + [允许 | ▾])
   │           └── <ZoomableImagePreviewSheet />  # 对齐桌面端 ZoomableImagePreview + ImagePreviewToolbar
   ├── <BoardView />                              # 看板 + 会话中心(4路监控器/画布) + 计量统计
   ├── <CollaborationSpaceView />                 # 1v1 成员对话 + 多 Agent 群聊 + 11色×13形动态头像
   ├── <SettingsView />                           # 个人资料 / 已配对电脑 / 技能·MCP·插件 / 圆形扩散主题切换
-  └── System UITabBar + 独立「文件」Tab
+  └── Grounded Bottom Navigation Bar (4 Tabs: 对话 / 看板 / 协作空间 / 设置,进入对话或抽屉时自动收起)

1. 做了什么(新增功能 / Added)

iOS Companion 核心模块与工作台

  • AI Chat Landing 智能工作台 + 侧滑导航抽屉(ConversationsView.swift):
    • 将对话首页重塑为专注的 AI Chat Landing 工作台(VibeX 官方桌面端 Logo、工作区胶囊切换器、3 个轻量快捷编码指令胶囊、底部悬浮四圆角输入框 PromptBar)。
    • 新增左侧滑出式抽屉侧边栏(支持手势拖拽打开/收起、遮罩点击关闭),集中承载工作区切换、项目文件浏览、未提交代码差异(Git Diff)以及带搜索过滤的最近对话列表;点击任意对话在主视图内无缝切换,不改变侧边栏自身结构。
  • 启动中央 Logo 到工作台 Logo 的径向散开转场(ConversationsView.swift):
    • 启动首帧在屏幕正中央展示 72×72pt VibeX 桌面端官方 Logo;随后中央 Logo 沿阻尼弹簧轨迹(.spring(response: 1.08, dampingFraction: 0.86))平滑缩小至 52×52pt 并上移落位至工作台标题上方,同时顶栏、标题、工作区选择器、快捷胶囊、输入框与底栏从屏幕中心向四周缓慢散开浮现。
  • 桌面端实时联动提醒横幅(CompanionAttentionCenter.swift、crates/server/src/host/events.rs、src-tauri/src/events.rs):
    • 放行 conversation.read 权限订阅 workspace-sessions-changed 与 desktop-session-attention 事件,并将桌面端 USER_ORIGIN 纳入本地用户轮次判定。
    • 当桌面端发起新对话、流式输出、请求工具审批或提出问题时,手机端顶部弹出灵动岛风格的提醒胶囊,支持直接点击跳转对应对话或一键批准/拒绝权限。
  • 协作空间(CollaborationSpaceView.swift、CollaborationChatView.swift、MemberBotAvatarView.swift):
    • 完整支持 1v1 成员私聊与多 Agent 群组协作(@提及、引用回复、Emoji 反应、定时消息、审批卡片、轮次执行回执、记忆与共享资产查看)。
    • 1:1 复刻桌面端 11 种配色 × 13 种角色形态 的 60fps 动态机器人头像与选择器。
  • 看板、会话中心(含 4 路实时监控器)与计量统计(BoardView.swift、KanbanUsageDashboardView.swift):
    • 支持四列看板(待开始 / 进行中 / 待审核 / 已归档)、会话中心(列表 / 4 槽位实时监控器 / 画布分组)与 Token/费用/模型计量统计。
  • 全屏可缩放与标注的图片预览器(ZoomableImagePreviewSheet / AttachmentImageStore / MarkdownImageFrameView):
    • 对齐桌面端 ZoomableImagePreview.tsx + ImagePreviewToolbar.tsx:支持双指捏合缩放(25%–600%)、双击缩放切换、拖拽平移、点阵暗色背景、缩放比例预设菜单。
    • 内置底部浮动标注工具栏(平移、矩形/圆形/三角形标注、画笔涂鸦、6 色预设、撤销/重做、收起工具栏)及复制合成图片/保存相册。
    • 输入框 PromptBar 已选图片支持点击全屏预览与标注回写,发送后在用户消息气泡内渲染高清缩略图。

2. 优化了什么(视觉、交互与协议对齐 / Optimized)

  • 消息流事件组件 1:1 对齐 VibeX 桌面端本体:
    • 权限申请卡片(PermissionBanner & SessionState.swift):对齐桌面端 PermissionRequestCard.tsx,完整解析 ACP details(区分 终端命令 / 文件读写 / 网络访问 / 工具调用、_meta 标题去重、可展开的文件修改前后红绿 Diff 预览、终端命令块与文件位置列表),底部采用 拒绝 + [ 允许 | ▾ ] 分体式按钮(支持 允许一次 / 本会话允许 / 始终允许 及 persist: true)。
    • Question 问答卡片(ApprovalCard.swift & QuestionForm.swift):对齐桌面端 AgentQuestionCard.tsx 与 AskQuestionToolCard.tsx,支持顶部可折叠进度栏(1 / N + 标题 + 刚刚)、自动识别 (Recommended) 渲染 推荐 徽章、按需展开的 自定义回答 选项行,以及在消息流工具调用中内联渲染只读 AskQuestionToolCardView。
    • 消息流 Markdown 组件(StreamingText.swift):对齐桌面端 AstryxMarkdown.tsx + conv-markdown.css,支持单行紧凑代码块(.conv-md-codeblock-single)与多行带大写语言顶栏代码块(.conv-md-codeblock)、mermaid 流程图卡片、GFM 表格(列对齐 + 横向滚动)、GitHub Callout 告警框([!NOTE] / [!TIP] / [!IMPORTANT] / [!WARNING] / [!CAUTION])、圆角浅底引用块、任务列表(- [ ] / - [x])、文件路径资源高亮与数学公式块。
  • 60fps 丝滑流式输出与按时间序穿插工具调用(HostModels.swift、crates/agents/src/parsers/acp_native.rs):
    • 新增 TimelineSegment(.thinking / .tools / .text),使助手回复严格按真实发生顺序穿插渲染思考过程、工具调用与正文,不再将所有工具调用强制堆叠在消息最上方。
    • 修复 ACP Native 解析器跨 messageId 拼接文本块缺少换行符的问题。
  • 输入框 PromptBar 与底部导航栏重构(PromptBar.swift、RootTabView.swift):
    • PromptBar 由贴底半圆角改为四边独立悬浮圆角卡片(cornerRadius: 22),统一底栏按钮高度(30pt),规范化模型名称显示(如將 "6 Sol" 自动补全为 "GPT-6 Sol")。
    • 桌面图标(AppIcon.appiconset)与端内工作台图标统一替换为 VibeX 桌面端官方矢量转换的暗黑圆角节点 Logo。
  • macOS vibex-plugin-computer-use 原生 Helper 修复:
    • 补齐 plugins/computer-use/native/Cargo.toml 的 [workspace] 与 macOS 依赖,支持按需编译与客户端 OS 平台自动识别。

3. 废除了什么(精简与移除项 / Deprecated & Removed)

  • 废除底部导航栏独立的「文件」第 5 Tab(RootTabView.swift):
    • 底部导航栏从拥挤的 5 项精简为 4 项核心入口(对话、看板、协作空间、设置);文件浏览与 Git Diff 查看归入对话侧边栏抽屉、会话右上角菜单及输入框 + 抽屉,消除跨层级功能重复。
  • 废除 iOS 系统自带厚重的悬浮胶囊 UITabBar(RootTabView.swift):
    • 替换为轻量贴底的 bottomNavigationBar(0.5pt 顶部分隔线 + 中心径向渐变揭示动效),且在进入具体对话、打开侧边栏或弹出键盘时自动隐藏,彻底解决输入框与底栏双胶囊叠罗汉问题。
  • 废除落地页冗余顶栏按钮与密集的 2×2 大卡片网格(ConversationsView.swift):
    • 移除落地页右上角重复的「代码差异」和「浏览文件」图标按钮、连接状态长胶囊、NEW 徽章以及大面积 2×2 指令卡片,避免首屏信息过载。
  • 废除旧版简陋的红色警告框权限横幅与常驻占位的自定义回答输入框(ConversationDetailView.swift、ApprovalCard.swift):
    • 替换为桌面端同款 PermissionRequestCard 与按需展开的 自定义回答 选项行。
  • 废除 PromptBar 发送图片时丢弃原图仅发送纯文本占位符的做法(PromptBar.swift):
    • 改为通过 AttachmentImageStore 保留内存图片引用并支持在消息流气泡中渲染缩略图与全屏缩放标注。

Evidence

  • Rust Test Suite (acp_native):
    cargo test -p agents --lib parsers::acp_native → 12 passed, 0 failed
  • Swift Package Test Suite (CompanionCoreTests):
    cd mobile/ios && swift test → 35 passed, 0 failed (including permissionDetailsAndQuestionRecommendationsMatchDesktop)
  • iOS Simulator Build & Verification:
    xcodebuild -project VibeXCompanion.xcodeproj -scheme VibeXCompanion -destination 'platform=iOS Simulator,name=iPhone 17' build → BUILD SUCCEEDED

Merge Danger

Door: Two-way

All iOS Companion UI/UX, component, and state parser upgrades are self-contained under mobile/ios/, and the Host event/parser adjustments (crates/server/src/host/events.rs, src-tauri/src/events.rs, crates/agents/src/parsers/acp_native.rs) are backward-compatible additions.

Blast Radius: Low

ltf added 7 commits November 8, 2026 00:58
…project hierarchy

Previously, `conversation_projects` joined `workspaces` to `projects` with an inner join, which omitted imported child repositories or folders that did not yet have an active workspace, and the iOS companion only rendered projects that already had conversations in a flat list.

Load all visible imported projects via `Project::find_all` (migrating multi-repo projects and ensuring the home project and root workspaces exist) and expose hierarchy and path metadata (`rootPath`, `parentProjectId`, `isGit`, `isHome`). On iOS, flatten the project tree in the same order as the desktop welcome screen (home project "全局" first, followed by parent projects and indented child git repositories) so every imported project can be browsed and used to start new conversations.
…panion app

The iOS companion lagged well behind the VibeX desktop app. It had no
collaboration space or board, Settings was a flat list, and basic
interactions felt broken (most visibly, tapping outside an active search
did not cancel it). This change brings the companion closer to the
desktop experience.

Collaboration space and board
- Add native collaboration space, chat and detail views. These include the
  desktop's member/bot avatars with their colors and role shapes, plus the
  idle animation. The bot name and avatar appear in the chat header, and
  the bottom tab bar is hidden while chatting with a bot.
- Add the board (kanban) view and usage dashboard, backed by new
  CompanionCore models.
- Conversation rows support swipe-to-archive/delete. A full swipe deletes.

Settings redesign
- Reorder Settings into a fixed sequence: profile, paired computers
  (pair new + history), skills (skills/MCP/plugins/subagents), theme,
  font, notifications, about/version.
- Theme switching uses a window-level snapshot with a CoreAnimation
  even-odd mask that expands from the top-right corner. SwiftUI shape
  masks were dropped because changing preferredColorScheme cancels their
  animation transaction mid-flight.
- Tighten section and row spacing across Settings and the main lists.
  The previous one-row-per-section layout left large gaps.
- Remove the redundant connection-status pill from the Files page.

Interaction fixes
- Install a window-level, non-cancelling tap recognizer. Tapping outside a
  text input now dismisses the keyboard and cancels search. The
  interactive back-swipe works on all pushed pages.
- Add "完成" (Done) buttons to modal sheets. The keyboard is dismissed on
  scroll, on disappear and on tab switch.

Host/protocol
- Make skill, MCP and system-info reads require only conversation.read, and
  add plugin.read to companion scopes, so paired phones can browse them.
  user_system_info also returns installed plugins, so credentials issued
  before plugin.read existed can still list plugins.
- Expose the collaboration data the new iOS views need.
Wherever the iOS app showed a model name, it didn't say which agent was
running it, and agent pickers listed raw ids such as `claude_code`. The
desktop app shows a brand icon next to every agent. These changes bring
the same treatment to mobile.

- Add AgentIconView / AgentModelLabel / AgentMenuLabel. AgentBrand copies
  the alias rules and display names from the desktop's AgentIcon.tsx, so
  both apps resolve agent ids the same way.
- Bundle the 21 built-in brand icons from frontend/public/agents in
  AgentIcons.xcassets, with light and dark variants. Unknown agents get a
  generic glyph.
- Menus and Pickers only draw UIImage-backed icons reliably, so the brand
  icons are redrawn at menu size with their original colours, and the
  light/dark versions are kept.
- Usage rows grouped by model don't include an agent id, so the agent is
  guessed from the model name (claude/opus/sonnet → Claude Code, gpt/codex
  → Codex, …). If the vendor can't be told from the name, no agent icon is
  shown.
- Agent icons now appear on the prompt bar's model pill and model menu,
  kanban session cards, the monitor list and agent filter, the new-session
  agent picker, usage dashboard rows, collaboration member chips and
  pickers, role lists, and the Settings agent list.

Conversations list:
- Project rows show overlapping icons for the agents used recently in that
  project. Relative times are now in Chinese instead of English, the path
  moves to the second line, and the redundant "已导入项目" header is
  removed.
- Conversation rows start with the agent icon and show model · message
  count · time.
- Section spacing and row insets are tighter.

Settings:
- Remove the top-right sun/moon toolbar button, which duplicated the theme
  row.
- Collapse the theme row into a single line with a segmented picker
  (跟随系统 / 浅色 / 深色). Switching still plays the top-right circular
  reveal.
- Reduce section spacing, row insets and the profile avatar size so the
  page is more compact.
…r, and kanban UX

Improve readability, density, and mobile-native ergonomics across the iOS companion app's core workflows:

- Replace the floating `+` popup in `PromptBar` with an expandable bottom action drawer featuring a 4-column action grid (Photo Library, Camera, Workspace Files, Model, Mode/Effort, and Permissions) so attachment and session controls behave like a native mobile IM panel rather than covering the transcript.
- Collapse assistant reasoning (`ThinkingView`) and tool call traces (`ToolChipsView`) into compact single-line summary pills by default so long reasoning chains and multi-step tool executions no longer push the assistant's actual answer off screen.
- Upgrade assistant message rendering (`StreamingMessageText`, `ConversationDetailView`) with agent brand headers and structured Markdown block parsing (headings, bullet/numbered lists, blockquotes, inline code badges, and syntax-highlighted fenced code cards with copy actions).
- Introduce `CodeBlockView` with lightweight multi-language syntax highlighting, adaptive light/dark GitHub-inspired themes, line-number gutters, word-wrap toggle, adjustable font size, and file-type glyphs for workspace file browsing.
- Refine the Conversations, Files, and Kanban Board screens with view-aligned column snapping, decluttered session cards, localized relative timestamps, recent conversation quick access, and consistent agent brand icons alongside model labels.
… list equality

- Declare an explicit `[workspace]` and add missing macOS target dependencies (`core-foundation-sys`, `objc2`, `objc2-app-kit`, `objc2-foundation`) to `plugins/computer-use/native/Cargo.toml` so `vibex-computer-helper` compiles cleanly on macOS outside the root Cargo workspace.
- Expand `resolveHelperBinary` in `plugins/computer-use/runtime/daemon-client.mjs` to check both runtime snapshot paths and workspace source paths so the Computer Use plugin worker finds the native helper binary in development and packaged modes.
- Detect the client OS (`macos`, `linux`, `windows`) as the fallback platform in `plugins/computer-use/src/views/view.tsx` instead of defaulting to `'windows'`, preventing macOS settings from misreporting "Windows UI Automation & Win32" before the daemon status loads.
- Replace the `(Int, String)` tuple payload in `StreamingText.swift`'s `MarkdownBlock.numberedList` with an explicit `Equatable` struct so Swift can synthesize `Equatable` conformance for structured markdown rendering on iOS.
…ency

Update pnpm-lock.yaml after installing workspace dependencies so Vite can resolve the `monacopilot` import introduced in `PluginRuntimeLoader.ts`.
…transition, desktop attention toast, and desktop-aligned permission/question/image/markdown components
@DorJay007 DorJay007 changed the title feat(ios,computer-use): add Collaboration Space, Kanban, Code Viewer & Settings to iOS and fix macOS Computer Use helper feat(ios,host): AI Chat Landing, slide-out sidebar, desktop-aligned conversation components, Collaboration Space & Kanban Nov 8, 2026
@DimoADE
DimoADE merged commit 2eafc7c into DimoADE:master Nov 8, 2026
4 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