Skip to content

feat(mobile): 模型选择器与桌面对齐(来源栏、图标、自定义路由强度、连体胶囊与自动化选模) - #15921

Open
dashhuang wants to merge 1 commit into
mainfrom
feat/mobile-model-selector-parity
Open

dashhuang wants to merge 1 commit into
mainfrom
feat/mobile-model-selector-parity

Conversation

@dashhuang

@dashhuang dashhuang commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

这次改了什么

摘要

对照桌面端模型选择器,为手机端(iOS 原生 SwiftUI / Android 同构视图)重排模型选择器与输入框模型胶囊,并补齐自动化页面的统一选模入口和自定义路由收藏的跨端同步:

  1. 顶部三层结构与纯图标来源栏:搜索框(跨来源)→ 横向纯图标来源栏(选中仅反色为 40×40 圆角方块、不展开写名字、保留双层额度条,避免切换时横向跳动)→ 来源内子页签(全部/收藏、智能路由各页签、聚合来源按厂商分)。
  2. 图标与桌面统一:iOS 与 Android 均使用与桌面同一套 lucide-react-native 图形、品牌标、智能路由角标和远程标记,不再用 SF Symbol 替代。
  3. 行尾单一控件与推理强度菜单:点模型行或路由行即选中并关闭面板;行尾胶囊弹系统菜单就地调推理强度与速度,末项进「更多设置」。模型与插件引擎菜单不再显示「· 推荐」后缀;每条自定义路由行均提供思考强度按钮,始终展示具体档位(任务档或路由默认档,菜单提供「跟随路由」与「· 路由默认」),不再显示「自定义」。
  4. 分组标题额度与就地明细:来源账号和容量加权额度(含 5h/周期双层条、「尽情用」饼图与 quotaBarSpare 配色)移至分组标题右侧,点开就地展开账号明细,去掉二级「来源」页。
  5. 输入框「模型 | 强度」连体胶囊:左半开面板、右半弹系统菜单,移除旧自绘浮层与长按横滑调档。
  6. 自动化统一选模与跨端路由收藏:自动化新建/编辑接入 AutomationModelPickerSheet(支持自定义路由、插件引擎、远端电脑目录、遵循 MobileScheduleDraft wire 契约);桌面端 modelGroupFavorites.ts 改为读写跨端同步的 modelFavorites 通道,并在确认落盘后再一次性清理旧本机键,解决手机取消收藏后桌面复原的问题。
  7. 稳定性与示例主机补齐:修复 iOS 面板内点过搜索框或行尾菜单后关闭面板触发 Reanimated 布局动画闪退的问题;补齐 --mock 示例主机的选模、换路由与改档接口。

变更类型

  • feat 新功能
  • fix 缺陷修复
  • refactor / perf 重构或性能优化
  • docs / test / chore 文档、测试或工程维护
  • 其他:

范围

  • 关联 Issue / 需求:无(移动端模型选择器与桌面端对齐)
  • 本 PR 包含:
    • apps/mobile 模型选择器视图(iOS/Android)、数据层、输入框连体胶囊、自动化选模弹窗、协作团队选模、13 语言 models.json 文案及 --mock 示例主机补齐
    • packages/device-link/src/modelFavorites.ts 自定义智能路由收藏哨兵常量与兼容读写
    • apps/desktop/src/renderer/features/model-groups/modelGroupFavorites.ts 与 apps/desktop/src/renderer/state/modelFavorites.ts 跨端路由收藏同步及一次性安全迁移
  • 明确不包含:
    • 服务端改动
    • 移动端原生模块、依赖或 runtime fingerprint 改动(纯 JS/UI,可热更)
    • 桌面端模型选择器视觉改版
  • 用户可见变化:
    • 手机端(新建任务、进行中任务、协作团队、自动化)模型选择器布局、图标、来源栏、页签、自定义路由思考强度及输入框模型胶囊与桌面端对齐
    • 自定义智能路由收藏在桌面端与手机端实时双向同步
  • 是否存在 breaking change:无

UI 变化

  • 涉及平台:iOS(原生 SwiftUI)、Android(同构 React Native 视图)。本次已在 iOS 模拟器(浅色/深色模式)逐项实测确认,未在 PR 正文中嵌入本地临时截图路径(避免外部不可访问的失效链接)。
  • 引用的设计规范:
    • docs/design-rules/DESIGN.md(双模式与语义 Token:iOS/Android 全部颜色走 useTheme().colors,通过 pnpm check:design-colors 与 designTokenDiscipline.test.ts;五档中性字色通过 textColorDiscipline.test.ts;视觉克制:来源栏选中态仅用 colors.cta/colors.ctaText 反色方块加额度条,不堆冗余文字标签;所有文案走 useTranslation() 并通过 13 语言与术语表校验)
    • docs/design-rules/DESIGN.md(额度双层条与「尽情用」quotaBarSpare 配色规则,与桌面端 UnifiedModelRail / MixedBalanceCard 保持一致)
    • apps/mobile/src/theme/tokens.ts(图标尺寸 iconSize、描边 iconStroke、圆角 radius、字号/行高/字重严格走 token 阶梯)

怎么验证的

自动验证

pnpm check:engineering-guards
结果:PASS(12 strict rules 0 violations, 8 ratcheted rules within baseline)

pnpm check:i18n && pnpm check:i18n-glossary && pnpm check:brand-terminology
结果:PASS(13 语言 21,296 key 全部一致;术语表 0 新增违规;品牌用语检查通过)

pnpm check:design-inventory && pnpm check:host-channels && pnpm check:design-colors && pnpm check:test-hygiene && pnpm check:dco
结果:PASS(66 surface 最新;1,719 channels unresolved=0;hardcoded-color 0 unexpected;test-hygiene 472 files within baseline;DCO 1 commit signed off)

cd packages/device-link && npx tsc --noEmit && npx vitest run src/__tests__/modelFavorites.test.ts
结果:PASS(类型检查 0 错误;1 个测试文件 7 条用例通过,耗时 ~1.6s)

cd apps/desktop && node scripts/typecheck-shard.mjs tsconfig.renderer.json && npx vitest run src/renderer/components/new-chat/__tests__/ModelGroupsPickerSection.test.tsx && npx eslint src/renderer/state/modelFavorites.ts src/renderer/features/model-groups/modelGroupFavorites.ts src/renderer/components/new-chat/__tests__/ModelGroupsPickerSection.test.tsx
结果:PASS(renderer 类型检查通过;7 条用例通过,耗时 ~3.9s;eslint 0 错误)

cd apps/mobile && NODE_OPTIONS="--max-old-space-size=8192" npx tsc --noEmit && npx vitest run
结果:PASS(类型检查 0 错误;全量 972 个测试文件、17,588 条用例通过;修复审查意见后重跑受影响的 6 个测试文件 210 条用例通过,耗时 ~4.2s)

新增/改写测试价值说明(按 engineering-conventions.md §3.2):

  • apps/mobile/src/__tests__/AutomationModelPickerSheet.test.tsx(单文件 ~12ms,3 条):经真实 AutomationModelPickerSheet 与 automationDraftModelLabel 入口验证跟随任务/默认文案、清除遗留 ACP agentKind、绑定任务保留 modelAgentKind 及编辑清远端 modelAgentDeviceId 的 wire 契约。
  • apps/mobile/src/__tests__/unifiedMobilePickerView.test.tsx(单文件 ~1.6s,54 条):覆盖 iOS/Android 双端来源栏无名选中态与额度条、子页签图标、行尾快捷菜单去掉「· 推荐」、自定义路由行尾强度菜单及收藏/折叠/详情页回退。
  • apps/mobile/src/__tests__/unifiedMobilePicker.test.tsx(单文件 ~245ms,113 条):覆盖真实 UnifiedModelPickerSheet 下收藏页签中自定义路由可点击与取消收藏、合并来源与插件引擎子页签及 sroute: 不泄漏到收藏存储。
  • apps/mobile/src/__tests__/androidModelPickerParity.test.tsx(单文件 ~148ms,26 条):覆盖 Android 来源栏无名选中态、保留额度条与子页签图标。
  • apps/desktop/src/renderer/components/new-chat/__tests__/ModelGroupsPickerSection.test.tsx(单文件 ~100ms,7 条):覆盖桌面端旧本机路由收藏一次性迁移、跨窗/跨端同步取消收藏以及 QuotaExceededError 写盘失败时保留旧键不丢收藏。
  • packages/device-link/src/__tests__/modelFavorites.test.ts(单文件 ~8ms,7 条):覆盖 MODEL_GROUP_FAVORITE_PROVIDER_ID 跨端收藏 wire 往返兼容。

读写与订阅开销核对(engineering-conventions.md §8):

  • 桌面 modelGroupFavorites.ts 订阅 modelFavorites(不新增轮询/定时器);已迁移账号每次通知仅做 1 次本地 localStorage.getItem 空读,零写盘与零网络往返;卸载时退订。
  • 手机端模型选择器沿用既有 useDeviceProviders / useHostModelGroupsPayload / usePluginEngines 打开即读、关闭即停的生命周期,不新增后台轮询。

手工验证

  • 环境:iOS 模拟器 Cindy 模型选择器演示(iPhone Air, iOS 27.3,com.xd.cindy,--mock),分支 feat/mobile-model-selector-parity,worktree /Users/dash/Code/Cindy/cindy/.cindy-worktrees/mobile-model-selector-parity,Metro 运行在 :8081。
  • 已验证路径(浅色 + 深色模式):
    • 会话页与新建任务页打开模型面板,切换「全部 / 智能路由 / Gemini / Anthropic / OpenAI / Cindy AI」来源格,确认选中态仅显示反色图标方块与下沿双层额度条、不出名字、不横向跳动。
    • 核对所有来源、子页签(含智能路由、厂商页签)与模型行图标与桌面版一致。
    • 打开模型行尾与底部输入框推理强度菜单,确认不再显示「· 推荐」;打开自定义路由行尾与输入框强度菜单,确认显示「跟随路由」与「· 路由默认」且不再出现「自定义」,切档即时写回。
    • 搜索框失焦、进「更多设置」、菜单改档后关闭再重开面板均无闪退;rebase 至最新 origin/main 后重启 App 验证正常。

未执行的验证

  • Android 模拟器未启动实机画面验收,相关视图与交互由 androidModelPickerParity.test.tsx 与 unifiedMobilePickerView.test.tsx 单测覆盖。
  • 未连接真实桌面端实测远端控制(由 --mock 协议对齐与单元测试覆盖)。
  • 最后一轮在模拟器拉取系统日志时遇到宿主机环境报错(xcrun: getpwuid_r did not find a match for uid 501),未能再次读取系统日志(此前多轮实测日志 0 错误,最终收起/重开验证无闪退)。

风险

风险分类

  • 无已知风险
  • SQLite / migration
  • system prompt
  • 协议兼容
  • 权限 / 安全 / 用户数据
  • 存量插件兼容(批准状态 / 指纹 / manifest 校验 / 安装布局 / 包格式)
  • 插件引擎(ACP)与插件模型影响面(新任务 / 模型选择器 / 权限 / 多端 / 引擎枚举分支)
  • 原生层 / fingerprint / OTA
  • 跨平台差异
  • 其他:

影响与回滚

  • 影响范围:移动端 iOS/Android 模型选择器、输入框模型胶囊、协作团队与自动化选模流程;桌面端自定义智能路由收藏存储读写(modelGroupFavorites.ts)。未触及移动端原生代码、依赖或 runtime fingerprint,支持热更发布。MODEL_GROUP_FAVORITE_PROVIDER_ID 复用既有 modelFavorites 通道与兼容 agent: 'cc',旧端忽略该条目不拒绝整表。
  • 回滚 / 降级方式:直接 revert 本 PR 即可完整回退;桌面端已迁移至 modelFavorites 的路由收藏在新旧格式间互不破坏,无数据迁移不可逆风险。

提交前检查

  • 已 review 完整 diff
  • 每个 commit 都带 DCO 签名(git commit -s,见 DCO)
  • UI 改动已在「UI 变化」注明引用的设计规范章节(不涉及 UI 则跳过)
  • 未提交凭证、令牌或授权文件
  • 已核对受影响的文档,行为变化涉及的旧结论已同步修订(不涉及则无需修改文档)
  • 已确认测试结果或说明未执行原因
  • 涉及数据读取、通知后刷新、界面频繁写入或常驻组件时,已在「怎么验证的」写明读写与生命周期影响
  • 如用户操作、界面入口或报错发生变化,已同步 apps/docs 或说明自动同步会从哪些来源更新(本次移动端交互重构未改动 apps/docs 文档,待合入后视需要补充面向用户的移动端说明)

Assisted-by: Cindy (https://cindy.app)


Note

Medium Risk
Touches cross-device favorite wire format, smart-route session binding/staging, and large mobile composer/picker surfaces; desktop migration is designed to be safe on write failure but still changes where route favorites are stored.

Overview
Mobile model selection is reworked to match desktop: a horizontal icon-only source rail with quota bars, in-list sub-tabs (including smart-routing tabs with Sparkles/branded marks), row-end effort/speed menus instead of separate settings chips, and a split model | effort composer capsule via ComposerModelEffortPill. Session and new-task flows gain pending smart-route display, per-task effort on custom routes (including unselected route rows), disconnected-source warnings, fork handoff model groups, and composer transitions that avoid animating while model sheets close.

Desktop custom route favorites no longer live only in per-account localStorage; they read/write the existing synced modelFavorites stream (providerId = model-group-favorite:), with one-time legacy migration, durable-read before deleting old keys, and tests for quota failures and favoritesOverride drafts.

Automation gets AutomationModelPickerSheet (follow default/task, smart routes, catalog device label). Visual mock implements bind/unbind, pending switch, and agent-switch intent parity for demos. i18n adds picker copy (warnings, favorites empty, follow route labels). readDurableModelFavorites supports desktop migration safety.

Reviewed by Cursor Bugbot for commit a17143a. Bugbot is set up for automated code reviews on this repo. Configure here.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
@dashhuang
dashhuang requested a review from a team as a code owner December 5, 2026 23:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T23:23:34.242070Z a17143a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@zqchris zqchris left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by Chris’s trusted-author rule for makecindy/cindy. This is an automated approval.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a17143a5c6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +3138 to +3141
const applied = await pluginEngineOptions.onSelect({
providerId: routedProviderId,
modelId: wireModelId,
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve host-routed identities through new-session creation

When a user selects a host-routed harness from the new-task picker, this passes an acp-plugin:…@provider identity and a concrete model into a consumer that cannot preserve them. In app/sessions/new.tsx, activePluginEngineRaw resolves the base engine and replaces models absent from its standalone catalog with default; pluginEnginePick then uses engine.providerId, dropping the @provider suffix. For a pure host-routed harness (models: []), selecting an xAI model therefore creates a standalone/default selection instead, losing the required proxy provider and concrete model. Update the new-session normalization and creation path to retain both before exposing this option.

Useful? React with 👍 / 👎.

providerId: value.providerId,
effort: value.effort || '',
fastMode: value.fast,
modelGroup: null,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Serialize route changes for bound automations

For an automation with targetSessionId, choosing a concrete model sets modelGroup: null here, but buildMobileScheduleInput returns from its bound-session branch before copying draft.modelGroup into the payload. The host's update path preserves an omitted route, so an existing smart route remains saved despite the picker showing the newly selected concrete model; the scheduler can consequently ignore that explicit model while the saved route exists. Selecting another smart route has the same serialization problem. Ensure the bound-session payload includes explicit route selections and clears.

Useful? React with 👍 / 👎.

@greptile-apps

greptile-apps Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Confidence Score: 3/5RetriggerView in Greptile

[Medium impact] The PR changes model selection across several mobile workflows and syncs route favorites with desktop.

暂不建议合并,需要先修复新任务插件来源丢失和绑定自动化漏存路由的问题。

Findings

  1. P1 新任务丢掉所选来源 ▶
  2. P1 自动化把路由存成模型 ▶
Fix with agent prompt
### Issue 1
apps/mobile/src/session/UnifiedModelPickerSheet.tsx:3138-3140
新建任务从「更多设置 → 引擎」选择宿主路由插件时,这里传出的 `providerId` 带有 `@<hostProviderId>`。但 `new.tsx` 随后通过 `findPluginEngine` 找回基础引擎,并用基础引擎的 `providerId` 构造提交参数,丢掉刚选的模型来源。对于 `models` 为空的纯宿主路由插件,具体模型还会被改成 `default`,无法按用户所选的组合运行。

请让新建任务链路保留完整的绑定来源和具体模型,再开放这个入口。

### Issue 2
apps/mobile/src/scheduler/AutomationModelPickerSheet.tsx:168-173
绑定已有任务的自动化也能选择这里的智能路由,但保存时 `buildMobileScheduleInput` 在 `targetSessionId` 分支提前返回,不会写出 `modelGroup`。只有解析出的具体模型、来源和强度被保存。执行端因此把它当作明确的模型选择,而不会进入「有路由时沿用绑定任务当前选择」的分支,可能把目标任务切回选路时的模型。

请在绑定任务场景隐藏路由入口,或先补齐该场景的路由保存契约,避免把路由悄悄保存成固定模型。

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

本次把手机端模型选择器与桌面端对齐,并加入自动化统一选模和跨端路由收藏。

  • Mobile model choices use source tabs, clearer rows, and inline setting menus.
  • Automation forms can choose a model, route, or plugin engine.
  • Custom route favorites sync between phones and desktop.
  • The demo host now reflects model and route changes in its sample sessions.
  • Composer layout animations pause while native sheets open or close.

Diagram

%%{init: {'theme': 'neutral', 'htmlLabels': false}}%%
flowchart TD
  A[手机统一模型选择器] --> B[选择宿主路由插件]
  B --> C[完整来源绑定与具体模型]
  C --> D[新建任务按基础引擎重建选择]
  D --> E[来源绑定丢失]
  A --> F[绑定任务的自动化选择路由]
  F --> G[草稿保存路由与具体模型]
  G --> H[绑定任务保存分支提前返回]
  H --> I[只保存具体模型]
Loading

Reviews (1) · Last reviewed commit: "feat(mobile): 模型选择器与桌面对齐(来源栏、图标、自定义路由强度、..." · Reviewed by Greptile

Comment on lines +3138 to +3140
const applied = await pluginEngineOptions.onSelect({
providerId: routedProviderId,
modelId: wireModelId,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 新任务丢掉所选来源

新建任务从「更多设置 → 引擎」选择宿主路由插件时,这里传出的 providerId 带有 @<hostProviderId>。但 new.tsx 随后通过 findPluginEngine 找回基础引擎,并用基础引擎的 providerId 构造提交参数,丢掉刚选的模型来源。对于 models 为空的纯宿主路由插件,具体模型还会被改成 default,无法按用户所选的组合运行。

请让新建任务链路保留完整的绑定来源和具体模型,再开放这个入口。

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile/src/session/UnifiedModelPickerSheet.tsx
Line: 3138-3140

Comment:
**新任务丢掉所选来源**

新建任务从「更多设置 → 引擎」选择宿主路由插件时,这里传出的 `providerId` 带有 `@<hostProviderId>`。但 `new.tsx` 随后通过 `findPluginEngine` 找回基础引擎,并用基础引擎的 `providerId` 构造提交参数,丢掉刚选的模型来源。对于 `models` 为空的纯宿主路由插件,具体模型还会被改成 `default`,无法按用户所选的组合运行。

请让新建任务链路保留完整的绑定来源和具体模型,再开放这个入口。

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Comment on lines +168 to +173
agentKind: mappedAgent,
model: mappedAgent === 'acp' ? (route.model || PLUGIN_ENGINE_DEFAULT_MODEL) : route.model,
providerId: route.providerId,
effort: route.effort ?? overrides?.effort ?? '',
fastMode: mappedAgent === 'acp' ? false : (route.fastMode ?? overrides?.fastMode ?? false),
modelGroup: id,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 自动化把路由存成模型

绑定已有任务的自动化也能选择这里的智能路由,但保存时 buildMobileScheduleInput 在 targetSessionId 分支提前返回,不会写出 modelGroup。只有解析出的具体模型、来源和强度被保存。执行端因此把它当作明确的模型选择,而不会进入「有路由时沿用绑定任务当前选择」的分支,可能把目标任务切回选路时的模型。

请在绑定任务场景隐藏路由入口,或先补齐该场景的路由保存契约,避免把路由悄悄保存成固定模型。

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/mobile/src/scheduler/AutomationModelPickerSheet.tsx
Line: 168-173

Comment:
**自动化把路由存成模型**

绑定已有任务的自动化也能选择这里的智能路由,但保存时 `buildMobileScheduleInput` 在 `targetSessionId` 分支提前返回,不会写出 `modelGroup`。只有解析出的具体模型、来源和强度被保存。执行端因此把它当作明确的模型选择,而不会进入「有路由时沿用绑定任务当前选择」的分支,可能把目标任务切回选路时的模型。

请在绑定任务场景隐藏路由入口,或先补齐该场景的路由保存契约,避免把路由悄悄保存成固定模型。

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a17143a. Configure here.

const saved = await runControlAction(
async () => {
const staged = await stageHostSessionModelGroup(maker, sessionId, activeSessionModelGroupBinding.selection.id, { location });
if (!staged) throw new Error('STAGE_MODEL_GROUP_FAILED');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow route clears staged speed

Medium Severity

Choosing "follow route" on a pending custom route restages the binding with only a location. stageHostSessionModelGroup replaces deferSelection, so a fast mode already staged for that switch is dropped, and an SSH task also loses sshHostId.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a17143a. Configure here.

modelGroup: id,
},
{ routeName, modelName: route.model },
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automation route shows model id

Medium Severity

After a smart route resolves, the automation form stores route.model as the display name. automationDraftModelLabel prefers that override, so the row shows the wire model id instead of the resolved modelName.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a17143a. Configure here.

}
const chosenEffort = (deferred && efforts.includes(deferred) ? deferred : null)
?? (defaultEffort && efforts.includes(defaultEffort) ? defaultEffort : null)
?? (efforts[0] ?? null);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending route offers unsupported efforts

Medium Severity

For a pending merged source, a stored deferredEffort replaces the model's effort list with all five levels whenever that model advertises fewer than two. The composer menu can then apply an effort the model does not support.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a17143a. Configure here.

This branch has not been deployed

No deployments
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.

3 participants