Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

Merge remote-tracking branch 'origin/master' into fix/opencode-unconfigured-card-state

cyha662e472b3ac
diff --cc docs/plans/model-hub-ui-spec.md
index 6cf3379c3,0d76c7431..6aa0fb560
--- a/docs/plans/model-hub-ui-spec.md
+++ b/docs/plans/model-hub-ui-spec.md
@@@ -1480,19 -1477,9 +1481,19 @@@ unable to outlive its surface, which i
| `gateway.supply.unread` `[derived]` | 后端供给情况没读到 · 网关本身正常 | Could not read this backend's supply · the gateway itself is fine |
| `gateway.fail.switchToDirect` `[derived]` | 没能切回直连 | The switch back to direct did not go through |
| `gateway.retry` `[derived]` | 重试 | Retry |
+| `gateway.group.emptySelection` `[derived]` | 尚未选择模型 | No models selected |
| `gateway.group.emptyModels` `[derived]` | 这个后端没有可用型号 | This backend has no models |
+| `gateway.menu.title` `[derived]` | OpenCode 模型菜单 | OpenCode model menu |
+| `gateway.menu.search` `[derived]` | 搜索模型或供应商 | Search models or sources |
+| `gateway.menu.selected` `[derived]` | 已选 {{selected}} / {{total}} | {{selected}} of {{total}} selected |
+| `gateway.menu.empty` `[derived]` | 没有可供 OpenCode 选择的模型 | No eligible source models are available |
+| `gateway.menu.noMatch` `[derived]` | 没有匹配的模型 | No models match this search |
+| `gateway.menu.save` `[derived]` | 保存选择 | Save selection |
+| `gateway.menu.saving` `[derived]` | 正在保存… | Saving… |
+| `gateway.menu.cancel` `[derived]` | 取消 | Cancel |
+| `gateway.menu.saveFailed` `[derived]` | 模型选择未保存,请重试 | The model selection was not saved |
- | `gateway.row.current` | 来自 {{source}} | From: {{source}} |
- | `gateway.row.currentTakeover` | 来自 {{source}}(接管) | From: {{source}} (takeover) |
+ | `gateway.row.current` | {{source}} → {{model}} | {{source}} → {{model}} |
+ | `gateway.row.currentTakeover` | {{source}} → {{model}}(已自动切换) | {{source}} → {{model}} (Taken over) |
| `models.launch.route_unconfigured` `[contract]` | 模型 {{model}} 尚未配置路由。请前往 Models 配置。 | Model {{model}} has no configured route. Open Models to configure one. |
| `gateway.moreModels_one` | 还有 {{count}} 个型号 | {{count}} more model |
| `gateway.moreModels_other` | 还有 {{count}} 个型号 | {{count}} more models |
diff --cc ui/src/components/settings/models/AgentCard.tsx
index 3b257fbc3,35345883c..e99b21a1d
--- a/ui/src/components/settings/models/AgentCard.tsx
+++ b/ui/src/components/settings/models/AgentCard.tsx
@@@ -51,13 -51,18 +51,21 @@@ const ModelRow: React.FC<
? t('settings.models.legend.native') as string
: t('settings.models.gateway.group.mode.gateway') as string
: '—';
+ const currentSource = resolved ? sourceName(sources, current.source_id) : '';
const currentCopy = supplyState === 'paused'
? t('settings.models.legend.unavailable') as string
+ : supplyState === 'unconfigured'
+ ? t('settings.models.gateway.group.status.unconfigured') as string
: resolved
- ? t(takeover ? 'settings.models.gateway.row.currentTakeover' : 'settings.models.gateway.row.current', { source: sourceName(sources, current.source_id) }) as string
+ ? t(takeover ? 'settings.models.gateway.row.currentTakeover' : 'settings.models.gateway.row.current', {
+ source: currentSource,
+ model: current.model_id,
+ }) as string
: '—';
- const openRouteLabel = resolved && supplyState !== 'paused'
++ const hasCurrentMapping = resolved && supplyState === 'available';
++ const openRouteLabel = hasCurrentMapping
+ ? t('settings.models.routeDialog.openWithMapping', { model: modelId, mapping: currentCopy }) as string
+ : t('settings.models.routeDialog.open', { model: modelId }) as string;
return (
<button
type="button"
@@@ -68,8 -73,21 +76,21 @@@
className="model-hub-model-row flex h-9 w-full min-w-0 items-center gap-2.5 overflow-hidden rounded-md border border-border px-3 text-left"
>
<span className="flex min-w-0 flex-1 items-center justify-between gap-2.5">
- <span className="flex min-w-0 flex-1 items-center gap-[7px]"><span className="min-w-0 flex-1 truncate font-mono text-[12px] font-medium text-foreground" title={modelId}>{modelId}</span><span className="model-hub-pill model-hub-model-mode-chip border border-border text-muted">{mode}</span></span>
- <span className={cn('model-hub-model-current min-w-0 flex-1 truncate text-right text-[10.5px]', supplyState === 'paused' ? 'model-hub-ink-gold' : takeover && 'model-hub-model-current--takeover')} title={currentCopy}>{currentCopy}</span>
+ <span className="min-w-0 flex-1 truncate font-mono text-[12px] font-medium text-foreground" title={modelId}>{modelId}</span>
+ <span className="flex min-w-0 flex-1 items-center justify-end gap-[7px]">
+ <span className="model-hub-pill model-hub-model-mode-chip shrink-0 border border-border text-muted">{mode}</span>
- {resolved && supplyState !== 'paused' ? (
++ {hasCurrentMapping ? (
+ <span
+ className={cn('model-hub-model-current min-w-0 flex-1 truncate text-right text-[10.5px]', takeover && 'model-hub-model-current--takeover')}
+ title={currentCopy}
+ data-route-mapping
+ >
+ {currentCopy}
+ </span>
+ ) : (
+ <span className={cn('model-hub-model-current min-w-0 flex-1 truncate text-right text-[10.5px]', supplyState === 'paused' && 'model-hub-ink-gold')} title={currentCopy}>{currentCopy}</span>
+ )}
+ </span>
</span>
<ChevronRight className="model-hub-overview-chevron size-[15px] shrink-0" aria-hidden="true" />
</button>