Repository navigation
feat(ios,host): AI Chat Landing, slide-out sidebar, desktop-aligned conversation components, Collaboration Space & Kanban - #67
Merged
DimoADE merged 9 commits intoNov 8, 2026
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
1. 做了什么(新增功能 / Added)
iOS Companion 核心模块与工作台
ConversationsView.swift):PromptBar)。ConversationsView.swift):72×72ptVibeX 桌面端官方 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):@提及、引用回复、Emoji 反应、定时消息、审批卡片、轮次执行回执、记忆与共享资产查看)。BoardView.swift、KanbanUsageDashboardView.swift):待开始/进行中/待审核/已归档)、会话中心(列表 / 4 槽位实时监控器 / 画布分组)与 Token/费用/模型计量统计。ZoomableImagePreviewSheet/AttachmentImageStore/MarkdownImageFrameView):ZoomableImagePreview.tsx+ImagePreviewToolbar.tsx:支持双指捏合缩放(25%–600%)、双击缩放切换、拖拽平移、点阵暗色背景、缩放比例预设菜单。PromptBar已选图片支持点击全屏预览与标注回写,发送后在用户消息气泡内渲染高清缩略图。2. 优化了什么(视觉、交互与协议对齐 / Optimized)
PermissionBanner&SessionState.swift):对齐桌面端PermissionRequestCard.tsx,完整解析 ACPdetails(区分终端命令/文件读写/网络访问/工具调用、_meta标题去重、可展开的文件修改前后红绿 Diff 预览、终端命令块与文件位置列表),底部采用拒绝+[ 允许 | ▾ ]分体式按钮(支持允许一次/本会话允许/始终允许及persist: true)。ApprovalCard.swift&QuestionForm.swift):对齐桌面端AgentQuestionCard.tsx与AskQuestionToolCard.tsx,支持顶部可折叠进度栏(1 / N+ 标题 +刚刚)、自动识别(Recommended)渲染推荐徽章、按需展开的自定义回答选项行,以及在消息流工具调用中内联渲染只读AskQuestionToolCardView。StreamingText.swift):对齐桌面端AstryxMarkdown.tsx+conv-markdown.css,支持单行紧凑代码块(.conv-md-codeblock-single)与多行带大写语言顶栏代码块(.conv-md-codeblock)、mermaid流程图卡片、GFM 表格(列对齐 + 横向滚动)、GitHub Callout 告警框([!NOTE]/[!TIP]/[!IMPORTANT]/[!WARNING]/[!CAUTION])、圆角浅底引用块、任务列表(- [ ]/- [x])、文件路径资源高亮与数学公式块。HostModels.swift、crates/agents/src/parsers/acp_native.rs):TimelineSegment(.thinking/.tools/.text),使助手回复严格按真实发生顺序穿插渲染思考过程、工具调用与正文,不再将所有工具调用强制堆叠在消息最上方。messageId拼接文本块缺少换行符的问题。PromptBar与底部导航栏重构(PromptBar.swift、RootTabView.swift):PromptBar由贴底半圆角改为四边独立悬浮圆角卡片(cornerRadius: 22),统一底栏按钮高度(30pt),规范化模型名称显示(如將"6 Sol"自动补全为"GPT-6 Sol")。AppIcon.appiconset)与端内工作台图标统一替换为 VibeX 桌面端官方矢量转换的暗黑圆角节点 Logo。vibex-plugin-computer-use原生 Helper 修复:plugins/computer-use/native/Cargo.toml的[workspace]与 macOS 依赖,支持按需编译与客户端 OS 平台自动识别。3. 废除了什么(精简与移除项 / Deprecated & Removed)
RootTabView.swift):对话、看板、协作空间、设置);文件浏览与 Git Diff 查看归入对话侧边栏抽屉、会话右上角菜单及输入框+抽屉,消除跨层级功能重复。UITabBar(RootTabView.swift):bottomNavigationBar(0.5pt顶部分隔线 + 中心径向渐变揭示动效),且在进入具体对话、打开侧边栏或弹出键盘时自动隐藏,彻底解决输入框与底栏双胶囊叠罗汉问题。ConversationsView.swift):NEW徽章以及大面积 2×2 指令卡片,避免首屏信息过载。ConversationDetailView.swift、ApprovalCard.swift):PermissionRequestCard与按需展开的自定义回答选项行。PromptBar发送图片时丢弃原图仅发送纯文本占位符的做法(PromptBar.swift):AttachmentImageStore保留内存图片引用并支持在消息流气泡中渲染缩略图与全屏缩放标注。Evidence
acp_native):cargo test -p agents --lib parsers::acp_native→ 12 passed, 0 failedCompanionCoreTests):cd mobile/ios && swift test→ 35 passed, 0 failed (includingpermissionDetailsAndQuestionRecommendationsMatchDesktop)xcodebuild -project VibeXCompanion.xcodeproj -scheme VibeXCompanion -destination 'platform=iOS Simulator,name=iPhone 17' build→ BUILD SUCCEEDEDMerge 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