From 377a23bdc97b716405b7395e14b48d515d318057 Mon Sep 17 00:00:00 2001 From: "Andrew (agent)" Date: Fri, 13 Nov 2026 18:04:10 -0500 Subject: [PATCH 1/7] feat(gui): call the subagent roster "Pinned in picker" instead of "Featured" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename the visible label of the five-model roster (config subagentModels) in all 11 locales: zh 选择器置顶, zh-TW 選擇器置頂, en "Pinned in picker", others translate "pinned to the top of the model picker". The add/remove/full labels, the picker order editor's fixed-row tag, and the hints that named the old concept follow. i18n keys, config keys and API shapes are unchanged. --- gui/src/i18n/de.ts | 12 ++++++------ gui/src/i18n/en.ts | 24 ++++++++++++------------ gui/src/i18n/fr.ts | 12 ++++++------ gui/src/i18n/ja.ts | 12 ++++++------ gui/src/i18n/ko.ts | 12 ++++++------ gui/src/i18n/pt.ts | 12 ++++++------ gui/src/i18n/ru.ts | 12 ++++++------ gui/src/i18n/tr.ts | 12 ++++++------ gui/src/i18n/vi.ts | 12 ++++++------ gui/src/i18n/zh-TW.ts | 24 ++++++++++++------------ gui/src/i18n/zh.ts | 24 ++++++++++++------------ gui/tests/subagents-busy-race.test.tsx | 2 +- gui/tests/subagents-classic.test.tsx | 4 ++-- gui/tests/subagents-fallback.test.tsx | 4 ++-- 14 files changed, 89 insertions(+), 89 deletions(-) diff --git a/gui/src/i18n/de.ts b/gui/src/i18n/de.ts index 234541ce8ca..e3b3dac806c 100644 --- a/gui/src/i18n/de.ts +++ b/gui/src/i18n/de.ts @@ -1137,7 +1137,7 @@ export const de: Record = { "sub.forceSettingsUnknown": "settings.json konnte nicht geprüft werden. Ob Einstellungen diese Vorgabe überschreiben, ist unbekannt.", "sub.forceSaved": "Gespeichert. Wird beim nächsten Start mit Routing über ocx claude wirksam.", "sub.subtitle": "Codex {cmd} bewirbt nur die ersten 5 Modelle (nach Priorität) als Overrides. Wähle hier bis zu 5 — natives gpt oder geroutet — und opencodex setzt ihre Katalog-Priorität, sodass genau diese führen. Jedes andere Modell bleibt über seinen exakten Namen aufrufbar; dies steuert nur die Anzeige.", - "sub.featured": "Empfohlen", + "sub.featured": "In der Auswahl angeheftet", "sub.advanced": "Erweitert", "sub.orderHintAria": "Wie diese Reihenfolge verwendet wird", "sub.orderHint": "Die hier gewählte und angezeigte Reihenfolge bestimmt die Plätze 1–5 oben in der Codex-Modellauswahl und die Standard-Modellkandidaten für {cmd}. Wenn weniger als 5 ausgewählte Modelle in der Modellauswahl sichtbar sind, werden die restlichen Plätze nach Katalogpriorität angeboten; mit 5 sichtbaren ausgewählten Modellen ist die Liste gefüllt, sofern keine benutzerdefinierte Reihenfolge der Modellauswahl die Katalogpriorität ändert.", @@ -1153,13 +1153,13 @@ export const de: Record = { "sub.moveUp": "{m} nach oben", "sub.moveDown": "{m} nach unten", "sub.removeAria": "{m} entfernen", - "sub.workspace.addToFeatured": "{m} zu Hervorgehobenen hinzufügen", + "sub.workspace.addToFeatured": "{m} oben in der Modellauswahl anheften", "sub.workspace.allModels": "Alle Modelle", - "sub.workspace.featuredFull": "Hervorgehobene Liste ist voll (max. 5)", + "sub.workspace.featuredFull": "Die angeheftete Liste ist voll (max. 5)", "sub.workspace.mainAria": "Subagent-Modelldetails", - "sub.workspace.notFeatured": "Nicht hervorgehoben", + "sub.workspace.notFeatured": "Nicht angeheftet", "sub.workspace.priority": "Priorität", - "sub.workspace.removeFromFeatured": "{m} aus Hervorgehobenen entfernen", + "sub.workspace.removeFromFeatured": "{m} aus der Modellauswahl lösen", "sub.workspace.selectModel": "Modell auswählen", "sub.workspace.selectModelDesc": "Wählen Sie ein Modell aus der Liste, um Details anzuzeigen und es für spawn_agent hervorzuheben.", "sub.workspace.selector": "Öffentlicher Selektor", @@ -4081,7 +4081,7 @@ export const de: Record = { "models.pickerOrder.requestFailed": "Anfrage fehlgeschlagen. Der Entwurf bleibt erhalten; erneut versuchen oder neu laden.", "models.pickerOrder.empty": "Keine Routingmodelle verfügbar.", "models.pickerOrder.dragModel": "{model} ziehen", - "models.pickerOrder.featured": "Hervorgehoben", + "models.pickerOrder.featured": "Angeheftet", "models.pickerOrder.upModel": "{model} nach oben verschieben", "models.pickerOrder.downModel": "{model} nach unten verschieben", "models.pickerOrder.position": "{model}: Position {position} von {total}", diff --git a/gui/src/i18n/en.ts b/gui/src/i18n/en.ts index 76381be2404..e5b74bf22ae 100644 --- a/gui/src/i18n/en.ts +++ b/gui/src/i18n/en.ts @@ -255,7 +255,7 @@ export const en = { "models.pickerOrder.usageFailed": "Could not load model usage.", "models.pickerOrder.loadFailed": "Could not load picker settings.", "models.pickerOrder.retry": "Retry", - "models.pickerOrder.hint": "Saves routed order for Codex and Claude discovery. Featured/native bands stay in place; Most used is a snapshot. Native advertised choices may change.", + "models.pickerOrder.hint": "Saves routed order for Codex and Claude discovery. Pinned/native bands stay in place; Most used is a snapshot. Native advertised choices may change.", "models.fastRows.title": "Show Fast model rows", "models.fastRows.desc": "Adds eligible “Model Fast” selectors to external client model pickers. This does not change reasoning-effort options on the base model. Saving refreshes connected integrations when possible; otherwise refresh the integration or client catalog.", "models.fastRows.refreshHint": "Saved. Catalog refresh is pending.", @@ -1050,7 +1050,7 @@ export const en = { "models.setAllHint": "Turn on the {value} default window for every routed provider. Relays that omit context_window / context_length get this as the actual Codex window. Use Custom windows on a provider row to set one model by hand. Native providers are unaffected.", "models.collapseAll": "Collapse all", "models.expandAll": "Expand all", - "models.orderHint": "Default order follows featured selections and catalog priority, with provider/model ordering for tied routed rows. A saved picker order can override display order; visibility switches filter which rows appear. A client can keep an older catalog until it fetches again.", + "models.orderHint": "Default order follows pinned models and catalog priority, with provider/model ordering for tied routed rows. A saved picker order can override display order; visibility switches filter which rows appear. A client can keep an older catalog until it fetches again.", "models.settingsPanel.title": "Model settings", "models.settingsPanel.off": "off", "models.settingsPanel.attention": "Needs attention", @@ -1169,17 +1169,17 @@ export const en = { "sub.forceSettingsUnknown": "Could not inspect settings.json. Settings override status is unknown.", "sub.forceSaved": "Saved. Takes effect on the next routed ocx claude launch.", "sub.subtitle": "Codex's {cmd} advertises only the first 5 models (by priority) as overrides. Pick up to 5 here — native gpt or routed — and opencodex sets their catalog priority so exactly these lead. Any other model is still callable by its exact name; this only controls what's shown.", - "sub.featured": "Featured", + "sub.featured": "Pinned in picker", "sub.advanced": "Advanced", "sub.orderHintAria": "How this order is used", - "sub.orderHint": "The order shown here sets positions 1–5 at the top of the Codex model picker and the default model candidates for {cmd}. When fewer than 5 featured models are visible in the picker, remaining slots are advertised by catalog priority; 5 visible featured models fill the list unless a custom model picker order changes catalog priority.", + "sub.orderHint": "The order shown here sets positions 1–5 at the top of the Codex model picker and the default model candidates for {cmd}. When fewer than 5 pinned models are visible in the picker, remaining slots are advertised by catalog priority; 5 visible pinned models fill the list unless a custom model picker order changes catalog priority.", "sub.noneSelected": "None selected — pick from the list below.", "sub.models": "Models", "sub.search": "Search models (native gpt + routed)…", "sub.settings": "Settings", "sub.sections": "Subagent sections", "sub.delegation.model": "Model to call first", - "sub.delegation.modelHint": "The model Codex reaches for first when it hands off work. Featured above is the list it may call; this is the one it calls first.", + "sub.delegation.modelHint": "The model Codex reaches for first when it hands off work. The models pinned to the top of the model picker are the ones it may call; this is the one it calls first.", "sub.suggest.button": "Suggest", "sub.suggest.label": "Delegated work", "sub.suggest.placeholder": "What does Codex usually hand off? e.g. read-only searches across the repo, or multi-module refactors", @@ -1197,11 +1197,11 @@ export const en = { "sub.moveUp": "Move {m} up", "sub.moveDown": "Move {m} down", "sub.removeAria": "Remove {m}", - "sub.workspace.addToFeatured": "Add {m} to featured", + "sub.workspace.addToFeatured": "Pin {m} to the top of the model picker", "sub.workspace.allModels": "All models", - "sub.workspace.featuredFull": "Featured list is full (max 5)", + "sub.workspace.featuredFull": "The pinned list is full (max 5)", "sub.workspace.mainAria": "Subagent model details", - "sub.workspace.notFeatured": "Not featured", + "sub.workspace.notFeatured": "Not pinned", "sub.workspace.priority": "Priority", "sub.ultraMode": "Always proactive delegation", "sub.ultraModeHint": "Enable the Proactive multi-agent delegation policy for every model and reasoning effort (does not change reasoning effort itself). Writes features.multi_agent_v2.multi_agent_mode_hint_text in config.toml.", @@ -1211,7 +1211,7 @@ export const en = { "sub.ultraModeLoadFail": "Failed to load proactive delegation settings — is the proxy running?", "sub.ultraModeSaveFail": "Failed to save proactive delegation settings", "sub.ultraModeSaved": "Proactive delegation saved. Applies to new Codex sessions.", - "sub.workspace.removeFromFeatured": "Remove {m} from featured", + "sub.workspace.removeFromFeatured": "Unpin {m} from the model picker", "sub.workspace.selectModel": "Select a model", "sub.workspace.selectModelDesc": "Pick a model from the list to see details and feature it for spawn_agent.", "sub.workspace.selector": "Public selector", @@ -4107,15 +4107,15 @@ export const en = { "usage.range.invalid": "Enter valid local dates and times, on or after 1970-01-01 UTC.", "usage.range.reversed": "The end must be at or after the start.", "usage.range.applied": "Selected interval: {start} – {end} (both inclusive).", - "models.pickerOrder.editorHint": "Reorder routed models, then save your draft. Featured rows are fixed; native models are not shown.", + "models.pickerOrder.editorHint": "Reorder routed models, then save your draft. Pinned rows are fixed; native models are not shown.", "models.pickerOrder.nativeLocked": "This saved order includes native models. Apply a routed preset or Default before editing Custom.", - "models.pickerOrder.unknownChosen": "Featured choices are unknown. Reload before editing.", + "models.pickerOrder.unknownChosen": "Pinned models are unknown. Reload before editing.", "models.pickerOrder.changed": "Picker settings changed. Your draft is kept; reload to discard it and use current settings.", "models.pickerOrder.savedReload": "Order saved. Reload current settings before editing again.", "models.pickerOrder.requestFailed": "Request failed. Your draft is kept; retry or reload.", "models.pickerOrder.empty": "No routed models are available.", "models.pickerOrder.dragModel": "Drag {model}", - "models.pickerOrder.featured": "Featured", + "models.pickerOrder.featured": "Pinned", "models.pickerOrder.upModel": "Move {model} up", "models.pickerOrder.downModel": "Move {model} down", "models.pickerOrder.position": "{model}: position {position} of {total}", diff --git a/gui/src/i18n/fr.ts b/gui/src/i18n/fr.ts index f0314b0c16e..1c37454b56e 100644 --- a/gui/src/i18n/fr.ts +++ b/gui/src/i18n/fr.ts @@ -1152,7 +1152,7 @@ export const fr: Record = { "sub.forceSettingsUnknown": "Impossible d’examiner settings.json. On ne sait pas si ses paramètres remplacent ce réglage.", "sub.forceSaved": "Enregistré. Prendra effet au prochain lancement avec routage via ocx claude.", "sub.subtitle": "La commande {cmd} de Codex ne présente que les 5 premiers modèles (par priorité) comme remplacements. Choisissez-en jusqu’à 5 ici — natifs gpt ou routés — et opencodex définit leur priorité dans le catalogue pour qu’ils apparaissent en tête. Tout autre modèle reste accessible par son nom exact ; ceci contrôle uniquement ce qui est affiché.", - "sub.featured": "À la une", + "sub.featured": "Épinglés dans le sélecteur", "sub.advanced": "Avancé", "sub.orderHintAria": "Comment cet ordre est utilisé", "sub.orderHint": "L’ordre affiché ici détermine les positions 1 à 5 en haut du sélecteur de modèles Codex et les modèles candidats par défaut pour {cmd}. Si moins de 5 modèles mis en avant sont visibles dans le sélecteur, les emplacements restants sont proposés selon la priorité du catalogue ; 5 modèles mis en avant visibles remplissent la liste, sauf si un ordre personnalisé du sélecteur de modèles modifie la priorité du catalogue.", @@ -1180,11 +1180,11 @@ export const fr: Record = { "sub.moveUp": "Monter {m}", "sub.moveDown": "Descendre {m}", "sub.removeAria": "Retirer {m}", - "sub.workspace.addToFeatured": "Ajouter {m} à la sélection À la une", + "sub.workspace.addToFeatured": "Épingler {m} en haut du sélecteur de modèle", "sub.workspace.allModels": "Tous les modèles", - "sub.workspace.featuredFull": "La liste À la une est complète (5 maximum)", + "sub.workspace.featuredFull": "La liste épinglée est complète (5 maximum)", "sub.workspace.mainAria": "Détails du modèle de sous-agent", - "sub.workspace.notFeatured": "Non mis à la une", + "sub.workspace.notFeatured": "Non épinglé", "sub.workspace.priority": "Priorité", "sub.ultraMode": "Délégation toujours proactive", "sub.ultraModeHint": "Activer la politique de délégation multi-agent proactive pour tous les modèles et niveaux de raisonnement (sans modifier le niveau de raisonnement lui-même). Écrit features.multi_agent_v2.multi_agent_mode_hint_text dans config.toml.", @@ -1194,7 +1194,7 @@ export const fr: Record = { "sub.ultraModeLoadFail": "Échec du chargement des paramètres de délégation proactive — le proxy est-il en cours d’exécution ?", "sub.ultraModeSaveFail": "Échec de l’enregistrement des paramètres de délégation proactive", "sub.ultraModeSaved": "Délégation proactive enregistrée. S’applique aux nouvelles sessions Codex.", - "sub.workspace.removeFromFeatured": "Retirer {m} de la sélection À la une", + "sub.workspace.removeFromFeatured": "Désépingler {m} du sélecteur de modèle", "sub.workspace.selectModel": "Sélectionner un modèle", "sub.workspace.selectModelDesc": "Choisissez un modèle dans la liste pour afficher ses détails et le mettre à la une pour spawn_agent.", "sub.workspace.selector": "Sélecteur public", @@ -4070,7 +4070,7 @@ export const fr: Record = { "models.pickerOrder.requestFailed": "Échec de la requête. Le brouillon est conservé ; réessayez ou rechargez.", "models.pickerOrder.empty": "Aucun modèle routé disponible.", "models.pickerOrder.dragModel": "Faire glisser {model}", - "models.pickerOrder.featured": "Mis en avant", + "models.pickerOrder.featured": "Épinglé", "models.pickerOrder.upModel": "Monter {model}", "models.pickerOrder.downModel": "Descendre {model}", "models.pickerOrder.position": "{model} : position {position} sur {total}", diff --git a/gui/src/i18n/ja.ts b/gui/src/i18n/ja.ts index b71b131dd49..53d6c9b38b4 100644 --- a/gui/src/i18n/ja.ts +++ b/gui/src/i18n/ja.ts @@ -1076,7 +1076,7 @@ export const ja: Record = { "sub.forceSettingsUnknown": "settings.json を確認できませんでした。設定による上書きの有無は不明です。", "sub.forceSaved": "保存しました。次回ルーティング経由で ocx claude を起動したときに反映されます。", "sub.subtitle": "Codex の {cmd} は最初の 5 モデル(優先度順)のみをオーバーライドとして通知します。ここで最大 5 つを選んでください — ネイティブ gpt またはルーティング — opencodex がカタログ優先度を設定し、これらが先頭に来るようにします。他のモデルも正確な名前で呼び出し可能です; これは表示のみを制御します。", - "sub.featured": "おすすめ", + "sub.featured": "ピッカー上部に固定", "sub.advanced": "詳細設定", "sub.orderHintAria": "この順序の使われ方", "sub.orderHint": "ここでの表示順が Codex モデルピッカーの上位 1〜5 番目の位置と {cmd} のデフォルトモデル候補を決定します。モデルピッカーに表示される注目モデルが 5 つ未満の場合、残りの枠にはカタログの優先度順にモデルが提示されます。表示される注目モデルが 5 つあればリストが埋まりますが、モデルピッカーのカスタム順序でカタログの優先度が変わる場合は例外です。", @@ -1092,13 +1092,13 @@ export const ja: Record = { "sub.moveUp": "{m} を上へ移動", "sub.moveDown": "{m} を下へ移動", "sub.removeAria": "{m} を削除", - "sub.workspace.addToFeatured": "{m} をおすすめに追加", + "sub.workspace.addToFeatured": "{m} をモデルピッカーの上部に固定", "sub.workspace.allModels": "すべてのモデル", - "sub.workspace.featuredFull": "おすすめリストがいっぱいです(最大 5)", + "sub.workspace.featuredFull": "固定リストがいっぱいです(最大 5)", "sub.workspace.mainAria": "サブエージェントのモデル詳細", - "sub.workspace.notFeatured": "おすすめ未設定", + "sub.workspace.notFeatured": "未固定", "sub.workspace.priority": "優先度", - "sub.workspace.removeFromFeatured": "{m} をおすすめから削除", + "sub.workspace.removeFromFeatured": "{m} のモデルピッカー固定を解除", "sub.workspace.selectModel": "モデルを選択", "sub.workspace.selectModelDesc": "一覧からモデルを選んで詳細を確認し、spawn_agent のおすすめに設定します。", "sub.workspace.selector": "公開セレクター", @@ -4103,7 +4103,7 @@ export const ja: Record = { "models.pickerOrder.requestFailed": "リクエストに失敗しました。下書きは保持されます。再試行するか再読み込みしてください。", "models.pickerOrder.empty": "利用可能なルーティングモデルはありません。", "models.pickerOrder.dragModel": "{model} をドラッグ", - "models.pickerOrder.featured": "おすすめ", + "models.pickerOrder.featured": "固定", "models.pickerOrder.upModel": "{model} を上へ移動", "models.pickerOrder.downModel": "{model} を下へ移動", "models.pickerOrder.position": "{model}: {total} 件中 {position} 番目", diff --git a/gui/src/i18n/ko.ts b/gui/src/i18n/ko.ts index 399a227c363..0bac19623b4 100644 --- a/gui/src/i18n/ko.ts +++ b/gui/src/i18n/ko.ts @@ -1150,7 +1150,7 @@ export const ko: Record = { "sub.forceSettingsUnknown": "settings.json을 확인할 수 없어 설정 덮어쓰기 여부를 알 수 없습니다.", "sub.forceSaved": "저장했습니다. 다음번에 라우팅을 통해 ocx claude를 실행할 때 적용됩니다.", "sub.subtitle": "Codex의 {cmd} 는 우선순위 상위 5개 모델만 오버라이드로 노출합니다. 여기서 최대 5개를 선택하면 — 네이티브 gpt 또는 라우팅된 모델 — opencodex가 카탈로그 우선순위를 설정해 정확히 이들이 앞에 옵니다. 다른 모델도 정확한 이름으로 호출할 수 있으며, 이 설정은 표시 항목만 제어합니다.", - "sub.featured": "추천", + "sub.featured": "선택기 상단 고정", "sub.advanced": "고급", "sub.orderHintAria": "이 순서가 쓰이는 방식", "sub.orderHint": "여기서 선택해 표시된 순서가 Codex 모델 피커 최상단 1~5위와 {cmd}의 기본 모델 후보를 결정합니다. 모델 피커에 표시되는 추천 모델이 5개 미만이면 남은 슬롯은 카탈로그 우선순위에 따라 노출됩니다. 표시되는 추천 모델이 5개이면 목록이 채워지지만, 사용자 지정 모델 피커 순서가 카탈로그 우선순위를 바꾸는 경우는 예외입니다.", @@ -1178,13 +1178,13 @@ export const ko: Record = { "sub.moveUp": "{m} 위로 이동", "sub.moveDown": "{m} 아래로 이동", "sub.removeAria": "{m} 삭제", - "sub.workspace.addToFeatured": "{m}을(를) 추천에 추가", + "sub.workspace.addToFeatured": "{m}을(를) 모델 선택기 상단에 고정", "sub.workspace.allModels": "모든 모델", - "sub.workspace.featuredFull": "추천 목록이 가득 찼습니다 (최대 5개)", + "sub.workspace.featuredFull": "고정 목록이 가득 찼습니다 (최대 5개)", "sub.workspace.mainAria": "서브에이전트 모델 세부 정보", - "sub.workspace.notFeatured": "추천되지 않음", + "sub.workspace.notFeatured": "고정되지 않음", "sub.workspace.priority": "우선순위", - "sub.workspace.removeFromFeatured": "{m}을(를) 추천에서 제거", + "sub.workspace.removeFromFeatured": "{m}을(를) 모델 선택기 고정에서 해제", "sub.workspace.selectModel": "모델 선택", "sub.workspace.selectModelDesc": "목록에서 모델을 선택하여 세부 정보를 확인하고 spawn_agent에 추천하세요.", "sub.workspace.selector": "공개 셀렉터", @@ -4103,7 +4103,7 @@ export const ko: Record = { "models.pickerOrder.requestFailed": "요청에 실패했습니다. 초안은 유지됩니다. 재시도하거나 다시 불러오세요.", "models.pickerOrder.empty": "사용 가능한 라우팅 모델이 없습니다.", "models.pickerOrder.dragModel": "{model} 끌어서 이동", - "models.pickerOrder.featured": "추천 모델", + "models.pickerOrder.featured": "고정됨", "models.pickerOrder.upModel": "{model} 위로 이동", "models.pickerOrder.downModel": "{model} 아래로 이동", "models.pickerOrder.position": "{model}: {total}개 중 {position}번째", diff --git a/gui/src/i18n/pt.ts b/gui/src/i18n/pt.ts index 1b5c4960b76..2d7d106c3da 100644 --- a/gui/src/i18n/pt.ts +++ b/gui/src/i18n/pt.ts @@ -1166,7 +1166,7 @@ export const pt: Record = { "sub.forceSettingsUnknown": "Não foi possível inspecionar settings.json. Não se sabe se suas configurações sobrescrevem esta opção.", "sub.forceSaved": "Salvo. Entra em vigor na próxima execução com roteamento via ocx claude.", "sub.subtitle": "O {cmd} do Codex anuncia apenas os 5 primeiros modelos (por prioridade) como substituições. Escolha até 5 aqui — gpt nativo ou roteado — e o opencodex define a prioridade deles no catálogo para que exatamente esses fiquem à frente. Qualquer outro modelo continua acessível pelo nome exato; isto controla apenas o que é exibido.", - "sub.featured": "Em destaque", + "sub.featured": "Fixados no seletor", "sub.advanced": "Avançado", "sub.orderHintAria": "Como esta ordem é usada", "sub.orderHint": "A ordem exibida aqui define as posições 1 a 5 no topo do seletor de modelos do Codex e os modelos padrão candidatos para {cmd}. Quando menos de 5 modelos destacados estão visíveis no seletor, os slots restantes são oferecidos por prioridade do catálogo; 5 modelos destacados visíveis preenchem a lista, a menos que uma ordem personalizada do seletor de modelos altere a prioridade do catálogo.", @@ -1194,11 +1194,11 @@ export const pt: Record = { "sub.moveUp": "Mover {m} para cima", "sub.moveDown": "Mover {m} para baixo", "sub.removeAria": "Remover {m}", - "sub.workspace.addToFeatured": "Adicionar {m} aos destaques", + "sub.workspace.addToFeatured": "Fixar {m} no topo do seletor de modelos", "sub.workspace.allModels": "Todos os modelos", - "sub.workspace.featuredFull": "A lista de destaques está cheia (máx. 5)", + "sub.workspace.featuredFull": "A lista de fixados está cheia (máx. 5)", "sub.workspace.mainAria": "Detalhes do modelo de subagente", - "sub.workspace.notFeatured": "Fora dos destaques", + "sub.workspace.notFeatured": "Não fixado", "sub.workspace.priority": "Prioridade", "sub.ultraMode": "Delegação sempre proativa", "sub.ultraModeHint": "Ativa a política de delegação multiagente proativa para todos os modelos e esforços de raciocínio (não altera o esforço de raciocínio em si). Grava features.multi_agent_v2.multi_agent_mode_hint_text no config.toml.", @@ -1208,7 +1208,7 @@ export const pt: Record = { "sub.ultraModeLoadFail": "Falha ao carregar as configurações de delegação proativa — o proxy está em execução?", "sub.ultraModeSaveFail": "Falha ao salvar as configurações de delegação proativa", "sub.ultraModeSaved": "Delegação proativa salva. Vale para novas sessões do Codex.", - "sub.workspace.removeFromFeatured": "Remover {m} dos destaques", + "sub.workspace.removeFromFeatured": "Desafixar {m} do seletor de modelos", "sub.workspace.selectModel": "Selecione um modelo", "sub.workspace.selectModelDesc": "Escolha um modelo na lista para ver os detalhes e colocá-lo em destaque para o spawn_agent.", "sub.workspace.selector": "Seletor público", @@ -4076,7 +4076,7 @@ export const pt: Record = { "models.pickerOrder.requestFailed": "A requisição falhou. Seu rascunho foi mantido; tente novamente ou recarregue.", "models.pickerOrder.empty": "Nenhum modelo roteado disponível.", "models.pickerOrder.dragModel": "Arrastar {model}", - "models.pickerOrder.featured": "Em destaque", + "models.pickerOrder.featured": "Fixado", "models.pickerOrder.upModel": "Mover {model} para cima", "models.pickerOrder.downModel": "Mover {model} para baixo", "models.pickerOrder.position": "{model}: posição {position} de {total}", diff --git a/gui/src/i18n/ru.ts b/gui/src/i18n/ru.ts index 2771adadf00..58b4f998952 100644 --- a/gui/src/i18n/ru.ts +++ b/gui/src/i18n/ru.ts @@ -1152,7 +1152,7 @@ export const ru: Record = { "sub.forceSettingsUnknown": "Не удалось проверить settings.json. Неизвестно, переопределяют ли его настройки этот параметр.", "sub.forceSaved": "Сохранено. Вступит в силу при следующем запуске с маршрутизацией через ocx claude.", "sub.subtitle": "{cmd} в Codex объявляет как переопределения только первые 5 моделей (по приоритету). Выберите здесь до 5 моделей — нативные gpt или маршрутизируемые — и opencodex задаст им приоритет в каталоге так, чтобы именно они шли первыми. Любую другую модель по-прежнему можно вызвать по её точному имени; эта настройка управляет только тем, что отображается.", - "sub.featured": "Избранные", + "sub.featured": "Закреплены в выборе модели", "sub.advanced": "Дополнительно", "sub.orderHintAria": "Как используется этот порядок", "sub.orderHint": "Показанный здесь порядок задаёт позиции 1–5 в верхней части селектора моделей Codex и кандидатов в модели по умолчанию для {cmd}. Если в селекторе видно менее 5 избранных моделей, на оставшихся местах предлагаются модели по приоритету каталога; 5 видимых избранных моделей заполняют список, если только пользовательский порядок в селекторе моделей не меняет приоритет каталога.", @@ -1168,13 +1168,13 @@ export const ru: Record = { "sub.moveUp": "Переместить {m} вверх", "sub.moveDown": "Переместить {m} вниз", "sub.removeAria": "Убрать {m}", - "sub.workspace.addToFeatured": "Добавить {m} в избранные", + "sub.workspace.addToFeatured": "Закрепить {m} вверху выбора модели", "sub.workspace.allModels": "Все модели", - "sub.workspace.featuredFull": "Список избранных заполнен (макс. 5)", + "sub.workspace.featuredFull": "Список закреплённых заполнен (макс. 5)", "sub.workspace.mainAria": "Сведения о модели субагента", - "sub.workspace.notFeatured": "Не в избранных", + "sub.workspace.notFeatured": "Не закреплена", "sub.workspace.priority": "Приоритет", - "sub.workspace.removeFromFeatured": "Убрать {m} из избранных", + "sub.workspace.removeFromFeatured": "Открепить {m} от выбора модели", "sub.workspace.selectModel": "Выберите модель", "sub.workspace.selectModelDesc": "Выберите модель из списка, чтобы увидеть детали и добавить её в избранные для spawn_agent.", "sub.workspace.selector": "Публичный селектор", @@ -4104,7 +4104,7 @@ export const ru: Record = { "models.pickerOrder.requestFailed": "Ошибка запроса. Черновик сохранён; повторите запрос или перезагрузите данные.", "models.pickerOrder.empty": "Нет доступных маршрутизируемых моделей.", "models.pickerOrder.dragModel": "Перетащить {model}", - "models.pickerOrder.featured": "Избранная", + "models.pickerOrder.featured": "Закреплена", "models.pickerOrder.upModel": "Переместить {model} вверх", "models.pickerOrder.downModel": "Переместить {model} вниз", "models.pickerOrder.position": "{model}: позиция {position} из {total}", diff --git a/gui/src/i18n/tr.ts b/gui/src/i18n/tr.ts index c27997fc8b4..59089ea1f6f 100644 --- a/gui/src/i18n/tr.ts +++ b/gui/src/i18n/tr.ts @@ -1155,7 +1155,7 @@ export const tr: Record = { "sub.forceSettingsUnknown": "settings.json incelenemedi. Ayarların bu seçeneği geçersiz kılıp kılmadığı bilinmiyor.", "sub.forceSaved": "Kaydedildi. Bir sonraki yönlendirmeli ocx claude başlatmasında geçerli olur.", "sub.subtitle": "Codex'in {cmd} komutu, geçersiz kılma olarak yalnızca ilk 5 modeli (önceliğe göre) sunar. Buradan 5 taneye kadar seçin (yerel gpt veya yönlendirilen) ve opencodex bunların katalog önceliğini tam olarak bunların liderlik edeceği şekilde ayarlar. Diğer herhangi bir model tam adıyla çağrılabilir kalır; bu yalnızca neyin gösterileceğini kontrol eder.", - "sub.featured": "Öne Çıkarılanlar", + "sub.featured": "Seçicide sabitlenenler", "sub.advanced": "Gelişmiş", "sub.orderHintAria": "Bu sıra nasıl kullanılır", "sub.orderHint": "Burada gösterilen sıralama, Codex model seçicisinin üst kısmındaki 1-5 pozisyonlarını ve {cmd} için varsayılan model adaylarını belirler. Seçicide 5’ten az öne çıkarılmış model görünüyorsa kalan yuvalarda katalog önceliğine göre modeller sunulur; model seçicisindeki özel bir sıralama katalog önceliğini değiştirmediği sürece görünür 5 öne çıkarılmış model listeyi doldurur.", @@ -1183,13 +1183,13 @@ export const tr: Record = { "sub.moveUp": "{m} modelini yukarı taşı", "sub.moveDown": "{m} modelini aşağı taşı", "sub.removeAria": "{m} modelini kaldır", - "sub.workspace.addToFeatured": "{m} modelini öne çıkarılanlara ekle", + "sub.workspace.addToFeatured": "{m} modelini model seçicinin en üstüne sabitle", "sub.workspace.allModels": "Tüm modeller", - "sub.workspace.featuredFull": "Öne çıkarılanlar listesi dolu (maksimum 5)", + "sub.workspace.featuredFull": "Sabitlenenler listesi dolu (maksimum 5)", "sub.workspace.mainAria": "Alt ajan model detayları", - "sub.workspace.notFeatured": "Öne çıkarılmadı", + "sub.workspace.notFeatured": "Sabitlenmedi", "sub.workspace.priority": "Öncelik", - "sub.workspace.removeFromFeatured": "{m} modelini öne çıkarılanlardan kaldır", + "sub.workspace.removeFromFeatured": "{m} modelini model seçiciden kaldır", "sub.workspace.selectModel": "Bir model seçin", "sub.workspace.selectModelDesc": "Detayları görmek için listeden bir model seçin.", "sub.workspace.selector": "Genel seçici", @@ -4104,7 +4104,7 @@ export const tr: Record = { "models.pickerOrder.requestFailed": "İstek başarısız. Taslağınız korunuyor; tekrar deneyin veya yeniden yükleyin.", "models.pickerOrder.empty": "Kullanılabilir yönlendirilen model yok.", "models.pickerOrder.dragModel": "{model} modelini sürükle", - "models.pickerOrder.featured": "Öne çıkan", + "models.pickerOrder.featured": "Sabitlendi", "models.pickerOrder.upModel": "{model} modelini yukarı taşı", "models.pickerOrder.downModel": "{model} modelini aşağı taşı", "models.pickerOrder.position": "{model}: {total} içinde {position}. sıra", diff --git a/gui/src/i18n/vi.ts b/gui/src/i18n/vi.ts index 930028388dc..398fcfce9c5 100644 --- a/gui/src/i18n/vi.ts +++ b/gui/src/i18n/vi.ts @@ -1152,7 +1152,7 @@ export const vi: Record = { "sub.forceSettingsUnknown": "Không thể kiểm tra settings.json. Chưa xác định được liệu cài đặt trong tệp có ghi đè tùy chọn này hay không.", "sub.forceSaved": "Đã lưu. Có hiệu lực ở lần khởi chạy ocx claude có định tuyến tiếp theo.", "sub.subtitle": "{cmd} của Codex chỉ quảng bá 5 model đầu tiên (theo mức độ ưu tiên) làm ghi đè (overrides). Chọn tối đa 5 model ở đây — native gpt hoặc routed — và opencodex sẽ đặt mức độ ưu tiên trong catalog của chúng để những model này dẫn đầu. Bất kỳ model nào khác vẫn có thể được gọi bằng đúng tên của nó; cài đặt này chỉ kiểm soát những gì được hiển thị.", - "sub.featured": "Nổi bật (Featured)", + "sub.featured": "Ghim trong bộ chọn", "sub.advanced": "Nâng cao (Advanced)", "sub.orderHintAria": "Cách thứ tự này được sử dụng", "sub.orderHint": "Thứ tự hiển thị ở đây thiết lập các vị trí 1–5 ở đầu bộ chọn mô hình của Codex và các mô hình ứng viên mặc định cho {cmd}. Khi có ít hơn 5 mô hình nổi bật hiển thị trong bộ chọn, các vị trí còn lại sẽ hiển thị mô hình theo mức ưu tiên của danh mục; 5 mô hình nổi bật đang hiển thị sẽ lấp đầy danh sách, trừ khi thứ tự tùy chỉnh trong bộ chọn mô hình làm thay đổi mức ưu tiên của danh mục.", @@ -1180,11 +1180,11 @@ export const vi: Record = { "sub.moveUp": "Di chuyển {m} lên", "sub.moveDown": "Di chuyển {m} xuống", "sub.removeAria": "Xoá {m}", - "sub.workspace.addToFeatured": "Thêm {m} vào phần Nổi bật", + "sub.workspace.addToFeatured": "Ghim {m} lên đầu bộ chọn mô hình", "sub.workspace.allModels": "Tất cả model", - "sub.workspace.featuredFull": "Danh sách Nổi bật đã đầy (tối đa 5)", + "sub.workspace.featuredFull": "Danh sách ghim đã đầy (tối đa 5)", "sub.workspace.mainAria": "Chi tiết model của agent con", - "sub.workspace.notFeatured": "Không nổi bật", + "sub.workspace.notFeatured": "Chưa ghim", "sub.workspace.priority": "Ưu tiên", "sub.ultraMode": "Luôn uỷ quyền chủ động", "sub.ultraModeHint": "Bật chính sách uỷ quyền đa agent chủ động (Proactive multi-agent delegation) cho mọi model và nỗ lực suy luận (không làm thay đổi bản thân nỗ lực suy luận). Ghi thiết lập vào features.multi_agent_v2.multi_agent_mode_hint_text trong config.toml.", @@ -1194,7 +1194,7 @@ export const vi: Record = { "sub.ultraModeLoadFail": "Lỗi tải cài đặt uỷ quyền chủ động — proxy có đang chạy không?", "sub.ultraModeSaveFail": "Lỗi lưu cài đặt uỷ quyền chủ động", "sub.ultraModeSaved": "Đã lưu uỷ quyền chủ động. Áp dụng cho các phiên Codex mới.", - "sub.workspace.removeFromFeatured": "Xoá {m} khỏi phần Nổi bật", + "sub.workspace.removeFromFeatured": "Bỏ ghim {m} khỏi bộ chọn mô hình", "sub.workspace.selectModel": "Chọn một model", "sub.workspace.selectModelDesc": "Chọn một model từ danh sách để xem chi tiết và đưa nó vào danh sách nổi bật cho spawn_agent.", "sub.workspace.selector": "Bộ chọn công khai (Public selector)", @@ -4032,7 +4032,7 @@ export const vi: Record = { "models.pickerOrder.requestFailed": "Yêu cầu thất bại. Bản nháp của bạn vẫn được giữ lại; hãy thử lại hoặc tải lại.", "models.pickerOrder.empty": "Không có model được định tuyến nào khả dụng.", "models.pickerOrder.dragModel": "Kéo {model}", - "models.pickerOrder.featured": "Nổi bật (Featured)", + "models.pickerOrder.featured": "Đã ghim", "models.pickerOrder.upModel": "Di chuyển {model} lên", "models.pickerOrder.downModel": "Di chuyển {model} xuống", "models.pickerOrder.position": "{model}: vị trí {position} trong số {total}", diff --git a/gui/src/i18n/zh-TW.ts b/gui/src/i18n/zh-TW.ts index 33da090ccc0..f11207da868 100644 --- a/gui/src/i18n/zh-TW.ts +++ b/gui/src/i18n/zh-TW.ts @@ -251,7 +251,7 @@ export const zhTW: Record = { "models.pickerOrder.usageFailed": "無法載入模型使用量。", "models.pickerOrder.loadFailed": "無法載入模型選擇設定。", "models.pickerOrder.retry": "重試", - "models.pickerOrder.hint": "儲存 Codex 與 Claude 探索清單中的路由模型順序。保留精選與原生模型的優先級區間;使用量排序是快照,原生工具顯示的候選可能改變。", + "models.pickerOrder.hint": "儲存 Codex 與 Claude 探索清單中的路由模型順序。保留選擇器置頂與原生模型的優先級區間;使用量排序是快照,原生工具顯示的候選可能改變。", "models.fastRows.title": "顯示快速模型項目", "models.fastRows.desc": "在外部客戶端模型選擇器中加入適用的「Model Fast」項目。這不會影響基礎模型上的推理力度選項。儲存時會盡可能重新整理已連線的整合;若未生效,請重新整理整合或客戶端目錄。", "models.fastRows.refreshHint": "已儲存。目錄重新整理處理中。", @@ -878,7 +878,7 @@ export const zhTW: Record = { "models.setAllHint": "為所有已路由供應商打開 {value} 預設視窗。中繼站沒回報 context_window / context_length 時,這個值就是 Codex 實際視窗。要幫單一模型手寫,用同一列上的「自訂視窗」。原生供應商不受影響。", "models.collapseAll": "全部摺疊", "models.expandAll": "全部展開", - "models.orderHint": "預設順序遵循精選項目與目錄優先級;同優先級的路由列依供應商、模型排序。儲存的選擇順序可改變顯示順序,可見性開關用於篩選顯示的列。用戶端在再次取得前可能繼續使用舊目錄。", + "models.orderHint": "預設順序遵循選擇器置頂項目與目錄優先級;同優先級的路由列依供應商、模型排序。儲存的選擇順序可改變顯示順序,可見性開關用於篩選顯示的列。用戶端在再次取得前可能繼續使用舊目錄。", "models.settingsPanel.title": "模型設定", "models.settingsPanel.off": "關", "models.settingsPanel.attention": "需要留意", @@ -995,10 +995,10 @@ export const zhTW: Record = { "sub.forceSettingsUnknown": "無法檢查 settings.json,設定覆寫狀態未知。", "sub.forceSaved": "已儲存。從下次透過路由啟動 ocx claude 時生效。", "sub.subtitle": "Codex 的 {cmd} 僅將優先順序最高的前 5 個模型作為覆蓋項公開。在此最多選擇 5 個 — 原生 gpt 或已路由模型 — opencodex 會設定它們的目錄優先順序,使其正好排在前面。其他模型仍可按確切名稱呼叫;此設定僅控制顯示項。", - "sub.featured": "精選", + "sub.featured": "選擇器置頂", "sub.advanced": "進階", "sub.orderHintAria": "此順序的用途", - "sub.orderHint": "此處所選並顯示的順序決定 Codex 模型選擇器頂部第 1–5 位,以及 {cmd} 的預設模型候選。若模型選擇器中可見的精選模型少於 5 個,其餘欄位會依目錄優先順序顯示模型;5 個可見的精選模型即可填滿名單,除非自訂模型選擇器順序改變了目錄優先順序。", + "sub.orderHint": "此處所選並顯示的順序決定 Codex 模型選擇器頂部第 1–5 位,以及 {cmd} 的預設模型候選。若模型選擇器中可見的選擇器置頂模型少於 5 個,其餘欄位會依目錄優先順序顯示模型;5 個可見的選擇器置頂模型即可填滿名單,除非自訂模型選擇器順序改變了目錄優先順序。", "sub.noneSelected": "未選擇 — 請從下方列表選擇。", "sub.models": "模型", "sub.search": "搜尋模型(原生 gpt + 已路由)…", @@ -2928,15 +2928,15 @@ export const zhTW: Record = { "startup.repairing": "正在修復…", "startup.serviceRepaired": "背景服務修復成功。", "startup.shimRepaired": "Codex 啟動器 shim 修復成功。", - "sub.workspace.addToFeatured": "將 {m} 加入精選", + "sub.workspace.addToFeatured": "將 {m} 置頂到模型選擇器", "sub.workspace.allModels": "所有模型", - "sub.workspace.featuredFull": "精選列表已滿(最多 5 個)", + "sub.workspace.featuredFull": "選擇器置頂已滿(最多 5 個)", "sub.workspace.mainAria": "子代理模型詳情", - "sub.workspace.notFeatured": "未設為精選", + "sub.workspace.notFeatured": "未置頂", "sub.workspace.priority": "優先順序", - "sub.workspace.removeFromFeatured": "將 {m} 自精選移除", + "sub.workspace.removeFromFeatured": "將 {m} 自選擇器置頂移除", "sub.workspace.selectModel": "選擇模型", - "sub.workspace.selectModelDesc": "從列表選擇模型以查看詳情,並設為 spawn_agent 的精選模型。", + "sub.workspace.selectModelDesc": "從列表選擇模型以查看詳情,並設為 spawn_agent 的選擇器置頂模型。", "sub.workspace.selector": "公開選擇器", "logs.badge.grok": "Grok", "logs.tokens.contextTotal": "作用中上下文", @@ -4059,15 +4059,15 @@ export const zhTW: Record = { "usage.range.invalid": "請輸入不早於 1970-01-01 UTC 的有效本地日期和時間。", "usage.range.reversed": "結束時間必須等於或晚於開始時間。", "usage.range.applied": "所選範圍:{start} – {end}(包含兩端)。", - "models.pickerOrder.editorHint": "調整路由模型順序後儲存草稿。精選列固定,原生模型不在此顯示。", + "models.pickerOrder.editorHint": "調整路由模型順序後儲存草稿。選擇器置頂列固定,原生模型不在此顯示。", "models.pickerOrder.nativeLocked": "已儲存的順序包含原生模型。請先套用路由預設或預設順序,再編輯自訂順序。", - "models.pickerOrder.unknownChosen": "精選模型資訊未知。請重新載入後再編輯。", + "models.pickerOrder.unknownChosen": "選擇器置頂模型資訊未知。請重新載入後再編輯。", "models.pickerOrder.changed": "模型選擇設定已變更。草稿已保留;重新載入將捨棄草稿並使用目前設定。", "models.pickerOrder.savedReload": "順序已儲存。再次編輯前請重新載入目前設定。", "models.pickerOrder.requestFailed": "請求失敗。草稿已保留;請重試或重新載入。", "models.pickerOrder.empty": "沒有可用的路由模型。", "models.pickerOrder.dragModel": "拖曳 {model}", - "models.pickerOrder.featured": "精選", + "models.pickerOrder.featured": "置頂", "models.pickerOrder.upModel": "上移 {model}", "models.pickerOrder.downModel": "下移 {model}", "models.pickerOrder.position": "{model}:第 {position} 位,共 {total} 個", diff --git a/gui/src/i18n/zh.ts b/gui/src/i18n/zh.ts index fe8f2d4c4d9..34f6c757419 100644 --- a/gui/src/i18n/zh.ts +++ b/gui/src/i18n/zh.ts @@ -253,7 +253,7 @@ export const zh: Record = { "models.pickerOrder.usageFailed": "无法加载模型使用量。", "models.pickerOrder.loadFailed": "无法加载模型选择设置。", "models.pickerOrder.retry": "重试", - "models.pickerOrder.hint": "保存 Codex 和 Claude 发现列表中的路由模型顺序。保留精选与原生模型的优先级区间;使用量排序是快照,原生工具显示的候选可能变化。", + "models.pickerOrder.hint": "保存 Codex 和 Claude 发现列表中的路由模型顺序。保留选择器置顶与原生模型的优先级区间;使用量排序是快照,原生工具显示的候选可能变化。", "models.fastRows.title": "显示快速模型项目", "models.fastRows.desc": "在外部客户端模型选择器中添加符合条件的“Model Fast”选项。这不会改变基础模型上的推理力度选项。保存时会尽可能刷新已连接的集成;若未生效,请刷新集成或客户端目录。", "models.fastRows.refreshHint": "已保存。目录刷新正在处理中。", @@ -1028,7 +1028,7 @@ export const zh: Record = { "models.setAllHint": "给所有已路由提供方打开 {value} 默认窗口。中转站没报 context_window / context_length 时,这个值就是 Codex 实际窗口。要给单个模型手写,用同一行上的「自定义窗口」。原生提供方不受影响。", "models.collapseAll": "全部折叠", "models.expandAll": "全部展开", - "models.orderHint": "默认顺序遵循精选项和目录优先级;同优先级的路由行按提供商、模型排序。保存的选择顺序可改变显示顺序,可见性开关用于筛选显示的行。客户端在再次获取前可能继续使用旧目录。", + "models.orderHint": "默认顺序遵循选择器置顶项和目录优先级;同优先级的路由行按提供商、模型排序。保存的选择顺序可改变显示顺序,可见性开关用于筛选显示的行。客户端在再次获取前可能继续使用旧目录。", "models.settingsPanel.title": "模型设置", "models.settingsPanel.off": "关", "models.settingsPanel.attention": "需要注意", @@ -1147,10 +1147,10 @@ export const zh: Record = { "sub.forceSettingsUnknown": "无法检查 settings.json,无法确定设置是否覆盖了此选项。", "sub.forceSaved": "已保存。从下次通过路由启动 ocx claude 时生效。", "sub.subtitle": "Codex 的 {cmd} 仅将优先级最高的前 5 个模型作为覆盖项公开。在此最多选择 5 个 — 原生 gpt 或已路由模型 — opencodex 会设置它们的目录优先级,使其正好排在前面。其他模型仍可按确切名称调用;此设置仅控制显示项。", - "sub.featured": "精选", + "sub.featured": "选择器置顶", "sub.advanced": "高级", "sub.orderHintAria": "此顺序的用途", - "sub.orderHint": "此处所选并显示的顺序决定 Codex 模型选择器顶部第 1–5 位,以及 {cmd} 的默认模型候选。若模型选择器中可见的精选模型少于 5 个,剩余栏位会按目录优先级显示模型;5 个可见的精选模型即可填满名单,除非自定义模型选择器顺序改变了目录优先级。", + "sub.orderHint": "此处所选并显示的顺序决定 Codex 模型选择器顶部第 1–5 位,以及 {cmd} 的默认模型候选。若模型选择器中可见的选择器置顶模型少于 5 个,剩余栏位会按目录优先级显示模型;5 个可见的选择器置顶模型即可填满名单,除非自定义模型选择器顺序改变了目录优先级。", "sub.noneSelected": "未选择 — 请从下方列表选择。", "sub.models": "模型", "sub.search": "搜索模型(原生 gpt + 已路由)…", @@ -1163,15 +1163,15 @@ export const zh: Record = { "sub.moveUp": "上移 {m}", "sub.moveDown": "下移 {m}", "sub.removeAria": "移除 {m}", - "sub.workspace.addToFeatured": "将 {m} 添加到精选", + "sub.workspace.addToFeatured": "将 {m} 置顶到模型选择器", "sub.workspace.allModels": "所有模型", - "sub.workspace.featuredFull": "精选列表已满(最多 5 个)", + "sub.workspace.featuredFull": "选择器置顶已满(最多 5 个)", "sub.workspace.mainAria": "子代理模型详情", - "sub.workspace.notFeatured": "未设为精选", + "sub.workspace.notFeatured": "未置顶", "sub.workspace.priority": "优先级", - "sub.workspace.removeFromFeatured": "将 {m} 从精选中移除", + "sub.workspace.removeFromFeatured": "将 {m} 从选择器置顶中移除", "sub.workspace.selectModel": "选择模型", - "sub.workspace.selectModelDesc": "从列表中选择一个模型以查看详情,并将其设为 spawn_agent 的精选模型。", + "sub.workspace.selectModelDesc": "从列表中选择一个模型以查看详情,并将其设为 spawn_agent 的选择器置顶模型。", "sub.workspace.selector": "公开选择器", "sub.ultraMode": "始终主动委派", "sub.ultraModeHint": "为所有模型和推理力度启用主动多代理委派策略(不改变推理力度本身)。将 features.multi_agent_v2.multi_agent_mode_hint_text 写入 config.toml。", @@ -4094,15 +4094,15 @@ export const zh: Record = { "usage.range.invalid": "请输入不早于 1970-01-01 UTC 的有效本地日期和时间。", "usage.range.reversed": "结束时间必须等于或晚于开始时间。", "usage.range.applied": "所选范围:{start} – {end}(包含两端)。", - "models.pickerOrder.editorHint": "调整路由模型顺序后保存草稿。精选行固定,原生模型不在此显示。", + "models.pickerOrder.editorHint": "调整路由模型顺序后保存草稿。选择器置顶行固定,原生模型不在此显示。", "models.pickerOrder.nativeLocked": "已保存的顺序包含原生模型。请先应用路由预设或默认顺序,再编辑自定义顺序。", - "models.pickerOrder.unknownChosen": "精选模型信息未知。请重新加载后再编辑。", + "models.pickerOrder.unknownChosen": "选择器置顶模型信息未知。请重新加载后再编辑。", "models.pickerOrder.changed": "模型选择设置已更改。草稿已保留;重新加载将丢弃草稿并使用当前设置。", "models.pickerOrder.savedReload": "顺序已保存。再次编辑前请重新加载当前设置。", "models.pickerOrder.requestFailed": "请求失败。草稿已保留;请重试或重新加载。", "models.pickerOrder.empty": "没有可用的路由模型。", "models.pickerOrder.dragModel": "拖动 {model}", - "models.pickerOrder.featured": "精选", + "models.pickerOrder.featured": "置顶", "models.pickerOrder.upModel": "上移 {model}", "models.pickerOrder.downModel": "下移 {model}", "models.pickerOrder.position": "{model}:第 {position} 位,共 {total} 个", diff --git a/gui/tests/subagents-busy-race.test.tsx b/gui/tests/subagents-busy-race.test.tsx index b75ad2979a8..e16ab83261e 100644 --- a/gui/tests/subagents-busy-race.test.tsx +++ b/gui/tests/subagents-busy-race.test.tsx @@ -128,7 +128,7 @@ async function releaseNextPut() { function addToggle(id: string): HTMLButtonElement { const row = Array.from(container.querySelectorAll("button")).find((b) => - (b.getAttribute("aria-label") ?? "").includes(`Add ${id} to featured`), + (b.getAttribute("aria-label") ?? "").includes(`Pin ${id} to the top of the model picker`), ); if (!row) throw new Error(`add toggle not found: ${id}`); return row as unknown as HTMLButtonElement; diff --git a/gui/tests/subagents-classic.test.tsx b/gui/tests/subagents-classic.test.tsx index 230f6668c06..930d9d90ad4 100644 --- a/gui/tests/subagents-classic.test.tsx +++ b/gui/tests/subagents-classic.test.tsx @@ -79,7 +79,7 @@ async function mount(apiBase = "") { /** Rail add/remove toggles are labelled from sub.workspace.addToFeatured / removeFromFeatured. */ function addToggle(id: string): HTMLButtonElement { const row = Array.from(container.querySelectorAll("button")) - .find((b) => (b.getAttribute("aria-label") ?? "").includes(`Add ${id} to featured`)); + .find((b) => (b.getAttribute("aria-label") ?? "").includes(`Pin ${id} to the top of the model picker`)); if (!row) throw new Error(`add toggle not found: ${id}`); return row as unknown as HTMLButtonElement; } @@ -99,7 +99,7 @@ test("renders one featured list and one picker, never the same list twice", asyn expect(container.querySelector(".subagents-workspace-rail")).toBeNull(); const featuredHeadings = Array.from(container.querySelectorAll(".swi-featured-title")) .map(node => node.textContent?.trim()); - expect(featuredHeadings.filter(text => text === "Featured").length).toBe(1); + expect(featuredHeadings.filter(text => text === "Pinned in picker").length).toBe(1); }); test("caps featured selections at five", async () => { diff --git a/gui/tests/subagents-fallback.test.tsx b/gui/tests/subagents-fallback.test.tsx index 9c29bfdeb4d..df0cb557955 100644 --- a/gui/tests/subagents-fallback.test.tsx +++ b/gui/tests/subagents-fallback.test.tsx @@ -760,7 +760,7 @@ test("order hint explains visible featured model fill and the custom model picke const tooltip = container.querySelector('[role="tooltip"]'); expect(tooltip?.textContent).toContain("spawn_agent"); expect(tooltip?.textContent).toContain("The order shown here sets positions 1–5 at the top of the Codex model picker and the default model candidates for spawn_agent."); - expect(tooltip?.textContent).toContain("fewer than 5 featured models are visible in the picker"); + expect(tooltip?.textContent).toContain("fewer than 5 pinned models are visible in the picker"); expect(tooltip?.textContent).toContain("remaining slots are advertised by catalog priority"); - expect(tooltip?.textContent).toContain("5 visible featured models fill the list unless a custom model picker order changes catalog priority"); + expect(tooltip?.textContent).toContain("5 visible pinned models fill the list unless a custom model picker order changes catalog priority"); }); From dced49bd02532284e0ee02e0fe1c58221b6cc9b5 Mon Sep 17 00:00:00 2001 From: "Andrew (agent)" Date: Fri, 13 Nov 2026 18:08:22 -0500 Subject: [PATCH 2/7] feat(models): add a family picker order mode and the model family registry One table in src/lib/model-families.ts says which family a model belongs to (GPT, Gemini, Claude, Grok, DeepSeek, then Qwen, Kimi, GLM, MiniMax, Llama, Mistral, Other last). The new 'family' mode of modelPickerOrder sorts routed models into one contiguous run per family, by provider inside a family, so the Codex catalog priorities and the Claude Code picker group by family. The mode is accepted by the management route, saved in modelPickerOrderMode, and available as ocx models order set --mode family. --- gui/src/model-picker-order.ts | 10 ++- scripts/test-layout/layout.json | 2 +- .../references/01_surface_providers-models.md | 4 +- skills/ocx/references/03_recipes.md | 2 +- src/cli/capabilities-provider-models.ts | 4 +- src/cli/model-picker-ordering.ts | 8 +- src/cli/models-order.ts | 6 +- src/cli/models-runtime.ts | 2 +- src/lib/model-families.ts | 76 +++++++++++++++++++ .../management/subagent-model-routes.ts | 8 +- src/types/config.ts | 2 +- structure/dashboard-and-usage.md | 2 +- structure/subagents.md | 2 +- tests/cli/cli-models-order.test.ts | 4 +- .../codex-catalog-family-order.test.ts | 59 ++++++++++++++ tests/fixtures/test-layout-expected.json | 1 + tests/lib/model-families.test.ts | 66 ++++++++++++++++ .../routing/subagent-roster-retention.test.ts | 7 ++ 18 files changed, 241 insertions(+), 24 deletions(-) create mode 100644 src/lib/model-families.ts create mode 100644 tests/codex-integration/codex-catalog-family-order.test.ts create mode 100644 tests/lib/model-families.test.ts diff --git a/gui/src/model-picker-order.ts b/gui/src/model-picker-order.ts index 0de6190f020..c4b3d446520 100644 --- a/gui/src/model-picker-order.ts +++ b/gui/src/model-picker-order.ts @@ -1,4 +1,5 @@ -export type ModelPickerOrderMode = "default" | "alphabetical" | "provider" | "most-used" | "custom"; +import { modelFamilyRank } from "../../src/lib/model-families"; +export type ModelPickerOrderMode = "default" | "alphabetical" | "provider" | "family" | "most-used" | "custom"; export type SavedModelPickerOrderMode = Exclude; export interface ModelPickerUsage { provider: string; @@ -17,7 +18,7 @@ function stringList(value: unknown): value is string[] { return Array.isArray(value) && value.every(id => typeof id === "string" && id.trim().length > 0); } function savedMode(value: unknown): value is SavedModelPickerOrderMode | null { - return value === null || value === "alphabetical" || value === "provider" || value === "most-used"; + return value === null || value === "alphabetical" || value === "provider" || value === "family" || value === "most-used"; } export function isPickerOrderSaved(value: unknown): value is PickerOrderSaved { if (value === null || typeof value !== "object") return false; @@ -47,6 +48,8 @@ function byProvider(a: string, b: string): number { const [ap, am] = parts(a), [bp, bm] = parts(b); return compare(ap, bp) || compare(am, bm); } +// Families are one contiguous run each, in registry order; within a family the provider order. +const byFamily = (a: string, b: string) => modelFamilyRank(a) - modelFamilyRank(b) || byProvider(a, b); export function modelPickerOrder( mode: Exclude, @@ -58,6 +61,7 @@ export function modelPickerOrder( const unique = [...new Set(models)]; if (mode === "alphabetical") return unique.sort((a, b) => compare(parts(a)[1], parts(b)[1]) || byProvider(a, b)); if (mode === "provider") return unique.sort(byProvider); + if (mode === "family") return unique.sort(byFamily); const candidates = new Set(unique); const raw = new Map>(); const owners = new Map>(); @@ -97,7 +101,7 @@ export function modelPickerOrderMode( if (saved.length === 0) return "default"; // Existing complete/native orders are never silently replaced by a routed preset. if (saved.some(id => !id.includes("/"))) return "custom"; - if (mode === "alphabetical" || mode === "provider" || mode === "most-used") return mode; + if (mode === "alphabetical" || mode === "provider" || mode === "family" || mode === "most-used") return mode; const candidates = new Set(models); if (new Set(saved).size !== saved.length || saved.length !== candidates.size || saved.some(id => !candidates.has(id))) return "custom"; diff --git a/scripts/test-layout/layout.json b/scripts/test-layout/layout.json index 05605249cbe..ee4d464db7f 100644 --- a/scripts/test-layout/layout.json +++ b/scripts/test-layout/layout.json @@ -38,7 +38,7 @@ "cli-claude-desktop-profile.test.ts": "cli", "cli-integration-cursor.test.ts": "cli", "cli-remote-workspace-hub.test.ts": "cli", "cli-storage-policy-fields.test.ts": "cli", "cli-link-force.test.ts": "cli", "cli-link-recover.test.ts": "cli", "cli-link-cleanup.test.ts": "cli", "cli-account-policy.test.ts": "cli", "cli-account-login-options.test.ts": "cli", "cli-logout-runtime.test.ts": "cli", "cli-agent-settings.test.ts": "cli", "cli-v2-runtime.test.ts": "cli", "cli-v2-plaintext.test.ts": "cli", "multi-agent-v2-plaintext.test.ts": "codex-integration", "cli-agent-runtime-settings.test.ts": "cli", "cli-system-settings-parity.test.ts": "cli", - "cli-catalog-command-result.test.ts": "cli", "cli-models-local-result.test.ts": "cli", "cli-models-custom-runtime.test.ts": "cli", "cli-models-order.test.ts": "cli", + "cli-catalog-command-result.test.ts": "cli", "cli-models-local-result.test.ts": "cli", "cli-models-custom-runtime.test.ts": "cli", "cli-models-order.test.ts": "cli", "model-families.test.ts": "lib", "codex-catalog-family-order.test.ts": "codex-integration", "cli-models-display-name.test.ts": "cli", "cli-route-policy-write.test.ts": "cli", "cli-combo-parity.test.ts": "cli", "cli-combo-stats.test.ts": "cli", "cli-json-input.test.ts": "cli", "cli-provider-lifecycle-runtime.test.ts": "cli", "cli-provider-settings.test.ts": "cli", "cli-provider-batch.test.ts": "cli", "cli-provider-result.test.ts": "cli", "cli-provider-sync-result.test.ts": "cli", diff --git a/skills/ocx/references/01_surface_providers-models.md b/skills/ocx/references/01_surface_providers-models.md index 60d05132b11..53ba7d49a44 100644 --- a/skills/ocx/references/01_surface_providers-models.md +++ b/skills/ocx/references/01_surface_providers-models.md @@ -1021,7 +1021,7 @@ State-changing: no. JSON mode: `envelope`. ### `ocx models order set` -Usage: `ocx models order set (--models | --mode ) [--json]` +Usage: `ocx models order set (--models | --mode ) [--json]` Replace the routed picker order with an explicit list or sort mode. @@ -1037,7 +1037,7 @@ State-changing: yes. JSON mode: `envelope`. | Flag | Value | Meaning | |---|---|---| | `--models` | string | Complete unique routed candidate permutation, preserving the exact featured prefix; exclusive with --mode. | -| `--mode` | string | default clears; alphabetical, provider and most-used compute complete routed orders. | +| `--mode` | string | default clears; alphabetical, provider, family and most-used compute complete routed orders. | | `--json` | boolean | Emit the validated command result as JSON. | - Manual/preset replacement refuses a native-inclusive saved order until explicit reset/default. It never edits the featured models/force fields. diff --git a/skills/ocx/references/03_recipes.md b/skills/ocx/references/03_recipes.md index f3d8da760b1..b8f9b213f77 100644 --- a/skills/ocx/references/03_recipes.md +++ b/skills/ocx/references/03_recipes.md @@ -603,7 +603,7 @@ changed state yields conflict. This check is **not CAS**, so a later concurrent write can still race. Re-read on refusal and after success; never auto-reset to make an invalid order pass. -As alternatives, `models order set --mode alphabetical|provider|most-used --json` +As alternatives, `models order set --mode alphabetical|provider|family|most-used --json` derives a complete routed order. Preset modes do not prepend the manual featured prefix. Most-used reads all-time/all-surface usage and refuses incomplete history; unranked candidates remain present. A saved order containing bare native IDs diff --git a/src/cli/capabilities-provider-models.ts b/src/cli/capabilities-provider-models.ts index 9c9c121c4db..b520f0c0b47 100644 --- a/src/cli/capabilities-provider-models.ts +++ b/src/cli/capabilities-provider-models.ts @@ -316,10 +316,10 @@ export const PROVIDER_MODEL_CAPABILITIES: readonly Capability[] = [ }, { command: ["models","order","set"], - usage: "ocx models order set (--models | --mode ) [--json]", + usage: "ocx models order set (--models | --mode ) [--json]", summary: "Replace the routed picker order with an explicit list or sort mode.", routes: [{"method":"GET","path":"/api/subagent-models"},{"method":"GET","path":"/api/models"},{"method":"GET","path":"/api/usage"},{"method":"PUT","path":"/api/subagent-models"}], - flags: [{"name":"--models","value":"string","summary":"Complete unique routed candidate permutation, preserving the exact featured prefix; exclusive with --mode."},{"name":"--mode","value":"string","summary":"default clears; alphabetical, provider and most-used compute complete routed orders."},{"name":"--json","value":"boolean","summary":"Emit the validated command result as JSON."}], + flags: [{"name":"--models","value":"string","summary":"Complete unique routed candidate permutation, preserving the exact featured prefix; exclusive with --mode."},{"name":"--mode","value":"string","summary":"default clears; alphabetical, provider, family and most-used compute complete routed orders."},{"name":"--json","value":"boolean","summary":"Emit the validated command result as JSON."}], mutates: true, json: "envelope", details: ["Manual/preset replacement refuses a native-inclusive saved order until explicit reset/default. It never edits the featured models/force fields.","Manual mode rechecks settings and identities before PUT and refuses observed drift; this is not server CAS. Raw/encoded ambiguities and missing identities refuse before writing.","Most-used reads all/all usage, uses requested model identities and refuses incomplete evidence. Presets retain unranked candidates. A saved receipt does not prove client convergence."], diff --git a/src/cli/model-picker-ordering.ts b/src/cli/model-picker-ordering.ts index 11a398c59aa..1fee042c904 100644 --- a/src/cli/model-picker-ordering.ts +++ b/src/cli/model-picker-ordering.ts @@ -1,5 +1,6 @@ // Deliberate pure port of gui/src/model-picker-order.ts; test-only conformance guards drift. -export type ModelPickerOrderMode = "default" | "alphabetical" | "provider" | "most-used" | "custom"; +import { modelFamilyRank } from "../lib/model-families"; +export type ModelPickerOrderMode = "default" | "alphabetical" | "provider" | "family" | "most-used" | "custom"; export type SavedModelPickerOrderMode = Exclude; export interface ModelPickerUsage { provider: string; @@ -18,7 +19,7 @@ function stringList(value: unknown): value is string[] { return Array.isArray(value) && value.every(id => typeof id === "string" && id.trim().length > 0); } function savedMode(value: unknown): value is SavedModelPickerOrderMode | null { - return value === null || value === "alphabetical" || value === "provider" || value === "most-used"; + return value === null || value === "alphabetical" || value === "provider" || value === "family" || value === "most-used"; } export function isPickerOrderSaved(value: unknown): value is PickerOrderSaved { if (value === null || typeof value !== "object") return false; @@ -48,6 +49,8 @@ function byProvider(a: string, b: string): number { const [ap, am] = parts(a), [bp, bm] = parts(b); return compare(ap, bp) || compare(am, bm); } +// Families are one contiguous run each, in registry order; within a family the provider order. +const byFamily = (a: string, b: string) => modelFamilyRank(a) - modelFamilyRank(b) || byProvider(a, b); export function modelPickerOrder( mode: Exclude, @@ -59,6 +62,7 @@ export function modelPickerOrder( const unique = [...new Set(models)]; if (mode === "alphabetical") return unique.sort((a, b) => compare(parts(a)[1], parts(b)[1]) || byProvider(a, b)); if (mode === "provider") return unique.sort(byProvider); + if (mode === "family") return unique.sort(byFamily); const candidates = new Set(unique); const raw = new Map>(); const owners = new Map>(); diff --git a/src/cli/models-order.ts b/src/cli/models-order.ts index 4fd7f186907..51f37fdc97e 100644 --- a/src/cli/models-order.ts +++ b/src/cli/models-order.ts @@ -14,7 +14,7 @@ import { takeFlag, takeOptionWithSyntax, type RuntimeApiDeps, } from "./runtime-api"; -const ORDER_USAGE = "Usage: ocx models order status|reset|set (--models CSV | --mode default|alphabetical|provider|most-used) [--json]"; +const ORDER_USAGE = "Usage: ocx models order status|reset|set (--models CSV | --mode default|alphabetical|provider|family|most-used) [--json]"; const DISPLAY_USAGE = "Usage: ocx models display-name PROVIDER/MODEL (--set TEXT | --clear) [--json]"; const SETTINGS = "/api/subagent-models"; function record(value: unknown): value is Record { @@ -93,7 +93,7 @@ export async function handleModelsOrderCommand(argv: string[], deps: RuntimeApiD if (args.length || !["status", "reset", "set"].includes(sub ?? "") || (sub !== "set" && (csv !== undefined || mode !== undefined)) || (sub === "set" && ((csv === undefined) === (mode === undefined))) - || (mode !== undefined && !["default", "alphabetical", "provider", "most-used"].includes(mode))) { + || (mode !== undefined && !["default", "alphabetical", "provider", "family", "most-used"].includes(mode))) { throw new CliUsageError("Invalid picker order arguments", ORDER_USAGE); } // Refuse lexical manual-input failures before discovering a target. @@ -131,7 +131,7 @@ export async function handleModelsOrderCommand(argv: string[], deps: RuntimeApiD throw new RuntimeApiError("Picker state changed", 409, null); } } else { - const preset = mode as "alphabetical" | "provider" | "most-used"; + const preset = mode as "alphabetical" | "provider" | "family" | "most-used"; order = modelPickerOrder(preset, settings.pickerAvailable, preset === "most-used" ? await readUsage(pinned) : [], identities); savedMode = preset; } diff --git a/src/cli/models-runtime.ts b/src/cli/models-runtime.ts index 90356429f26..cfd6289c987 100644 --- a/src/cli/models-runtime.ts +++ b/src/cli/models-runtime.ts @@ -26,7 +26,7 @@ import { isValidCost4Rate, validCost4 } from "../usage/user-cost-overlays"; const USAGE = `Usage: ocx models display-name (--set | --clear) [--json] ocx models order status|reset [--json] - ocx models order set (--models | --mode ) [--json] + ocx models order set (--models | --mode ) [--json] ocx models live [--provider ] [--free-only] [--json] ocx models price [--json] ocx models set-price --input N --output N [--cache-read N] [--cache-write N] [--json] diff --git a/src/lib/model-families.ts b/src/lib/model-families.ts new file mode 100644 index 00000000000..4f39b1fd87a --- /dev/null +++ b/src/lib/model-families.ts @@ -0,0 +1,76 @@ +// Model family registry: the one table that says which family a model belongs to and where that +// family sits in a grouped picker. Pure and dependency-free so the proxy, the CLI and the GUI +// bundle all import this same file instead of keeping their own copy of the rules. + +export const MODEL_FAMILY_IDS = [ + "gpt", "gemini", "claude", "grok", "deepseek", + "qwen", "kimi", "glm", "minimax", "llama", "mistral", + "other", +] as const; +export type ModelFamilyId = (typeof MODEL_FAMILY_IDS)[number]; + +export interface ModelFamily { + readonly id: ModelFamilyId; + /** Brand name. Brands are not translated; the GUI localizes only the `other` label. */ + readonly label: string; + readonly test: RegExp; +} + +/** + * Table order is both the display order of the families and the precedence of the rules: the + * first match wins, so `deepseek-r1-distill-qwen` is DeepSeek, not Qwen. `other` matches + * nothing by test and is the fallback; it stays last. + */ +export const MODEL_FAMILIES: readonly ModelFamily[] = [ + { id: "gpt", label: "GPT", test: /\bgpt|\bo[134](?:\b|-)|\bchatgpt/ }, + { id: "gemini", label: "Gemini", test: /gemini/ }, + { id: "claude", label: "Claude", test: /claude|\b(?:opus|sonnet|haiku|fable)\b/ }, + { id: "grok", label: "Grok", test: /grok/ }, + { id: "deepseek", label: "DeepSeek", test: /deepseek/ }, + { id: "qwen", label: "Qwen", test: /qwen|\bqwq\b/ }, + { id: "kimi", label: "Kimi", test: /kimi|moonshot/ }, + { id: "glm", label: "GLM", test: /glm/ }, + { id: "minimax", label: "MiniMax", test: /minimax/ }, + { id: "llama", label: "Llama", test: /\bllama/ }, + { id: "mistral", label: "Mistral", test: /mistral|mixtral|codestral|devstral|magistral/ }, + { id: "other", label: "Other", test: /(?!)/ }, +]; + +const RANK = new Map(MODEL_FAMILIES.map((family, index) => [family.id, index])); +const OTHER = MODEL_FAMILIES[MODEL_FAMILIES.length - 1]!; + +function firstMatch(text: string): ModelFamily | undefined { + return MODEL_FAMILIES.find(family => family.test.test(text)); +} + +/** + * Family of a model slug. The part after the first `/` is tested first, so a provider prefix + * such as `claude-sub/` cannot decide the family of `claude-sub/gpt-6`. Only when that part + * names no family is the whole slug tried, which lets a provider named for a family + * (`kimi-coding/turbo`) place its otherwise anonymous models. A combo classifies by its own + * name, so a name that mentions no family lands in `other`. + */ +export function modelFamily(slug: string): ModelFamily { + const text = slug.toLowerCase(); + const slash = text.indexOf("/"); + return (slash >= 0 ? firstMatch(text.slice(slash + 1)) : undefined) ?? firstMatch(text) ?? OTHER; +} + +/** Position of the slug's family in the display order; lower sorts first. */ +export function modelFamilyRank(slug: string): number { + return RANK.get(modelFamily(slug).id)!; +} + +/** Families in display order, with each family's models in their original order. Empty families are omitted. */ +export function groupByModelFamily(items: readonly T[], slugOf: (item: T) => string): { family: ModelFamily; items: T[] }[] { + const buckets = new Map(); + for (const item of items) { + const id = modelFamily(slugOf(item)).id; + const bucket = buckets.get(id); + if (bucket) bucket.push(item); else buckets.set(id, [item]); + } + return MODEL_FAMILIES.flatMap(family => { + const bucket = buckets.get(family.id); + return bucket ? [{ family, items: bucket }] : []; + }); +} diff --git a/src/server/management/subagent-model-routes.ts b/src/server/management/subagent-model-routes.ts index 17789bc2f73..4161c60ab3a 100644 --- a/src/server/management/subagent-model-routes.ts +++ b/src/server/management/subagent-model-routes.ts @@ -73,8 +73,8 @@ export async function handleSubagentModelRoutes(ctx: ManagementContext, autoAppl } const mode = body.pickerOrderMode; if (mode !== undefined && (!updatesPicker || (mode !== null - && mode !== "alphabetical" && mode !== "provider" && mode !== "most-used"))) { - return jsonResponse({ error: "pickerOrderMode requires pickerOrder and must be alphabetical, provider, most-used, or null" }, 400); + && mode !== "alphabetical" && mode !== "provider" && mode !== "family" && mode !== "most-used"))) { + return jsonResponse({ error: "pickerOrderMode requires pickerOrder and must be alphabetical, provider, family, most-used, or null" }, 400); } let pickerOrder: string[] | undefined; if (updatesPicker) { @@ -134,7 +134,7 @@ export async function handleSubagentModelRoutes(ctx: ManagementContext, autoAppl deleteConfigTopLevelKey(draft, "modelPickerOrderMode"); } else { draft.modelPickerOrder = pickerOrder; - if (mode === "alphabetical" || mode === "provider" || mode === "most-used") draft.modelPickerOrderMode = mode; + if (mode === "alphabetical" || mode === "provider" || mode === "family" || mode === "most-used") draft.modelPickerOrderMode = mode; else deleteConfigTopLevelKey(draft, "modelPickerOrderMode"); } } @@ -174,7 +174,7 @@ export async function handleSubagentModelRoutes(ctx: ManagementContext, autoAppl deleteConfigTopLevelKey(persisted, "modelPickerOrderMode"); } else { persisted.modelPickerOrder = pickerOrder; - if (mode === "alphabetical" || mode === "provider" || mode === "most-used") persisted.modelPickerOrderMode = mode; + if (mode === "alphabetical" || mode === "provider" || mode === "family" || mode === "most-used") persisted.modelPickerOrderMode = mode; else deleteConfigTopLevelKey(persisted, "modelPickerOrderMode"); } } diff --git a/src/types/config.ts b/src/types/config.ts index 286c92d5089..91efaba228e 100644 --- a/src/types/config.ts +++ b/src/types/config.ts @@ -724,7 +724,7 @@ export interface OcxConfig extends OcxLinkHomeConfig { */ modelPickerOrder?: string[]; /** Saved preset provenance; snapshots are not recomputed during catalog discovery. */ - modelPickerOrderMode?: "alphabetical" | "provider" | "most-used"; + modelPickerOrderMode?: "alphabetical" | "provider" | "family" | "most-used"; /** * Priority-ordered fallback models for spawned sub-agents. When the requested * model is quota-exhausted or recently failed, opencodex rewrites the child diff --git a/structure/dashboard-and-usage.md b/structure/dashboard-and-usage.md index 9c27768c993..44a1af561be 100644 --- a/structure/dashboard-and-usage.md +++ b/structure/dashboard-and-usage.md @@ -435,7 +435,7 @@ saved disabled/missing roster choices; it is not the eligible-picker set. Bare a from the routed preset surface because a bare id activates complete Codex-picker ordering. PUT accepts `models` and/or `pickerOrder`; `pickerOrderMode` requires `pickerOrder` and accepts -`alphabetical`, `provider`, `most-used`, or null. Roster arrays keep their existing exact string +`alphabetical`, `provider`, `family`, `most-used`, or null. Roster arrays keep their existing exact string values and five-slot cap. Picker arrays reject blank, duplicate or ineligible ids. Null/empty order clears order and mode; a nonempty order without a mode clears only the mode. Validation finishes before a synchronous live mutation/save. An unsupported future deletion-provenance format diff --git a/structure/subagents.md b/structure/subagents.md index 8cdedbf2acc..19933e49455 100644 --- a/structure/subagents.md +++ b/structure/subagents.md @@ -500,7 +500,7 @@ behaviors. ### Saved picker presets The Models page saves routed snapshots in `modelPickerOrder` and records their origin in -`modelPickerOrderMode` (`alphabetical`, `provider`, `most-used`). Mode is UI provenance, not a +`modelPickerOrderMode` (`alphabetical`, `provider`, `family`, `most-used`). Mode `family` orders by the one family registry in `src/lib/model-families.ts` (GPT, Gemini, Claude, Grok, DeepSeek, then the rest, Other last; the GUI imports that file instead of keeping a copy), so each family is a contiguous run of catalog `priority`. Mode is UI provenance, not a catalog sorting policy: catalog writers consume the saved array. Routed-only featured/native bands and complete-picker natural-rank preservation remain as described above. Public `buildCatalogEntries` accepts the order before optional native-source inputs and applies the complete-order diff --git a/tests/cli/cli-models-order.test.ts b/tests/cli/cli-models-order.test.ts index f6e8cc55bb2..e9436ca7041 100644 --- a/tests/cli/cli-models-order.test.ts +++ b/tests/cli/cli-models-order.test.ts @@ -91,7 +91,7 @@ describe("pure picker projections", () => { for (const rows of variants) { const available = rows.map(row => row.namespaced); const usage = rows.map((row, index) => ({ provider: row.provider, model: row.id, requests: index + 1 })); - for (const mode of ["default", "alphabetical", "provider", "most-used"] as const) { + for (const mode of ["default", "alphabetical", "provider", "family", "most-used"] as const) { expect(cli.modelPickerOrder(mode, available, usage, rows)).toEqual(gui.modelPickerOrder(mode, available, usage, rows)); } const tokens = [...available, "native", ...rows.map(row => `${row.provider}/${row.id}`)]; @@ -167,7 +167,7 @@ describe("models order commands", () => { ]); expect(f.writes()[0]?.body).toEqual({ pickerOrder: ["beta/z", "alpha/a", "alpha/b"], pickerOrderMode: null }); }); - for (const mode of ["alphabetical", "provider", "most-used"]) test(`preset ${mode} does not prepend featured`, async () => { + for (const mode of ["alphabetical", "provider", "family", "most-used"]) test(`preset ${mode} does not prepend featured`, async () => { const f = fixture({ settings: { ...initial, chosen: ["beta/z"] } }); expect(await handleModelsOrderCommand(["set", `--mode=${mode}`, "--json"], f.deps)).toBe(0); expect(f.writes()[0]?.body).toEqual({ pickerOrder: ["alpha/a", "alpha/b", "beta/z"], pickerOrderMode: mode }); diff --git a/tests/codex-integration/codex-catalog-family-order.test.ts b/tests/codex-integration/codex-catalog-family-order.test.ts new file mode 100644 index 00000000000..45db73fbf99 --- /dev/null +++ b/tests/codex-integration/codex-catalog-family-order.test.ts @@ -0,0 +1,59 @@ +import { describe, expect, test } from "bun:test"; +import { buildCatalogEntriesFromObservedState } from "../../src/codex/catalog/sync"; +import { modelPickerOrder } from "../../src/cli/model-picker-ordering"; +import { modelFamily } from "../../src/lib/model-families"; +import type { CatalogModel } from "../../src/types"; + +// The Codex catalog has no group field: a picker "group" is a contiguous run of `priority`. +// Mode `family` saves a complete routed order, and the catalog turns that order into priorities. + +const routed = [ + ["jd-chat", "glm-5.2"], ["tyler", "deepseek-v4-pro"], ["agy", "gemini-3.8-flash"], ["jd-claude", "sonnet-5"], + ["xai", "grok-4.7"], ["jd-gpt", "gpt-6.1-sol"], ["agy", "claude-opus-5-5"], ["jd-chat", "kimi-k3"], + ["jd-gpt", "gpt-6-luna"], ["local", "mystery-1"], ["agy", "gemini-3.8-pro"], +].map(([provider, id]) => ({ id, provider, owned_by: provider }) as unknown as CatalogModel); +const slugs = routed.map(model => `${model.provider}/${model.id}`); +const pinned = "jd-claude/sonnet-5"; + +function priorities(order: string[]) { + const entries = buildCatalogEntriesFromObservedState({ + template: { slug: "gpt-5.5", display_name: "gpt-5.5", description: "Native GPT model", priority: 1, visibility: "list", tool_mode: "code" } as never, + gptSlugs: [], + goModels: routed, + featured: [pinned], + modelPickerOrder: order, + wsEnabled: false, + multiAgentMode: "default", + exactComboSlugs: new Set(), + accountSelectors: [], + suppressedBareNativeSlugs: new Set(), + disabledNativeAccountSlugs: new Set(), + multiAgentV2Enabled: false, + }); + return (entries as Record[]).map(entry => [entry.slug as string, entry.priority as number] as const) + .sort((a, b) => a[1] - b[1]); +} + +describe("picker order mode family in the Codex catalog", () => { + test("each family is one contiguous priority run, after the pinned row", () => { + const order = modelPickerOrder("family", slugs)!; + const ranked = priorities(order); + expect(ranked.map(([slug]) => slug)).toEqual([ + pinned, + "jd-gpt/gpt-6-luna", "jd-gpt/gpt-6.1-sol", + "agy/gemini-3.8-flash", "agy/gemini-3.8-pro", + "agy/claude-opus-5-5", + "xai/grok-4.7", + "tyler/deepseek-v4-pro", + "jd-chat/kimi-k3", "jd-chat/glm-5.2", + "local/mystery-1", + ]); + expect(ranked[0]).toEqual([pinned, 0]); + const families = ranked.slice(1).map(([slug]) => modelFamily(slug).id); + // No family id reappears after a different one started: one run per family. + expect(families.filter((id, i) => i === 0 || id !== families[i - 1])).toEqual([...new Set(families)]); + const priorityList = ranked.map(([, priority]) => priority); + expect(priorityList).toEqual([...priorityList].sort((a, b) => a - b)); + expect(new Set(priorityList).size).toBe(priorityList.length); + }); +}); diff --git a/tests/fixtures/test-layout-expected.json b/tests/fixtures/test-layout-expected.json index ebfabf37355..8c48f61570a 100644 --- a/tests/fixtures/test-layout-expected.json +++ b/tests/fixtures/test-layout-expected.json @@ -205,6 +205,7 @@ "cli-models-local-result.test.ts": "cli", "cli-models-custom-runtime.test.ts": "cli", "cli-models-order.test.ts": "cli", + "model-families.test.ts": "lib", "codex-catalog-family-order.test.ts": "codex-integration", "cli-models-display-name.test.ts": "cli", "cli-route-policy-write.test.ts": "cli", "cli-combo-parity.test.ts": "cli", diff --git a/tests/lib/model-families.test.ts b/tests/lib/model-families.test.ts new file mode 100644 index 00000000000..bc9a5c5a6c2 --- /dev/null +++ b/tests/lib/model-families.test.ts @@ -0,0 +1,66 @@ +import { describe, expect, test } from "bun:test"; +import { groupByModelFamily, MODEL_FAMILIES, MODEL_FAMILY_IDS, modelFamily } from "../../src/lib/model-families"; +import * as cli from "../../src/cli/model-picker-ordering"; +import * as gui from "../../gui/src/model-picker-order"; + +const id = (slug: string) => modelFamily(slug).id; + +describe("model family registry", () => { + test("table order is the declared id order and ends with the catch-all", () => { + expect(MODEL_FAMILIES.map(family => family.id)).toEqual([...MODEL_FAMILY_IDS]); + expect(MODEL_FAMILIES.slice(0, 5).map(family => family.id)).toEqual(["gpt", "gemini", "claude", "grok", "deepseek"]); + expect(MODEL_FAMILIES.at(-1)?.id).toBe("other"); + }); + + test.each([ + ["gpt-6.1-sol", "gpt"], + ["openai/gpt-5.5", "gpt"], + ["openai/o3-mini", "gpt"], + ["jd-chat/o4", "gpt"], + ["chatgpt-4o-latest", "gpt"], + ["google-antigravity/gemini-3.8-flash", "gemini"], + ["agy/gemini-3.8-flash", "gemini"], + ["agy/claude-opus-5-5-thinking", "claude"], + ["jd-claude/sonnet-5", "claude"], + ["anthropic/haiku-5.5", "claude"], + ["openrouter/anthropic/claude-sonnet-4", "claude"], + ["xai/grok-4.7", "grok"], + ["tyler/deepseek-v4-pro", "deepseek"], + ["openrouter/deepseek/deepseek-r1-distill-qwen-32b", "deepseek"], + ["opencode-go/qwen3-coder", "qwen"], + ["moonshot/kimi-k3", "kimi"], + ["jd-chat/glm-5.2", "glm"], + ["openrouter/z-ai/glm-4.6", "glm"], + ["minimax/MiniMax-M2", "minimax"], + ["openrouter/meta-llama/llama-3.3-70b", "llama"], + ["mistral/codestral-latest", "mistral"], + ["combo/mixed", "other"], + ["ollama/phi-4", "other"], + ["native-only", "other"], + ])("%s is %s", (slug, family) => { + expect(id(slug)).toBe(family as never); + }); + + test("the model part decides before the provider prefix, which is only a fallback", () => { + expect(id("claude-sub/gpt-6")).toBe("gpt"); + expect(id("gemini-relay/anthropic-opus")).toBe("claude"); + expect(id("kimi-coding/turbo")).toBe("kimi"); + expect(id("combo/gemini-or-claude")).toBe("gemini"); + }); + + test("grouping keeps registry order and each family's incoming order", () => { + const rows = ["x/grok-4", "x/gpt-b", "x/zzz", "x/claude-a", "x/gpt-a", "x/gemini-1"]; + const groups = groupByModelFamily(rows, row => row); + expect(groups.map(group => group.family.id)).toEqual(["gpt", "gemini", "claude", "grok", "other"]); + expect(groups[0]!.items).toEqual(["x/gpt-b", "x/gpt-a"]); + }); + + test("family mode makes each family one run, and the CLI and GUI ports agree", () => { + const slugs = ["a/grok-4", "b/gpt-5", "a/claude-opus", "a/deepseek-v4", "c/gemini-3", "a/gpt-6", "b/zzz", "b/claude-sonnet"]; + const expected = ["a/gpt-6", "b/gpt-5", "c/gemini-3", "a/claude-opus", "b/claude-sonnet", "a/grok-4", "a/deepseek-v4", "b/zzz"]; + expect(cli.modelPickerOrder("family", slugs)).toEqual(expected); + expect(gui.modelPickerOrder("family", slugs)).toEqual(expected); + expect(gui.isPickerOrderSaved({ pickerOrder: expected, pickerOrderMode: "family" })).toBe(true); + expect(cli.isPickerOrderSaved({ pickerOrder: expected, pickerOrderMode: "family" })).toBe(true); + }); +}); diff --git a/tests/routing/subagent-roster-retention.test.ts b/tests/routing/subagent-roster-retention.test.ts index 45c8fa124be..1c3394b9ad0 100644 --- a/tests/routing/subagent-roster-retention.test.ts +++ b/tests/routing/subagent-roster-retention.test.ts @@ -236,4 +236,11 @@ describe("picker updates preserve roster and persistence intent", () => { expect(result.catalogRefresh.status).toBe("failed"); expect(config.modelPickerOrder).toEqual(["alpha/one"]); }); + test("family is an accepted picker mode and is persisted", async () => { + const config = makeConfig(); + const ctx = context(config, { pickerOrder: ["alpha/one"], pickerOrderMode: "family" }); + const result = await (await handleAgentSettingsRoutes(ctx))!.json() as { pickerOrderMode: string | null }; + expect(result.pickerOrderMode).toBe("family"); + expect(config.modelPickerOrderMode).toBe("family"); + }); }); From 0017210a7ed52ab2e53edf9db788ae6b1b5f5c22 Mon Sep 17 00:00:00 2001 From: "Andrew (agent)" Date: Fri, 13 Nov 2026 18:08:34 -0500 Subject: [PATCH 3/7] feat(gui): group the Models page by model family and add the By family order Each provider card now lists its models under collapsible family headers (GPT, Gemini, Claude, ...) with a count, aria-expanded, and the collapsed state remembered in localStorage. A list with one family stays flat. The picker-order Select gains By family in all 11 locales. --- gui/src/components/FamilyGroupList.tsx | 50 +++++++++++++++ gui/src/i18n/de.ts | 3 + gui/src/i18n/en.ts | 3 + gui/src/i18n/fr.ts | 3 + gui/src/i18n/ja.ts | 3 + gui/src/i18n/ko.ts | 3 + gui/src/i18n/pt.ts | 3 + gui/src/i18n/ru.ts | 3 + gui/src/i18n/tr.ts | 3 + gui/src/i18n/vi.ts | 3 + gui/src/i18n/zh-TW.ts | 3 + gui/src/i18n/zh.ts | 3 + gui/src/model-family-groups.ts | 30 +++++++++ gui/src/pages/Models.tsx | 6 +- gui/src/pages/models-settings-summary.ts | 1 + gui/src/styles/model-family-groups.css | 46 ++++++++++++++ gui/tests/family-group-list.test.tsx | 77 ++++++++++++++++++++++++ 17 files changed, 241 insertions(+), 2 deletions(-) create mode 100644 gui/src/components/FamilyGroupList.tsx create mode 100644 gui/src/model-family-groups.ts create mode 100644 gui/src/styles/model-family-groups.css create mode 100644 gui/tests/family-group-list.test.tsx diff --git a/gui/src/components/FamilyGroupList.tsx b/gui/src/components/FamilyGroupList.tsx new file mode 100644 index 00000000000..9cd90029fe5 --- /dev/null +++ b/gui/src/components/FamilyGroupList.tsx @@ -0,0 +1,50 @@ +import { useState, type ReactNode } from "react"; +import { IconChevron } from "../icons"; +import { useT } from "../i18n"; +import { familyGroupKey, readCollapsedFamilies, toggleCollapsedFamily } from "../model-family-groups"; +import { groupByModelFamily } from "../../../src/lib/model-families"; +import "../styles/model-family-groups.css"; + +interface FamilyGroupListProps { + items: readonly T[]; + slugOf: (item: T) => string; + /** Namespaces the remembered collapsed state, so one provider's folds do not touch another's. */ + scope: string; + renderItem: (item: T) => ReactNode; +} + +/** + * Lists models under collapsible family headers (GPT, Gemini, Claude, ...). A list that holds a + * single family is rendered flat: one header over every row would only add a click. + */ +export function FamilyGroupList({ items, slugOf, scope, renderItem }: FamilyGroupListProps) { + const t = useT(); + const [collapsed, setCollapsed] = useState(() => readCollapsedFamilies()); + const groups = groupByModelFamily(items, slugOf); + if (groups.length < 2) return <>{items.map(renderItem)}; + return ( + <> + {groups.map(({ family, items: rows }) => { + const key = familyGroupKey(scope, family.id); + const open = !collapsed.has(key); + const name = family.id === "other" ? t("models.family.other") : family.label; + return ( +
+ + {open && rows.map(renderItem)} +
+ ); + })} + + ); +} diff --git a/gui/src/i18n/de.ts b/gui/src/i18n/de.ts index 234541ce8ca..a639bb70b17 100644 --- a/gui/src/i18n/de.ts +++ b/gui/src/i18n/de.ts @@ -245,6 +245,9 @@ export const de: Record = { "models.pickerOrder.default": "Standard", "models.pickerOrder.alphabetical": "A–Z nach Modell", "models.pickerOrder.provider": "Nach Anbieter", + "models.pickerOrder.family": "Nach Familie", + "models.family.other": "Andere", + "models.family.toggleLabel": "{family}: {count} Modelle", "models.pickerOrder.mostUsed": "Nutzungsschnappschuss", "models.pickerOrder.custom": "Eigene Reihenfolge", "models.pickerOrder.apply": "Reihenfolge anwenden", diff --git a/gui/src/i18n/en.ts b/gui/src/i18n/en.ts index 76381be2404..49f7c13bd31 100644 --- a/gui/src/i18n/en.ts +++ b/gui/src/i18n/en.ts @@ -246,6 +246,9 @@ export const en = { "models.pickerOrder.default": "Default", "models.pickerOrder.alphabetical": "A–Z by model", "models.pickerOrder.provider": "Group by provider", + "models.pickerOrder.family": "By family", + "models.family.other": "Other", + "models.family.toggleLabel": "{family}: {count} models", "models.pickerOrder.mostUsed": "Most used snapshot", "models.pickerOrder.custom": "Custom order", "models.pickerOrder.apply": "Apply order", diff --git a/gui/src/i18n/fr.ts b/gui/src/i18n/fr.ts index f0314b0c16e..cb82c8434c3 100644 --- a/gui/src/i18n/fr.ts +++ b/gui/src/i18n/fr.ts @@ -244,6 +244,9 @@ export const fr: Record = { "models.pickerOrder.default": "Par défaut", "models.pickerOrder.alphabetical": "A–Z par modèle", "models.pickerOrder.provider": "Par fournisseur", + "models.pickerOrder.family": "Par famille", + "models.family.other": "Autres", + "models.family.toggleLabel": "{family} : {count} modèles", "models.pickerOrder.mostUsed": "Instantané des usages", "models.pickerOrder.custom": "Ordre personnalisé", "models.pickerOrder.apply": "Appliquer l’ordre", diff --git a/gui/src/i18n/ja.ts b/gui/src/i18n/ja.ts index b71b131dd49..5c9e13583d6 100644 --- a/gui/src/i18n/ja.ts +++ b/gui/src/i18n/ja.ts @@ -244,6 +244,9 @@ export const ja: Record = { "models.pickerOrder.default": "デフォルト", "models.pickerOrder.alphabetical": "モデル名のA–Z順", "models.pickerOrder.provider": "プロバイダー別", + "models.pickerOrder.family": "ファミリー別", + "models.family.other": "その他", + "models.family.toggleLabel": "{family}:{count} 件のモデル", "models.pickerOrder.mostUsed": "使用量のスナップショット", "models.pickerOrder.custom": "カスタム順", "models.pickerOrder.apply": "順序を適用", diff --git a/gui/src/i18n/ko.ts b/gui/src/i18n/ko.ts index 399a227c363..c61db5ebc22 100644 --- a/gui/src/i18n/ko.ts +++ b/gui/src/i18n/ko.ts @@ -244,6 +244,9 @@ export const ko: Record = { "models.pickerOrder.default": "기본값", "models.pickerOrder.alphabetical": "모델 이름순", "models.pickerOrder.provider": "프로바이더별", + "models.pickerOrder.family": "계열별", + "models.family.other": "기타", + "models.family.toggleLabel": "{family}: 모델 {count}개", "models.pickerOrder.mostUsed": "사용량순 스냅샷", "models.pickerOrder.custom": "사용자 지정 순서", "models.pickerOrder.apply": "순서 적용", diff --git a/gui/src/i18n/pt.ts b/gui/src/i18n/pt.ts index 1b5c4960b76..6590a8a8314 100644 --- a/gui/src/i18n/pt.ts +++ b/gui/src/i18n/pt.ts @@ -314,6 +314,9 @@ export const pt: Record = { "models.pickerOrder.default": "Padrão", "models.pickerOrder.alphabetical": "A–Z por modelo", "models.pickerOrder.provider": "Agrupar por provedor", + "models.pickerOrder.family": "Agrupar por família", + "models.family.other": "Outros", + "models.family.toggleLabel": "{family}: {count} modelos", "models.pickerOrder.mostUsed": "Instantâneo dos mais usados", "models.pickerOrder.custom": "Ordem personalizada", "models.pickerOrder.apply": "Aplicar ordem", diff --git a/gui/src/i18n/ru.ts b/gui/src/i18n/ru.ts index 2771adadf00..1b93ba15883 100644 --- a/gui/src/i18n/ru.ts +++ b/gui/src/i18n/ru.ts @@ -244,6 +244,9 @@ export const ru: Record = { "models.pickerOrder.default": "По умолчанию", "models.pickerOrder.alphabetical": "По имени A–Z", "models.pickerOrder.provider": "По провайдеру", + "models.pickerOrder.family": "По семейству", + "models.family.other": "Прочие", + "models.family.toggleLabel": "{family}: моделей {count}", "models.pickerOrder.mostUsed": "Снимок использования", "models.pickerOrder.custom": "Свой порядок", "models.pickerOrder.apply": "Применить порядок", diff --git a/gui/src/i18n/tr.ts b/gui/src/i18n/tr.ts index c27997fc8b4..c354e204715 100644 --- a/gui/src/i18n/tr.ts +++ b/gui/src/i18n/tr.ts @@ -245,6 +245,9 @@ export const tr: Record = { "models.pickerOrder.default": "Varsayılan", "models.pickerOrder.alphabetical": "Model adına göre A–Z", "models.pickerOrder.provider": "Sağlayıcıya göre", + "models.pickerOrder.family": "Aileye göre", + "models.family.other": "Diğer", + "models.family.toggleLabel": "{family}: {count} model", "models.pickerOrder.mostUsed": "Kullanım anlık görüntüsü", "models.pickerOrder.custom": "Özel sıra", "models.pickerOrder.apply": "Sırayı uygula", diff --git a/gui/src/i18n/vi.ts b/gui/src/i18n/vi.ts index 930028388dc..c11fad96561 100644 --- a/gui/src/i18n/vi.ts +++ b/gui/src/i18n/vi.ts @@ -252,6 +252,9 @@ export const vi: Record = { "models.pickerOrder.default": "Mặc định", "models.pickerOrder.alphabetical": "A–Z theo model", "models.pickerOrder.provider": "Nhóm theo provider", + "models.pickerOrder.family": "Theo họ model", + "models.family.other": "Khác", + "models.family.toggleLabel": "{family}: {count} model", "models.pickerOrder.mostUsed": "Bản chụp dùng nhiều nhất", "models.pickerOrder.custom": "Thứ tự tuỳ chỉnh", "models.pickerOrder.apply": "Áp dụng thứ tự", diff --git a/gui/src/i18n/zh-TW.ts b/gui/src/i18n/zh-TW.ts index 33da090ccc0..497c4752bd1 100644 --- a/gui/src/i18n/zh-TW.ts +++ b/gui/src/i18n/zh-TW.ts @@ -242,6 +242,9 @@ export const zhTW: Record = { "models.pickerOrder.default": "預設", "models.pickerOrder.alphabetical": "依模型名稱 A–Z", "models.pickerOrder.provider": "依供應商分組", + "models.pickerOrder.family": "依家族", + "models.family.other": "其他", + "models.family.toggleLabel": "{family}:{count} 個模型", "models.pickerOrder.mostUsed": "使用量快照", "models.pickerOrder.custom": "自訂順序", "models.pickerOrder.apply": "套用順序", diff --git a/gui/src/i18n/zh.ts b/gui/src/i18n/zh.ts index fe8f2d4c4d9..f7b63304a93 100644 --- a/gui/src/i18n/zh.ts +++ b/gui/src/i18n/zh.ts @@ -244,6 +244,9 @@ export const zh: Record = { "models.pickerOrder.default": "默认", "models.pickerOrder.alphabetical": "按模型名 A–Z", "models.pickerOrder.provider": "按提供商分组", + "models.pickerOrder.family": "按家族", + "models.family.other": "其他", + "models.family.toggleLabel": "{family}:{count} 个模型", "models.pickerOrder.mostUsed": "使用量快照", "models.pickerOrder.custom": "自定义顺序", "models.pickerOrder.apply": "应用顺序", diff --git a/gui/src/model-family-groups.ts b/gui/src/model-family-groups.ts new file mode 100644 index 00000000000..b05efa5f826 --- /dev/null +++ b/gui/src/model-family-groups.ts @@ -0,0 +1,30 @@ +import type { StorageLike } from "./pages/models-shared"; + +export const FAMILY_COLLAPSED_KEY = "ocx-models-family-collapsed:v1"; + +/** Groups default to expanded, so the stored set holds only what the user collapsed. */ +export const familyGroupKey = (scope: string, familyId: string): string => `${scope}\u0000${familyId}`; + +export function readCollapsedFamilies(storage: StorageLike = localStorage): Set { + try { + const parsed = JSON.parse(storage.getItem(FAMILY_COLLAPSED_KEY) ?? "null") as unknown; + return Array.isArray(parsed) ? new Set(parsed.filter((value): value is string => typeof value === "string")) : new Set(); + } catch { + return new Set(); + } +} + +/** + * Flip one group and return the whole stored set. Every provider card owns its own list, so each + * toggle re-reads storage instead of trusting a stale in-memory copy and erasing a sibling's change. + */ +export function toggleCollapsedFamily(key: string, storage: StorageLike = localStorage): Set { + const next = readCollapsedFamilies(storage); + if (!next.delete(key)) next.add(key); + try { + storage.setItem(FAMILY_COLLAPSED_KEY, JSON.stringify([...next])); + } catch { + /* quota / private-mode: the toggle still applies for this session */ + } + return next; +} diff --git a/gui/src/pages/Models.tsx b/gui/src/pages/Models.tsx index f7e093760e9..2af997c5e5d 100644 --- a/gui/src/pages/Models.tsx +++ b/gui/src/pages/Models.tsx @@ -25,6 +25,7 @@ import { isModelPickerUsage, isPickerOrderSaved, isPickerOrderSettings, modelPickerOrder, modelPickerOrderMode, type ModelPickerOrderMode, type PickerOrderSettings, type PickerOrderSaved, type ModelPickerUsage, } from "../model-picker-order"; +import { FamilyGroupList } from "../components/FamilyGroupList"; import { startVisibilityPoll } from "../visibility-poll"; import { useModelVisibility } from "../use-model-visibility"; import { useDataSurface } from "../data-surface"; @@ -1693,7 +1694,7 @@ export default function Models({ apiBase, restartEpoch = 0, connected = false, c {freeOnlyActive && scoped.length === 0 && rows.length > 0 && (

{t("models.noFreeMatch")}

)} - {visible.map(m => { + m.namespaced} scope={provider} renderItem={m => { // The row reflects the same final-visibility answer as the count and the picker. const off = !isVisible(m); return ( @@ -1858,7 +1859,7 @@ export default function Models({ apiBase, restartEpoch = 0, connected = false, c })()} ); - })} + }} /> {remaining > 0 && ( + + ); + }) + )} + + + + ); +} diff --git a/gui/src/components/subagents-workspace/SubagentsWorkspace.tsx b/gui/src/components/subagents-workspace/SubagentsWorkspace.tsx index 46c95d21a30..3cfa39af60e 100644 --- a/gui/src/components/subagents-workspace/SubagentsWorkspace.tsx +++ b/gui/src/components/subagents-workspace/SubagentsWorkspace.tsx @@ -1,48 +1,16 @@ /** - * SubagentsWorkspace — a single stacked column for the Subagents tab: the featured roster - * (reorder; every edit saves itself), the model picker, then the settings. - * - * The previous rail layout listed the featured models twice — once as a rail group, once in - * the main pane — which read as a rendering bug rather than two views of one thing. There is - * also nothing here that needs two panes: picking a model is one toggle, and the per-model - * detail pane carried no information the row did not already show. - * - * The roster reads like an editable plan (React Bits `agent-plan-2`): numbered rows with bare - * move and remove icons, and the slots still free shown as empty rows, so "how many more can I - * add" needs no counting. The picker is a filterable table (`data-table-1`) whose add button - * turns into the selected (inverse) state once a model is in the order. - * - * The sticky strip is the same `SectionTabs` the Logs and Usage tabs use: every section stays - * in the document and scrolling still works: the strip only jumps to one and reports where - * you are. + * SubagentsWorkspace: a single stacked column for the Subagents tab, holding the delegation + * settings and the fallback chain. The pinned roster is not here; it lives in the Models page + * client model picker section, and the Subagents page only points at it. */ -import { useMemo, useState, type ReactNode } from "react"; -import { - IconArrowDown, - IconArrowUp, - IconBot, - IconCheck, - IconPlus, - IconSearch, - IconX, -} from "../../icons"; +import type { ReactNode } from "react"; import { useT } from "../../i18n/shared"; -import { Trans } from "../../i18n/provider"; -import { modelLabel } from "../../model-display"; -import { SectionTabs } from "../section-tabs"; import { sectionAnchorId } from "../../section-anchors"; -import { cn } from "@/lib/utils"; -import { CountPill, Frame, FrameBody, HelpTip } from "../v2-subagents/frame"; -import { iconButton, stepIndicator } from "../v2-subagents/frame-classes"; import SubagentDelegationSection from "./SubagentDelegationSection"; import type { DelegationPatch, DelegationModelOption, UltraModePatch, UltraModeState } from "../../pages/use-subagent-delegation"; export interface SubagentsWorkspaceProps { - available: string[]; fallbackAvailable?: string[]; - chosen: string[]; - onToggle: (m: string) => void; - onMove: (i: number, dir: -1 | 1) => void; fallback: string[]; fallbackPollMs: number; fallbackBusy: boolean; @@ -69,169 +37,17 @@ export interface SubagentsWorkspaceProps { settingsExtra?: ReactNode; } -export const FEATURED_MAX = 5; - export default function SubagentsWorkspace({ - available, fallbackAvailable, - chosen, - onToggle, - onMove, fallback, fallbackPollMs, fallbackBusy, onFallbackChange, onFallbackPollMsChange, onFallbackSave, delegation, settingsExtra, }: SubagentsWorkspaceProps) { const t = useT(); - const [query, setQuery] = useState(""); - - const chosenSet = useMemo(() => new Set(chosen), [chosen]); - const full = chosen.length >= FEATURED_MAX; - const freeSlots = Math.max(0, FEATURED_MAX - chosen.length); - - const availableFiltered = useMemo(() => { - const q = query.trim().toLowerCase(); - return available.filter(m => !q || m.toLowerCase().includes(q)); - }, [available, query]); - - const tabs = useMemo(() => [ - { id: "featured", label: t("sub.featured"), meta: `${chosen.length}/${FEATURED_MAX}` }, - { id: "models", label: t("sub.models"), meta: String(availableFiltered.length) }, - { id: "settings", label: t("sub.settings") }, - ], [t, chosen.length, availableFiltered.length]); return (
-
- {t("sub.featured")}} - meta={<> - {chosen.length}/{FEATURED_MAX} - {/* One-time teaching ("this order is the picker order") rides on a focusable - "?" beside the counter instead of a paragraph above the list. */} - - } - lede={t("subagentsV2.featuredLede")} - > - - {chosen.map((m, i) => ( -
  • - {i + 1} - {modelLabel(m)} - - - - - -
  • - ))} - {Array.from({ length: freeSlots }, (_, k) => ( -
  • - - - {chosen.length === 0 && k === 0 ? t("sub.noneSelected") : t("subagentsV2.emptySlot")} - -
  • - ))} -
    - - - {availableFiltered.length}} - lede={full ? t("sub.workspace.featuredFull") : t("subagentsV2.modelsLede", { max: FEATURED_MAX })} - actions={ - - } - > - - {availableFiltered.length === 0 ? ( -
  • {t("sub.noModels")}
  • - ) : ( - availableFiltered.map(m => { - const isFeatured = chosenSet.has(m); - const priority = isFeatured ? chosen.indexOf(m) + 1 : null; - // A featured row can always be removed; only adding is blocked when full. - const blocked = !isFeatured && full; - return ( -
  • -
  • - ); - }) - )} -
    - -
    void; + onJump: (target: "delegation" | "pin") => void; } -export function InEffectSummary({ chosen, max, firstModel, firstEffort, pin, onJump }: Props) { +export function InEffectSummary({ firstModel, firstEffort, pin, onJump }: Props) { const t = useT(); - const top = chosen[0]; return (

    {t("subagentsV2.nowTitle")}

    -
    - onJump("featured")} - /> +
    ; export const modelsV2Copy = copyTable("modelsV2", rows); diff --git a/gui/src/i18n/v2-pages/subagents-copy.ts b/gui/src/i18n/v2-pages/subagents-copy.ts index cf3bf82d6b1..e1acaa0443e 100644 --- a/gui/src/i18n/v2-pages/subagents-copy.ts +++ b/gui/src/i18n/v2-pages/subagents-copy.ts @@ -22,21 +22,6 @@ const rows = { "In effect now", "지금 적용 중", "Aktuell wirksam", "En vigueur", "当前生效", "目前生效", "Сейчас действует", "現在の設定", "Şu an geçerli", "Đang áp dụng", "Em vigor agora", ], - nowOrder: [ - "Codex picker, first choice", "Codex 추천 1순위", "Codex-Auswahl, erste Wahl", "Sélecteur Codex, premier choix", - "Codex 推荐首选", "Codex 推薦首選", "Codex: первый вариант", "Codex 推奨の 1 位", "Codex seçicisi, ilk tercih", - "Codex: lựa chọn đầu tiên", "Seletor do Codex, primeira opção", - ], - nowOrderNone: [ - "Not set, catalog order", "설정 안 함, 카탈로그 순서", "Nicht gesetzt, Katalogreihenfolge", "Non défini, ordre du catalogue", - "未设置,按目录顺序", "未設定,依目錄順序", "Не задано, порядок каталога", "未設定(カタログ順)", "Ayarlanmadı, katalog sırası", - "Chưa đặt, theo thứ tự danh mục", "Não definido, ordem do catálogo", - ], - nowOrderCaption: [ - "{n} of {max} picked", "{max}개 중 {n}개 선택", "{n} von {max} gewählt", "{n} sur {max} choisis", - "已选 {n}/{max}", "已選 {n}/{max}", "Выбрано {n} из {max}", "{max} 件中 {n} 件を選択", "{max} içinden {n} seçildi", - "Đã chọn {n}/{max}", "{n} de {max} escolhidos", - ], firstNoneCaption: [ "Codex picks on its own", "Codex가 알아서 고릅니다", "Codex wählt selbst", "Codex choisit seul", "由 Codex 自行选择", "由 Codex 自行選擇", "Codex выбирает сам", "Codex が自分で選びます", "Codex kendisi seçer", @@ -214,6 +199,45 @@ const rows = { "Bề mặt, ghi chú chia việc, ủy quyền chủ động", "Superfície, nota de divisão, delegação proativa", ], + pinnedPointer: [ + "Claude Code's ocx-* agent types and Codex's {cmd} candidates come from Pinned in picker:", + "Claude Code의 ocx-* 에이전트 유형과 Codex {cmd} 후보는 '선택기 상단 고정'에서 옵니다:", + "Die ocx-*-Agententypen von Claude Code und die {cmd}-Kandidaten von Codex stammen aus „In der Auswahl angeheftet“:", + "Les types d'agents ocx-* de Claude Code et les candidats {cmd} de Codex viennent de « Épinglés dans le sélecteur » :", + "Claude Code 的 ocx-* 子代理类型和 Codex {cmd} 的候选模型来自「选择器置顶」:", + "Claude Code 的 ocx-* 子代理類型和 Codex {cmd} 的候選模型來自「選擇器置頂」:", + "Типы агентов ocx-* в Claude Code и кандидаты {cmd} в Codex берутся из «Закреплены в выборе модели»:", + "Claude Code の ocx-* エージェント種別と Codex {cmd} の候補は「ピッカー上部に固定」から来ます:", + "Claude Code'un ocx-* ajan türleri ve Codex {cmd} adayları \"Seçicide sabitlenenler\" listesinden gelir:", + "Các loại tác tử ocx-* của Claude Code và ứng viên {cmd} của Codex lấy từ \"Ghim trong bộ chọn\":", + "Os tipos de agente ocx-* do Claude Code e os candidatos de {cmd} do Codex vêm de \"Fixados no seletor\":", + ], + pinnedNone: [ + "nothing pinned yet", + "아직 고정한 모델 없음", + "noch nichts angeheftet", + "rien d'épinglé pour l'instant", + "还没有置顶模型", + "還沒有置頂模型", + "пока ничего не закреплено", + "まだ固定したモデルはありません", + "henüz sabitlenen yok", + "chưa ghim mô hình nào", + "nada fixado ainda", + ], + pinnedEdit: [ + "Edit on Models", + "모델 화면에서 편집", + "Unter Modelle bearbeiten", + "Modifier dans Modèles", + "去模型页修改", + "前往模型頁修改", + "Изменить в «Модели»", + "モデル画面で編集", + "Modeller'de düzenle", + "Sửa trong Models", + "Editar em Modelos", + ], } satisfies Record; export const subagentsV2Copy = copyTable("subagentsV2", rows); diff --git a/gui/src/pages/Models.tsx b/gui/src/pages/Models.tsx index f7e093760e9..56fb291905a 100644 --- a/gui/src/pages/Models.tsx +++ b/gui/src/pages/Models.tsx @@ -1,5 +1,5 @@ import { CodexStaleBanner } from "../components/codex-stale-banner"; -import ModelCatalogSettingsPanels from "../components/ModelCatalogSettingsPanels"; +import ClientModelPickerSection from "../components/ClientModelPickerSection"; import ModelDisplayNameDialog from "../components/ModelDisplayNameDialog"; import ModelPriceDialog from "../components/ModelPriceDialog"; import ModelSettingsDialog from "../components/ModelSettingsDialog"; @@ -2107,36 +2107,10 @@ export default function Models({ apiBase, restartEpoch = 0, connected = false, c
    -
    - {t("models.pickerOrder.label")} -