dsh-codex-subscription 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -598,6 +598,7 @@ window.__ModuleLoader__.load({
598
598
  "preferences/update",
599
599
  "default-model/status",
600
600
  "default-model/select",
601
+ "default-model/reset",
601
602
  "predictions/generate",
602
603
  "runtime/status",
603
604
  "runtime/install",
@@ -1478,12 +1479,14 @@ window.__ModuleLoader__.load({
1478
1479
  otherModelsTitle: "在 DeepSeek 等其他模型的对话里使用订阅功能",
1479
1480
  otherModels_on: "开",
1480
1481
  otherModels_off: "关",
1481
- otherModelsHint: "关闭后,用 DeepSeek 等非 Codex 模型对话时不再使用订阅的联网搜索(改用 DSH 搜索)、图片生成和 ChatGPT 连接器;Codex 订阅模型不受影响。手机远程控制和语音对话由你主动开启或发起,不受这个开关影响,可在本页单独设置。",
1482
+ otherModelsHint: "关闭后,用 DeepSeek 等非 Codex 模型对话时不再使用订阅的联网搜索(改用 DSH 搜索)、图片生成和 ChatGPT 连接器;Codex 订阅模型不受影响。手机远程控制和语音对话由你主动开启或发起,不受这个开关影响,可在“手机与更多”页单独设置。",
1482
1483
  advancedModelSearch: "模型与搜索",
1483
1484
  modelsSectionTitle: "模型",
1484
1485
  searchSectionTitle: "搜索",
1485
1486
  defaultModelTitle: "默认模型",
1486
1487
  defaultModelHint: "新建会话时默认使用的模型,与在对话里切换模型写的是同一处 DSH 默认模型设置。",
1488
+ defaultModelReset: "恢复 DSH 默认",
1489
+ defaultModelResetHint: "选择“恢复 DSH 默认”可清除保存的模型选择,恢复上层配置中的默认值,不影响已有会话。",
1487
1490
  defaultModelFollow: "跟随 DSH 默认",
1488
1491
  defaultModelFollowHint: "当前跟随 DSH 默认模型:{value}。选择一个 Codex 模型,之后每次新建会话都用它。",
1489
1492
  defaultModelUnknown: "未知",
@@ -1502,8 +1505,6 @@ window.__ModuleLoader__.load({
1502
1505
  connectorsMode_read: "模型只能读取(搜邮件、读文件、查 PR),不会修改任何数据。",
1503
1506
  connectorsMode_ask: "发邮件、改文件等写操作每次都会弹出确认,你批准后才执行。",
1504
1507
  connectorsMode_write: "写操作直接执行,不再弹出确认,误操作无法撤回,请谨慎使用。",
1505
- hintMore: "展开",
1506
- hintLess: "收起",
1507
1508
  connectors_off: "关闭",
1508
1509
  connectors_read: "只读",
1509
1510
  connectors_ask: "询问后写入",
@@ -2085,24 +2086,41 @@ window.__ModuleLoader__.load({
2085
2086
  pacePart_afternoon: "下午",
2086
2087
  pacePart_evening: "晚上",
2087
2088
  pacePart_night: "夜里",
2088
- state_otherModels_on: "现在:开启。DeepSeek 等模型的对话也能用订阅的搜索、生图和连接器。关闭后,只有 GPT / Codex 对话能用,DeepSeek 等继续用 DSH 自带搜索,不能生图或用连接器。",
2089
- state_otherModels_off: "现在:关闭。只有 GPT / Codex 对话能用订阅的搜索、生图和连接器;DeepSeek 等继续用 DSH 自带搜索,不能生图或用连接器。开启后,DeepSeek 等模型的对话也能用它们。",
2090
- state_imageGeneration_on: "现在:开启。模型可以用你的订阅画新图。关闭后,对话里不能让模型画图。",
2091
- state_imageGeneration_off: "现在:关闭。对话里不能让模型画图。开启后,模型可以用你的订阅画新图。",
2092
- state_imageEditing_on: "现在:开启。模型可以按参考图改图,也能在图上圈出区域接着改。关闭后只能画新图。",
2093
- state_imageEditing_off: "现在:关闭。模型只能画新图,不能改图。开启后,可以按参考图改图。",
2094
- state_imageShortcut_on: "现在:开启。在输入框打「@」,列表里会出现「生成图片」。关闭后没有这个入口。",
2095
- state_imageShortcut_off: "现在:关闭。输入框里没有「@生图」入口。开启后,打「@」就能选「生成图片」。",
2096
- state_imageViewer_on: "现在:开启。点对话里的图片可以放大、拖动、标注、下载。关闭后用 DSH 自带的图片查看。",
2097
- state_imageViewer_off: "现在:关闭。用 DSH 自带的图片查看。开启后可以放大、拖动、标注、下载。",
2098
- state_sketchBoard_on: "现在:开启。输入框旁有画笔按钮,点开是画板,可以自己画,也可以画给模型当参考。关闭后没有画笔按钮。",
2099
- state_sketchBoard_off: "现在:关闭。输入框旁没有画笔按钮。开启后会出现画笔,点开是画板。",
2100
- state_sketchAgent_on: "现在:开启。在对话里发「@sketch」加要求,Agent 会在画板上一笔一笔画,你能看着它画。关闭后「@sketch」不可用。",
2101
- state_sketchAgent_off: "现在:关闭。「@sketch」不可用。开启后,Agent 能在画板上画。",
2102
- state_voice_on: "现在:开启。输入框没有内容时,发送键变成语音键,点一下就能说话;声音会发送给 OpenAI 处理,首次使用需要允许麦克风。关闭后恢复成普通发送键。",
2103
- state_voice_off: "现在:关闭。发送键就是普通发送键。开启后,输入框为空时它会变成语音键,点一下就能说话(声音会发送给 OpenAI 处理)。",
2104
- state_remote_on: "现在:开启。手机上的 ChatGPT App 可以看到并指挥这台电脑上的 DSH,电脑要开机联网。关闭后手机看不到这台电脑。",
2105
- state_remote_off: "现在:关闭。手机看不到这台电脑。开启后,可以用手机上的 ChatGPT App 指挥这台电脑上的 DSH。",
2089
+ state_predictions_on: "已开启,建议可用时按 Tab 填入草稿。",
2090
+ state_predictions_off: "已关闭,不会发起输入预测请求。",
2091
+ state_autoQuotaRetry_on: "额度耗尽后可自动等待短时额度恢复并重试。",
2092
+ state_autoQuotaRetry_off: "额度耗尽后不自动等待恢复并重试。",
2093
+ state_compaction_on: "已开启,长上下文由 Codex 自动压缩。",
2094
+ state_compaction_off: "已关闭云端压缩,继续使用 DSH 压缩。",
2095
+ state_reasoningCache_on: "已开启,支持的模型尽量复用推理缓存。",
2096
+ state_reasoningCache_off: "已关闭此优化,普通缓存仍可使用。",
2097
+ searchState_auto: "按当前模型自动选择搜索来源。",
2098
+ searchState_dsh: "当前选择 DSH;失败时不切换 Codex。",
2099
+ searchState_codex: "当前选择 Codex;失败时不切换 DSH。",
2100
+ fetchState_dsh: "使用 DSH 读取网页正文。",
2101
+ fetchState_codex: "使用 Codex 读取网页正文。",
2102
+ contextState_standard: "跟随各模型的默认上下文预算。",
2103
+ contextState_extended: "使用各模型支持的扩展上下文预算。",
2104
+ contextState_custom: "使用下方为各模型设置的自定义预算。",
2105
+ defaultModelCurrent: "当前默认模型:{value}",
2106
+ state_otherModels_on: "已允许 DeepSeek 等模型使用订阅工具。",
2107
+ state_otherModels_off: "订阅工具仅供 GPT / Codex 模型使用。",
2108
+ state_imageGeneration_on: "已开启,可在对话中生成新图片。",
2109
+ state_imageGeneration_off: "已关闭,不提供新图片生成。",
2110
+ state_imageEditing_on: "已开启,可按参考图或标注区域编辑图片。",
2111
+ state_imageEditing_off: "已关闭,不提供参考图编辑。",
2112
+ state_imageShortcut_on: "已开启,@ 菜单显示“生成图片”入口。",
2113
+ state_imageShortcut_off: "已关闭,@ 菜单不显示生图入口。",
2114
+ state_imageViewer_on: "已开启增强图片查看与标注。",
2115
+ state_imageViewer_off: "增强图片查看与标注未同时开启。",
2116
+ state_sketchBoard_on: "已开启,输入框旁显示画笔入口。",
2117
+ state_sketchBoard_off: "已关闭,输入框旁不显示画笔入口。",
2118
+ state_sketchAgent_on: "已开启,可用 @sketch 发起绘制。",
2119
+ state_sketchAgent_off: "已关闭,@sketch 绘图不可用。",
2120
+ state_voice_on: "语音入口已开启,空草稿时可发起通话。",
2121
+ state_voice_off: "语音入口已关闭,使用普通发送键。",
2122
+ state_remote_on: "已开启,手机可连接这台 DSH。",
2123
+ state_remote_off: "已关闭,手机无法连接这台 DSH。",
2106
2124
  diagnosticsAttention: "有 {count} 项需要注意",
2107
2125
  diagnosticsNotes: "{count} 条提示信息",
2108
2126
  diagnosticsAdvanced: "完整诊断(高级)",
@@ -2378,12 +2396,14 @@ window.__ModuleLoader__.load({
2378
2396
  otherModelsTitle: "Use subscription features in conversations on other models (DeepSeek, …)",
2379
2397
  otherModels_on: "On",
2380
2398
  otherModels_off: "Off",
2381
- otherModelsHint: "When off, conversations on DeepSeek and other non-Codex models no longer use subscription web search (DSH search is used instead), image generation or ChatGPT connectors; Codex subscription models are not affected. Phone remote control and voice calls are started by you and are not affected by this switch; set them separately on this page.",
2399
+ otherModelsHint: "When off, conversations on DeepSeek and other non-Codex models no longer use subscription web search (DSH search is used instead), image generation or ChatGPT connectors; Codex subscription models are not affected. Phone remote control and voice calls are started by you and are not affected by this switch; set them separately under Phone & more.",
2382
2400
  advancedModelSearch: "Models and search",
2383
2401
  modelsSectionTitle: "Models",
2384
2402
  searchSectionTitle: "Search",
2385
2403
  defaultModelTitle: "Default model",
2386
2404
  defaultModelHint: "The model a new conversation opens with. This writes the same DSH default model setting as switching the model inside a chat.",
2405
+ defaultModelReset: "Restore DSH default",
2406
+ defaultModelResetHint: "Choose “Restore DSH default” to clear the saved selection and use the inherited DSH configuration. Existing conversations are unchanged.",
2387
2407
  defaultModelFollow: "Follow DSH default",
2388
2408
  defaultModelFollowHint: "Following the DSH default: {value}. Pick a Codex model to make every new conversation start with it.",
2389
2409
  defaultModelUnknown: "unknown",
@@ -2402,8 +2422,6 @@ window.__ModuleLoader__.load({
2402
2422
  connectorsMode_read: "Models can only read (search mail, read files, look up pull requests) and never change data.",
2403
2423
  connectorsMode_ask: "Anything that changes data, such as sending mail or editing files, asks for your approval every time.",
2404
2424
  connectorsMode_write: "Changing actions run immediately without a prompt and cannot be undone, so use this carefully.",
2405
- hintMore: "More",
2406
- hintLess: "Less",
2407
2425
  connectors_off: "Off",
2408
2426
  connectors_read: "Read-only",
2409
2427
  connectors_ask: "Write after asking",
@@ -2985,24 +3003,41 @@ window.__ModuleLoader__.load({
2985
3003
  pacePart_afternoon: "afternoon",
2986
3004
  pacePart_evening: "evening",
2987
3005
  pacePart_night: "night",
2988
- state_otherModels_on: "Now: on. Conversations on DeepSeek and other models can also use the subscription for search, images and connectors. Turning it off limits that to GPT / Codex conversations; DeepSeek and others keep DSH search and cannot generate images or use connectors.",
2989
- state_otherModels_off: "Now: off. Only GPT / Codex conversations use the subscription for search, images and connectors; DeepSeek and others keep DSH search and cannot generate images or use connectors. Turning it on lets them use these too.",
2990
- state_imageGeneration_on: "Now: on. The model can draw new pictures with your subscription. Turning it off stops the model from drawing in conversations.",
2991
- state_imageGeneration_off: "Now: off. The model cannot draw in conversations. Turning it on lets it draw new pictures with your subscription.",
2992
- state_imageEditing_on: "Now: on. The model can change a picture from a reference, or circle a region and keep editing. Turning it off leaves only new pictures.",
2993
- state_imageEditing_off: "Now: off. The model can only draw new pictures, not change one. Turning it on allows editing from a reference.",
2994
- state_imageShortcut_on: "Now: on. Type \"@\" in the composer and \"Generate image\" appears in the list. Turning it off removes that entry.",
2995
- state_imageShortcut_off: "Now: off. The composer has no \"@image\" entry. Turning it on lets you type \"@\" and pick \"Generate image\".",
2996
- state_imageViewer_on: "Now: on. Click a picture in the conversation to zoom, pan, annotate and download. Turning it off uses the built-in DSH viewer.",
2997
- state_imageViewer_off: "Now: off. The built-in DSH viewer is used. Turning it on adds zoom, pan, annotation and download.",
2998
- state_sketchBoard_on: "Now: on. A pen button next to the composer opens the board: draw yourself, or draw for the model as a reference. Turning it off removes the button.",
2999
- state_sketchBoard_off: "Now: off. There is no pen button. Turning it on adds one that opens the board.",
3000
- state_sketchAgent_on: "Now: on. Send \"@sketch\" with a request and the agent draws on the board while you watch. Turning it off disables \"@sketch\".",
3001
- state_sketchAgent_off: "Now: off. \"@sketch\" is unavailable. Turning it on lets the agent draw on the board.",
3002
- state_voice_on: "Now: on. With an empty message box the send button becomes a voice button: tap it and talk. Your voice goes to OpenAI; the first use asks for the microphone. Turning it off restores the plain send button.",
3003
- state_voice_off: "Now: off. The send button is the plain send button. Turning it on makes it a voice button while the box is empty (your voice goes to OpenAI).",
3004
- state_remote_on: "Now: on. The ChatGPT app on your phone can see and control the DSH on this computer; the computer must stay on and online. Turning it off hides this computer from the phone.",
3005
- state_remote_off: "Now: off. The phone cannot see this computer. Turning it on lets the ChatGPT app on your phone control the DSH here.",
3006
+ state_predictions_on: "On: press Tab when a suggestion is available.",
3007
+ state_predictions_off: "Off: no input-prediction requests are made.",
3008
+ state_autoQuotaRetry_on: "Waits for confirmed short-window quota recovery and retries.",
3009
+ state_autoQuotaRetry_off: "Does not wait and retry automatically after quota exhaustion.",
3010
+ state_compaction_on: "On: Codex handles long-context compaction.",
3011
+ state_compaction_off: "Cloud compaction is off; DSH compaction is used.",
3012
+ state_reasoningCache_on: "On: supported models may reuse reasoning context.",
3013
+ state_reasoningCache_off: "This optimization is off; normal caching remains available.",
3014
+ searchState_auto: "Search routing follows the current model.",
3015
+ searchState_dsh: "Uses DSH search without falling back to Codex.",
3016
+ searchState_codex: "Uses Codex search without falling back to DSH.",
3017
+ fetchState_dsh: "Reads webpage content through DSH.",
3018
+ fetchState_codex: "Reads webpage content through Codex.",
3019
+ contextState_standard: "Uses each model’s default context budget.",
3020
+ contextState_extended: "Uses the extended context budget supported by each model.",
3021
+ contextState_custom: "Uses the per-model budgets configured below.",
3022
+ defaultModelCurrent: "Current default: {value}",
3023
+ state_otherModels_on: "Non-Codex models may use subscription tools.",
3024
+ state_otherModels_off: "Subscription tools are limited to GPT / Codex models.",
3025
+ state_imageGeneration_on: "On: new images can be generated in conversations.",
3026
+ state_imageGeneration_off: "Off: new-image generation is unavailable.",
3027
+ state_imageEditing_on: "On: edit pictures from references or annotated regions.",
3028
+ state_imageEditing_off: "Off: reference-image editing is unavailable.",
3029
+ state_imageShortcut_on: "On: “Generate image” appears in the @ menu.",
3030
+ state_imageShortcut_off: "Off: image generation is hidden from the @ menu.",
3031
+ state_imageViewer_on: "Enhanced image viewing and annotation are on.",
3032
+ state_imageViewer_off: "Enhanced viewing and annotation are not both enabled.",
3033
+ state_sketchBoard_on: "On: the pen button appears beside the composer.",
3034
+ state_sketchBoard_off: "Off: the pen button is hidden from the composer.",
3035
+ state_sketchAgent_on: "On: use @sketch to ask the agent to draw.",
3036
+ state_sketchAgent_off: "Off: @sketch drawing is unavailable.",
3037
+ state_voice_on: "Voice is on; start a call when the draft is empty.",
3038
+ state_voice_off: "Voice is off; the normal send button is used.",
3039
+ state_remote_on: "On: this DSH is available to your phone.",
3040
+ state_remote_off: "Off: this DSH is unavailable to your phone.",
3006
3041
  diagnosticsAttention: "{count} item(s) need attention",
3007
3042
  diagnosticsNotes: "{count} note(s)",
3008
3043
  diagnosticsAdvanced: "Full report (advanced)",
@@ -3205,13 +3240,6 @@ window.__ModuleLoader__.load({
3205
3240
  .codexSubscriptionPreferenceLabel{display:flex;align-items:center;gap:6px}
3206
3241
  .codexSubscriptionPreference>.codexSubscriptionPreferenceCopy{flex:1 1 240px}
3207
3242
  .codexSubscriptionPreferenceHint{max-width:none;font-size:11px;line-height:17px;color:var(--dsw-alias-label-tertiary)}
3208
- .codexSubscriptionHintText{display:block}
3209
- .codexSubscriptionHintFold[data-fold=true] .codexSubscriptionHintText{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
3210
- .codexSubscriptionHintToggle{display:inline-flex;align-items:center;gap:3px;margin-top:2px;padding:0;border:0;background:none;font:inherit;font-size:11px;line-height:17px;color:var(--dsw-alias-label-secondary);cursor:pointer}
3211
- .codexSubscriptionHintToggle::after{content:"";width:5px;height:5px;margin-top:-2px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);transition:transform .15s}
3212
- .codexSubscriptionHintFold[data-open=true] .codexSubscriptionHintToggle::after{margin-top:2px;transform:rotate(-135deg)}
3213
- .codexSubscriptionHintToggle:hover{color:var(--dsw-alias-label-primary)}
3214
- .codexSubscriptionHintToggle:focus-visible{outline:2px solid var(--dsw-alias-border-l3);outline-offset:1px;border-radius:3px}
3215
3243
  .codexSubscriptionPreferenceStack{margin-top:6px;padding-top:10px;border-top:1px solid var(--dsw-alias-border-l2)}
3216
3244
  .codexSubscriptionPreferenceStack>.codexSubscriptionQuotaModes{flex:1 1 100%;margin-left:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
3217
3245
  .codexSubscriptionPreferenceStack .codexSubscriptionQuotaMode{min-height:30px;padding:4px 8px;text-align:center;white-space:normal;line-height:16px}
@@ -3470,7 +3498,7 @@ window.__ModuleLoader__.load({
3470
3498
  .codexSubscriptionSettingRows>.codexImagePreference+.codexImagePreference{border-top:1px solid var(--dsw-alias-border-l2)}
3471
3499
  .codexSubscriptionDiagnostics .codexSubscriptionSectionHead{align-items:flex-start;flex-direction:column;gap:12px}
3472
3500
  .codexSubscriptionDiagnostics .codexSubscriptionSectionTitle{display:flex;flex-direction:column;gap:5px}
3473
- .codexSubscriptionRemotePair{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:8px}.codexSubscriptionRemoteQr{width:168px;height:168px;flex:none;border-radius:12px;overflow:hidden;background:#fff}.codexSubscriptionRemoteQr svg{display:block;width:100%;height:100%}.codexSubscriptionRemoteCode{margin:6px 0;font:600 20px/28px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;user-select:all}
3501
+ .codexSubscriptionRemotePair{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:8px}.codexSubscriptionRemotePair>div:not(.codexSubscriptionRemoteQr){flex:1 1 220px;min-width:0}.codexSubscriptionRemoteQr{width:168px;height:168px;flex:none;border-radius:12px;overflow:hidden;background:#fff}.codexSubscriptionRemoteQr svg{display:block;width:100%;height:100%}.codexSubscriptionRemoteCode{margin:6px 0;font:600 20px/28px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;user-select:all}
3474
3502
  .codexSubscriptionStorageMeter{display:flex;flex-direction:column;gap:9px;padding:12px;border-radius:10px;background:var(--dsw-alias-bg-module-platform)}
3475
3503
  .codexSubscriptionStorageHead{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
3476
3504
  .codexSubscriptionStorageTitle{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;min-width:0}
@@ -3540,9 +3568,6 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
3540
3568
  .codexSubscriptionSearchOptions>summary>span{float:none;margin-left:auto;font-weight:400}
3541
3569
  .codexSubscriptionSearchOptions>summary::after{margin-left:6px}
3542
3570
  .codexSubscriptionRuntime summary{font-size:12px}
3543
- .codexSubscriptionHintToggle{margin:2px 0 0 -6px;padding:1px 6px;border-radius:6px;font-size:12px;font-weight:500;color:var(--dsw-alias-label-primary);transition:background .12s}
3544
- .codexSubscriptionHintToggle::after{width:6px;height:6px}
3545
- .codexSubscriptionHintToggle:hover{background:var(--dsw-alias-interactive-bg-hover)}
3546
3571
 
3547
3572
  /* Feature overview: one row per feature, a sentence, a switch and optional options */
3548
3573
  .codexFeatureOverview{display:flex;flex-direction:column;gap:0}
@@ -3585,7 +3610,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
3585
3610
  .codexFlat section>.codexSubscriptionPreference:last-child,.codexFlat .codexSubscriptionCard>.codexSubscriptionPreference:last-child,.codexFlat section>.codexFeatureRow:last-of-type,.codexFlat section>div:last-child>.codexSubscriptionPreference:last-child,.codexFlat .codexAdvancedBody>.codexSubscriptionPreference:last-child{border-bottom:0}
3586
3611
  .codexFlat .codexSubscriptionPreferenceLabel,.codexFlat .codexFeatureTitle{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:400;line-height:20px;min-height:20px;color:var(--dsw-alias-label-primary)}
3587
3612
  .codexFlat .codexSubscriptionPreferenceLabel small,.codexFlat .codexFeatureTitle small{line-height:16px;height:16px;display:inline-flex;align-items:center}
3588
- .codexFlat .codexSubscriptionPreferenceHint,.codexFlat .codexFeatureSummary,.codexFlat .codexSubscriptionHintText{font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
3613
+ .codexFlat .codexSubscriptionPreferenceHint,.codexFlat .codexFeatureSummary{font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
3589
3614
  .codexFlat .codexSubscriptionPreferenceCopy{gap:0}
3590
3615
  .codexFlat .codexSubscriptionDivider{display:none}
3591
3616
  .codexFlat .codexSubscriptionQuotaModes{background:var(--dsw-alias-bg-module-platform);border-radius:10px;padding:2px;gap:2px;min-height:32px;box-sizing:border-box}
@@ -4616,6 +4641,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4616
4641
  const INITIAL = Object.freeze({
4617
4642
  status: "loading",
4618
4643
  available: false,
4644
+ resetAvailable: false,
4619
4645
  managed: false,
4620
4646
  provider: void 0,
4621
4647
  model: void 0,
@@ -4627,6 +4653,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4627
4653
  status: "ready",
4628
4654
  error: false,
4629
4655
  available: value?.available === true,
4656
+ resetAvailable: value?.resetAvailable === true,
4630
4657
  managed: value?.managed === true,
4631
4658
  provider: value?.provider,
4632
4659
  model: value?.model,
@@ -4668,7 +4695,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4668
4695
  });
4669
4696
  }
4670
4697
  };
4671
- const select = async (model) => {
4698
+ const save = async (endpoint, payload) => {
4672
4699
  if (disposed) return false;
4673
4700
  const current = ++generation;
4674
4701
  publish({
@@ -4677,7 +4704,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4677
4704
  });
4678
4705
  if (disposed || current !== generation) return false;
4679
4706
  try {
4680
- const value = unwrap(await rpc.call(CHANNEL, "default-model/select", { model }));
4707
+ const value = unwrap(await rpc.call(CHANNEL, endpoint, payload));
4681
4708
  if (disposed || current !== generation) return false;
4682
4709
  publish({
4683
4710
  ...adopt(value),
@@ -4701,7 +4728,8 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
4701
4728
  return () => listeners.delete(listener);
4702
4729
  },
4703
4730
  load,
4704
- select,
4731
+ select: (model) => save("default-model/select", { model }),
4732
+ reset: () => save("default-model/reset", {}),
4705
4733
  dispose: () => {
4706
4734
  if (disposed) return;
4707
4735
  disposed = true;
@@ -5097,7 +5125,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
5097
5125
  }
5098
5126
  //#endregion
5099
5127
  //#region src/version.js
5100
- const PACKAGE_VERSION = "3.2.0";
5128
+ const PACKAGE_VERSION = "3.2.1";
5101
5129
  //#endregion
5102
5130
  //#region src/client-recovery.js
5103
5131
  async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = 1e4) {
@@ -5898,45 +5926,33 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
5898
5926
  }), menu]
5899
5927
  });
5900
5928
  }
5901
- /** A setting's explanation: short text is shown whole; only text that would save several lines when folded gets a "More" link. */
5902
- function Hint({ children, t, as: Tag = "span" }) {
5903
- const [open, setOpen] = (0, react.useState)(false);
5904
- const [lines, setLines] = (0, react.useState)(0);
5905
- const text = (0, react.useRef)(null);
5906
- const id = (0, react.useId)();
5907
- const foldable = typeof children === "string";
5908
- (0, react.useLayoutEffect)(() => {
5909
- const node = text.current;
5910
- if (!foldable || node === null) return;
5911
- const measure = () => setLines(Math.round(node.scrollHeight / (Number.parseFloat(getComputedStyle(node).lineHeight) || 17)));
5912
- measure();
5913
- if (typeof ResizeObserver !== "function") return;
5914
- const observer = new ResizeObserver(measure);
5915
- observer.observe(node);
5916
- return () => observer.disconnect();
5917
- }, [children, foldable]);
5918
- if (!foldable) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
5919
- className: "codexSubscriptionPreferenceHint",
5929
+ //#endregion
5930
+ //#region src/client-hint.jsx
5931
+ /** Keep the setting's own label as the help target; reuse host hover, focus and touch behaviour. */
5932
+ function SettingsLabel({ children, description, as: Tag = "span", className = "codexSubscriptionPreferenceLabel", openOnClick = true, ...props }) {
5933
+ const hasHelp = typeof description === "string" && description.trim() !== "";
5934
+ const label = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
5935
+ ...props,
5936
+ className: className || void 0,
5937
+ tabIndex: hasHelp ? 0 : void 0,
5938
+ title: hasHelp && !Tooltip ? description : void 0,
5939
+ "aria-description": hasHelp && !Tooltip ? description : void 0,
5920
5940
  children
5921
5941
  });
5922
- const folds = lines >= 6;
5923
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tag, {
5924
- className: "codexSubscriptionPreferenceHint codexSubscriptionHintFold",
5925
- "data-fold": folds && !open ? "true" : void 0,
5926
- "data-open": open || void 0,
5927
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
5928
- id,
5929
- ref: text,
5930
- className: "codexSubscriptionHintText",
5931
- children
5932
- }), folds ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
5933
- type: "button",
5934
- className: "codexSubscriptionHintToggle",
5935
- "aria-expanded": open,
5936
- "aria-controls": id,
5937
- onClick: () => setOpen((value) => !value),
5938
- children: t(open ? "hintLess" : "hintMore")
5939
- }) : null]
5942
+ return hasHelp && Tooltip ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
5943
+ label: description,
5944
+ side: "bottom",
5945
+ portal: true,
5946
+ maxWidth: 360,
5947
+ openOnClick,
5948
+ children: label
5949
+ }) : label;
5950
+ }
5951
+ /** Live status, blocked reasons and confirmations remain readable without opening help. */
5952
+ function Hint({ children, as: Tag = "span" }) {
5953
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
5954
+ className: "codexSubscriptionPreferenceHint",
5955
+ children
5940
5956
  });
5941
5957
  }
5942
5958
  //#endregion
@@ -7439,17 +7455,18 @@ void main(){
7439
7455
  className: "codexSubscriptionPreference",
7440
7456
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7441
7457
  className: "codexSubscriptionPreferenceCopy",
7442
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7443
- className: "codexSubscriptionPreferenceLabel",
7458
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
7459
+ description: [
7460
+ t("voiceHint"),
7461
+ t("voicePreviewHint"),
7462
+ t("voiceMediaHint")
7463
+ ].join(" "),
7444
7464
  children: [
7445
7465
  t("voiceTitle"),
7446
7466
  " ",
7447
7467
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
7448
7468
  ]
7449
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
7450
- t,
7451
- children: t(on ? "state_voice_on" : "state_voice_off")
7452
- })]
7469
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(on ? "state_voice_on" : "state_voice_off") }) : null]
7453
7470
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
7454
7471
  checked: on,
7455
7472
  label: t("voiceTitle"),
@@ -7499,14 +7516,6 @@ void main(){
7499
7516
  preference.set({ [VOICE_LANGUAGE_FIELD]: value });
7500
7517
  playVoice(snapshot.voiceVoice, value);
7501
7518
  }
7502
- }),
7503
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
7504
- className: "codexSubscriptionHelp",
7505
- children: [
7506
- t("voicePreviewHint"),
7507
- " ",
7508
- t("voiceMediaHint")
7509
- ]
7510
7519
  })
7511
7520
  ] }) : null]
7512
7521
  });
@@ -7541,15 +7550,12 @@ void main(){
7541
7550
  });
7542
7551
  if (section === "quota") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7543
7552
  className: "codexSubscriptionPreference",
7544
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7553
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7545
7554
  className: "codexSubscriptionPreferenceCopy",
7546
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7547
- className: "codexSubscriptionPreferenceLabel",
7555
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
7556
+ description: t("quotaAlertsHint"),
7548
7557
  children: t("quotaAlerts")
7549
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
7550
- t,
7551
- children: t("quotaAlertsHint")
7552
- })]
7558
+ })
7553
7559
  }), choices("quotaAlerts", QUOTA_ALERT_MODES)]
7554
7560
  }), snapshot.quotaAlerts === "custom" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7555
7561
  className: "codexQuotaThresholds",
@@ -7576,37 +7582,28 @@ void main(){
7576
7582
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [t("searchOptions"), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [t(`searchMode_${snapshot.searchMode}`), snapshot.searchDomains.length > 0 ? ` · ${snapshot.searchDomains.length} ${t("searchDomainCount")}` : ""] })] }),
7577
7583
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7578
7584
  className: "codexSubscriptionPreference",
7579
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7580
- className: "codexSubscriptionPreferenceLabel",
7585
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
7586
+ description: t("searchModeHint"),
7581
7587
  children: t("searchMode")
7582
7588
  }), choices("searchMode", SEARCH_MODES)]
7583
7589
  }),
7584
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
7585
- t,
7586
- as: "p",
7587
- children: t("searchModeHint")
7588
- }),
7589
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
7590
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7590
7591
  className: "codexSubscriptionPreferenceCopy",
7591
- children: [
7592
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("searchDomains") }),
7593
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input, {
7594
- "aria-label": t("searchDomains"),
7595
- "aria-invalid": invalid,
7596
- value: domains,
7597
- disabled: !snapshot.writable,
7598
- placeholder: "example.com, example.org",
7599
- onChange: (event) => setDomains(event.currentTarget.value),
7600
- onBlur: save,
7601
- onKeyDown: (event) => {
7602
- if (event.key === "Enter") event.currentTarget.blur();
7603
- }
7604
- }),
7605
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
7606
- t,
7607
- children: t("searchDomainsHint")
7608
- })
7609
- ]
7592
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
7593
+ description: t("searchDomainsHint"),
7594
+ children: t("searchDomains")
7595
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input, {
7596
+ "aria-label": t("searchDomains"),
7597
+ "aria-invalid": invalid,
7598
+ value: domains,
7599
+ disabled: !snapshot.writable,
7600
+ placeholder: "example.com, example.org",
7601
+ onChange: (event) => setDomains(event.currentTarget.value),
7602
+ onBlur: save,
7603
+ onKeyDown: (event) => {
7604
+ if (event.key === "Enter") event.currentTarget.blur();
7605
+ }
7606
+ })]
7610
7607
  }),
7611
7608
  invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
7612
7609
  role: "alert",
@@ -7675,24 +7672,30 @@ void main(){
7675
7672
  const label = snapshot.managed ? selected?.name ?? snapshot.model : t("defaultModelFollow");
7676
7673
  const current = snapshot.provider === void 0 ? t("defaultModelUnknown") : `${snapshot.provider} / ${snapshot.model ?? t("defaultModelUnknown")}`;
7677
7674
  const hint = snapshot.status === "error" ? t("defaultModelFailed") : snapshot.available !== true ? t("defaultModelUnavailable") : models.length === 0 ? t("defaultModelNoCatalog") : snapshot.managed ? t("defaultModelHint") : fill(t("defaultModelFollowHint"), { value: current });
7678
- const items = models.map((model) => ({
7675
+ const resetId = "__dsh_default__";
7676
+ const items = [{
7677
+ id: resetId,
7678
+ label: t("defaultModelReset"),
7679
+ disabled: !snapshot.resetAvailable
7680
+ }, ...models.length ? [{
7681
+ type: "separator",
7682
+ id: "default-model-separator"
7683
+ }, ...models.map((model) => ({
7679
7684
  id: model.id,
7680
7685
  label: model.name
7681
- }));
7682
- const disabled = snapshot.saving || snapshot.available !== true || models.length === 0;
7686
+ }))] : []];
7687
+ const disabled = snapshot.saving || snapshot.available !== true || models.length === 0 && !snapshot.resetAvailable;
7683
7688
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7684
7689
  className: "codexSubscriptionPreference",
7685
7690
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7686
7691
  className: "codexSubscriptionPreferenceCopy",
7687
7692
  children: [
7688
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7689
- className: "codexSubscriptionPreferenceLabel",
7693
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
7694
+ description: snapshot.status === "loading" ? void 0 : [hint, snapshot.resetAvailable ? t("defaultModelResetHint") : void 0].filter(Boolean).join(" "),
7690
7695
  children: t("defaultModelTitle")
7691
7696
  }),
7692
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
7693
- t,
7694
- children: hint
7695
- }),
7697
+ snapshot.status === "ready" && snapshot.available && !snapshot.managed ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: fill(t("defaultModelCurrent"), { value: snapshot.model ?? t("defaultModelUnknown") }) }) : null,
7698
+ snapshot.status === "ready" && !snapshot.available ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: hint }) : null,
7696
7699
  snapshot.error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7697
7700
  className: "codexSubscriptionError",
7698
7701
  role: "alert",
@@ -7705,7 +7708,9 @@ void main(){
7705
7708
  selectedId: snapshot.managed ? snapshot.model : void 0,
7706
7709
  onSelect: (value) => {
7707
7710
  setOpen(false);
7708
- defaultModel.select(value);
7711
+ if (value === resetId) {
7712
+ if (snapshot.resetAvailable) defaultModel.reset();
7713
+ } else defaultModel.select(value);
7709
7714
  },
7710
7715
  onClose: () => setOpen(false),
7711
7716
  align: "end",
@@ -7753,12 +7758,13 @@ void main(){
7753
7758
  }, [open, disabled]);
7754
7759
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7755
7760
  className: "codexSubscriptionPreference codexImagePreference",
7756
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7761
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7757
7762
  className: "codexSubscriptionPreferenceCopy",
7758
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label }), hint ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
7759
- t,
7760
- children: hint
7761
- }) : null]
7763
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
7764
+ className: "",
7765
+ description: [hint, title].filter(Boolean).join(" "),
7766
+ children: label
7767
+ })
7762
7768
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
7763
7769
  open: open && !disabled,
7764
7770
  items,
@@ -7779,7 +7785,6 @@ void main(){
7779
7785
  "aria-label": label,
7780
7786
  "aria-haspopup": "menu",
7781
7787
  "aria-expanded": open && !disabled,
7782
- title,
7783
7788
  disabled,
7784
7789
  onClick: () => setOpen((current) => !current),
7785
7790
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: text }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronDownOutline14, {})]
@@ -7813,33 +7818,21 @@ void main(){
7813
7818
  //#region src/composer-prediction-preferences.jsx
7814
7819
  function ComposerPredictionPreference({ preference, t }) {
7815
7820
  const snapshot = usePreferenceSnapshot(preference);
7816
- const description = t("composerPredictionsHint");
7817
- const label = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7818
- className: "codexSubscriptionPreferenceLabel",
7819
- tabIndex: 0,
7820
- title: Tooltip ? void 0 : description,
7821
- "aria-description": Tooltip ? void 0 : description,
7822
- children: [
7823
- t("composerPredictions"),
7824
- " ",
7825
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
7826
- ]
7827
- });
7828
7821
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7829
7822
  className: "codexSubscriptionPreference",
7830
7823
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7831
7824
  className: "codexSubscriptionPreferenceCopy",
7832
- children: [Tooltip ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
7833
- label: description,
7834
- side: "bottom",
7835
- portal: true,
7836
- maxWidth: 360,
7837
- openOnClick: true,
7838
- children: label
7839
- }) : label, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7825
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
7826
+ description: t("composerPredictionsHint"),
7827
+ children: [
7828
+ t("composerPredictions"),
7829
+ " ",
7830
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
7831
+ ]
7832
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7840
7833
  className: "codexSubscriptionPreferenceHint",
7841
- children: t("composerPredictionsShortHint")
7842
- })]
7834
+ children: t(`state_predictions_${snapshot.composerPredictions === "on" ? "on" : "off"}`)
7835
+ }) : null]
7843
7836
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
7844
7837
  checked: snapshot.composerPredictions === "on",
7845
7838
  label: t("composerPredictions"),
@@ -7982,7 +7975,13 @@ void main(){
7982
7975
  children: t("runtimeCancelled")
7983
7976
  }) : null,
7984
7977
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", { children: [
7985
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t("subagentRuntimeManage") }),
7978
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
7979
+ as: "summary",
7980
+ className: "",
7981
+ openOnClick: false,
7982
+ description: [state?.installable ? t("runtimeInstallHint") : void 0, t("subagentRuntimeCacheHint")].filter(Boolean).join(" "),
7983
+ children: t("subagentRuntimeManage")
7984
+ }),
7986
7985
  state?.present && state.available && !state.removable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeManagedElsewhere") }) : null,
7987
7986
  !busy ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
7988
7987
  type: "button",
@@ -7996,9 +7995,7 @@ void main(){
7996
7995
  }) : null,
7997
7996
  state && !state.available ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeUnavailable") }) : null,
7998
7997
  state?.available && !state.installable && !state.present ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeHostUnsupported") }) : null,
7999
- state?.installable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeInstallHint") }) : null,
8000
7998
  state?.componentVersion ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("code", { children: ["@deepseek-ai/dsh-subagent-codex@", state.componentVersion] }) : null,
8001
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("subagentRuntimeCacheHint") }),
8002
7999
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
8003
8000
  href: "https://github.com/WSL043/dsh-codex-subscription/blob/main/README.md#codex-subtask-runtime",
8004
8001
  target: "_blank",
@@ -10339,17 +10336,14 @@ void main(){
10339
10336
  className: "codexSubscriptionPreference",
10340
10337
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10341
10338
  className: "codexSubscriptionPreferenceCopy",
10342
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
10343
- className: "codexSubscriptionPreferenceLabel",
10339
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
10340
+ description: [t("remoteHint"), t("remoteLimits")].join(" "),
10344
10341
  children: [
10345
10342
  t("remoteTitle"),
10346
10343
  " ",
10347
10344
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
10348
10345
  ]
10349
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
10350
- t,
10351
- children: t(on ? "state_remote_on" : "state_remote_off")
10352
- })]
10346
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(on ? "state_remote_on" : "state_remote_off") }) : null]
10353
10347
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
10354
10348
  checked: on,
10355
10349
  label: t("remoteTitle"),
@@ -10442,11 +10436,7 @@ void main(){
10442
10436
  children: t("remoteRevoke")
10443
10437
  })]
10444
10438
  }, client.clientId))]
10445
- }) : null,
10446
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10447
- className: "codexSubscriptionHelp",
10448
- children: t("remoteLimits")
10449
- })
10439
+ }) : null
10450
10440
  ] }) : null]
10451
10441
  });
10452
10442
  }
@@ -10646,15 +10636,12 @@ void main(){
10646
10636
  children: [
10647
10637
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10648
10638
  className: "codexSubscriptionPreference",
10649
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10639
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10650
10640
  className: "codexSubscriptionPreferenceCopy",
10651
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10652
- className: "codexSubscriptionPreferenceLabel",
10641
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
10642
+ description: t("diagnosticsHint"),
10653
10643
  children: t("diagnostics")
10654
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10655
- className: "codexSubscriptionPreferenceHint",
10656
- children: t("diagnosticsHint")
10657
- })]
10644
+ })
10658
10645
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10659
10646
  className: "codexSubscriptionActions",
10660
10647
  children: [
@@ -10708,7 +10695,13 @@ void main(){
10708
10695
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
10709
10696
  className: "codexAdvancedFold codexAdvancedInline",
10710
10697
  children: [
10711
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [t("diagnosticsLog"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: lines.length })] }),
10698
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
10699
+ as: "summary",
10700
+ className: "",
10701
+ openOnClick: false,
10702
+ description: t("diagnosticsLogHint"),
10703
+ children: [t("diagnosticsLog"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: lines.length })]
10704
+ }),
10712
10705
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10713
10706
  className: "codexSubscriptionLogHead",
10714
10707
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -10735,10 +10728,6 @@ void main(){
10735
10728
  children: logCopied ? t("logCopied") : t("logCopy")
10736
10729
  })]
10737
10730
  }),
10738
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10739
- className: "codexSubscriptionHelp",
10740
- children: t("diagnosticsLogHint")
10741
- }),
10742
10731
  lines.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10743
10732
  className: "codexSubscriptionHelp",
10744
10733
  children: t("logEmpty")
@@ -10759,14 +10748,16 @@ void main(){
10759
10748
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
10760
10749
  className: "codexAdvancedFold codexAdvancedInline",
10761
10750
  children: [
10762
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t("diagnosticsAdvanced") }),
10763
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10764
- className: "codexSubscriptionHelp",
10765
- children: report.client?.topology?.length ? t("diagnosticsHostCollected") : t("diagnosticsHostUnknown")
10751
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
10752
+ as: "summary",
10753
+ className: "",
10754
+ openOnClick: false,
10755
+ description: t("diagnosticsCoverageHint"),
10756
+ children: t("diagnosticsAdvanced")
10766
10757
  }),
10767
10758
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10768
10759
  className: "codexSubscriptionHelp",
10769
- children: t("diagnosticsCoverageHint")
10760
+ children: report.client?.topology?.length ? t("diagnosticsHostCollected") : t("diagnosticsHostUnknown")
10770
10761
  }),
10771
10762
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
10772
10763
  className: "codexDiagTable",
@@ -10852,7 +10843,12 @@ void main(){
10852
10843
  className: "codexSubscriptionStorageHead",
10853
10844
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10854
10845
  className: "codexSubscriptionStorageTitle",
10855
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("storageForecast") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("output", {
10846
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
10847
+ as: "h3",
10848
+ className: "",
10849
+ description: t("storageHint"),
10850
+ children: t("storageForecast")
10851
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("output", {
10856
10852
  role: "status",
10857
10853
  children: usage ? `${(usage.bytes / 1024).toFixed(1)} / ${(usage.limit / 1024).toFixed(0)} KiB` : t("storageLoading")
10858
10854
  })]
@@ -10881,10 +10877,6 @@ void main(){
10881
10877
  max: usage.limit
10882
10878
  })
10883
10879
  }) : null,
10884
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10885
- className: "codexSubscriptionHelp",
10886
- children: t("storageHint")
10887
- }),
10888
10880
  confirm ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10889
10881
  className: "codexSubscriptionConfirm",
10890
10882
  role: "group",
@@ -10966,15 +10958,12 @@ void main(){
10966
10958
  });
10967
10959
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10968
10960
  className: "codexSubscriptionPreference",
10969
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10961
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10970
10962
  className: "codexSubscriptionPreferenceCopy",
10971
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10972
- className: "codexSubscriptionPreferenceLabel",
10963
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
10964
+ description: snapshot.quickQuotaMode === "forecast" ? t("quickQuotaForecastHint") : void 0,
10973
10965
  children: t("quickQuotaSetting")
10974
- }), snapshot.quickQuotaMode === "forecast" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
10975
- t,
10976
- children: t("quickQuotaForecastHint")
10977
- }) : null]
10966
+ })
10978
10967
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10979
10968
  className: "codexSubscriptionQuotaModes",
10980
10969
  "data-saving": snapshot.saving || void 0,
@@ -11001,13 +10990,10 @@ void main(){
11001
10990
  className: "codexSubscriptionPreference",
11002
10991
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11003
10992
  className: "codexSubscriptionPreferenceCopy",
11004
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11005
- className: "codexSubscriptionPreferenceLabel",
10993
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
10994
+ description: t("autoQuotaRetryHint"),
11006
10995
  children: t("autoQuotaRetry")
11007
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11008
- t,
11009
- children: t("autoQuotaRetryHint")
11010
- })]
10996
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`state_autoQuotaRetry_${snapshot.autoQuotaRetry ? "on" : "off"}`) }) : null]
11011
10997
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
11012
10998
  checked: snapshot.autoQuotaRetry,
11013
10999
  label: t("autoQuotaRetry"),
@@ -11033,7 +11019,6 @@ void main(){
11033
11019
  }
11034
11020
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
11035
11021
  });
11036
- const hint = snapshot.searchProvider === "dsh" ? "searchDshHint" : snapshot.searchProvider === "codex" ? "searchCodexHint" : "searchAutoHint";
11037
11022
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11038
11023
  className: "codexSubscriptionSearch",
11039
11024
  children: [
@@ -11041,13 +11026,10 @@ void main(){
11041
11026
  className: "codexSubscriptionPreference",
11042
11027
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11043
11028
  className: "codexSubscriptionPreferenceCopy",
11044
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11045
- className: "codexSubscriptionPreferenceLabel",
11029
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11030
+ description: t(snapshot.searchProvider === "dsh" ? "searchDshHint" : snapshot.searchProvider === "codex" ? "searchCodexHint" : "searchAutoHint"),
11046
11031
  children: t("searchTitle")
11047
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11048
- t,
11049
- children: t(hint)
11050
- })]
11032
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`searchState_${snapshot.searchProvider}`) }) : null]
11051
11033
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11052
11034
  className: "codexSubscriptionSearchChoices codexSubscriptionQuotaModes",
11053
11035
  "data-saving": snapshot.saving || void 0,
@@ -11065,13 +11047,10 @@ void main(){
11065
11047
  className: "codexSubscriptionPreference",
11066
11048
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11067
11049
  className: "codexSubscriptionPreferenceCopy",
11068
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11069
- className: "codexSubscriptionPreferenceLabel",
11050
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11051
+ description: t(snapshot.fetchProvider === "codex" ? "fetchCodexHint" : "fetchDshHint"),
11070
11052
  children: t("fetchTitle")
11071
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11072
- t,
11073
- children: t(!snapshot.fetchRoutingAvailable ? "fetchUnavailableHint" : snapshot.fetchProvider === "codex" ? "fetchCodexHint" : "fetchDshHint")
11074
- })]
11053
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(!snapshot.fetchRoutingAvailable ? "fetchUnavailableHint" : `fetchState_${snapshot.fetchProvider}`) }) : null]
11075
11054
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11076
11055
  className: "codexSubscriptionSearchChoices codexSubscriptionQuotaModes",
11077
11056
  "data-saving": snapshot.saving || void 0,
@@ -11105,15 +11084,12 @@ void main(){
11105
11084
  const writable = snapshot.status === "ready" && snapshot.writable === true;
11106
11085
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11107
11086
  className: "codexSubscriptionPreference",
11108
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11087
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11109
11088
  className: "codexSubscriptionPreferenceCopy",
11110
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11111
- className: "codexSubscriptionPreferenceLabel",
11089
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11090
+ description: t("inputImageDetailHint"),
11112
11091
  children: t("inputImageDetail")
11113
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11114
- t,
11115
- children: t("inputImageDetailHint")
11116
- })]
11092
+ })
11117
11093
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11118
11094
  className: "codexSubscriptionQuotaModes",
11119
11095
  "data-saving": snapshot.saving || void 0,
@@ -11140,15 +11116,12 @@ void main(){
11140
11116
  const writable = snapshot.status === "ready" && snapshot.writable === true;
11141
11117
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11142
11118
  className: "codexSubscriptionPreference",
11143
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11119
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11144
11120
  className: "codexSubscriptionPreferenceCopy",
11145
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11146
- className: "codexSubscriptionPreferenceLabel",
11121
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11122
+ description: t("reasoningSummaryHint"),
11147
11123
  children: t("reasoningSummary")
11148
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11149
- t,
11150
- children: t("reasoningSummaryHint")
11151
- })]
11124
+ })
11152
11125
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11153
11126
  className: "codexSubscriptionQuotaModes",
11154
11127
  "data-saving": snapshot.saving || void 0,
@@ -11179,30 +11152,42 @@ void main(){
11179
11152
  className: "codexSubscriptionPreference",
11180
11153
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11181
11154
  className: "codexSubscriptionPreferenceCopy",
11182
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11183
- className: "codexSubscriptionPreferenceLabel",
11155
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11156
+ description: t("reasoningCacheHint"),
11184
11157
  children: t("reasoningCache")
11185
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11186
- t,
11187
- children: t(hint)
11188
- })]
11189
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11190
- className: "codexSubscriptionQuotaModes",
11191
- role: "radiogroup",
11192
- "aria-label": t("reasoningCache"),
11193
- "aria-busy": snapshot.saving || void 0,
11194
- children: ["off", "on"].map((value) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
11195
- className: "codexSubscriptionQuotaMode",
11196
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
11197
- type: "radio",
11198
- name: "codex-reasoning-cache",
11199
- checked: snapshot.reasoningCache === value,
11200
- disabled: !writable || value === "on" && blocked,
11201
- onChange: () => {
11202
- preference.set({ reasoningCache: value });
11203
- }
11204
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(`reasoningCache_${value}`) })]
11205
- }, value))
11158
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(blocked ? hint : `state_reasoningCache_${snapshot.reasoningCache}`) }) : null]
11159
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
11160
+ checked: snapshot.reasoningCache === "on",
11161
+ label: t("reasoningCache"),
11162
+ disabled: !writable || snapshot.saving || blocked && snapshot.reasoningCache !== "on",
11163
+ onChange: (next) => {
11164
+ preference.set({ reasoningCache: next ? "on" : "off" });
11165
+ }
11166
+ })]
11167
+ });
11168
+ }
11169
+ function CompactionPreference({ preference, t }) {
11170
+ const snapshot = usePreferenceSnapshot(preference);
11171
+ const enabled = snapshot.compactionMode === "cloud";
11172
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11173
+ className: "codexSubscriptionPreference",
11174
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11175
+ className: "codexSubscriptionPreferenceCopy",
11176
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
11177
+ description: t("compactionHint"),
11178
+ children: [
11179
+ t("compactionTitle"),
11180
+ " ",
11181
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
11182
+ ]
11183
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`state_compaction_${enabled ? "on" : "off"}`) }) : null]
11184
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
11185
+ checked: enabled,
11186
+ label: t("compactionTitle"),
11187
+ disabled: snapshot.status !== "ready" || !snapshot.writable || snapshot.saving,
11188
+ onChange: (next) => {
11189
+ preference.set({ compactionMode: next ? "cloud" : "dsh" });
11190
+ }
11206
11191
  })]
11207
11192
  });
11208
11193
  }
@@ -11211,15 +11196,12 @@ void main(){
11211
11196
  const writable = snapshot.status === "ready" && snapshot.writable === true;
11212
11197
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11213
11198
  className: "codexSubscriptionPreference",
11214
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11199
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11215
11200
  className: "codexSubscriptionPreferenceCopy",
11216
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11217
- className: "codexSubscriptionPreferenceLabel",
11201
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11202
+ description: t("retryPolicyHint"),
11218
11203
  children: t("retryPolicy")
11219
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11220
- t,
11221
- children: t("retryPolicyHint")
11222
- })]
11204
+ })
11223
11205
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11224
11206
  className: "codexSubscriptionQuotaModes",
11225
11207
  "data-saving": snapshot.saving || void 0,
@@ -11247,15 +11229,12 @@ void main(){
11247
11229
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11248
11230
  className: "codexSubscriptionPreference codexSubscriptionConnectors",
11249
11231
  children: [
11250
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11232
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11251
11233
  className: "codexSubscriptionPreferenceCopy",
11252
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11253
- className: "codexSubscriptionPreferenceLabel",
11234
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11235
+ description: t("connectorsHint"),
11254
11236
  children: t("connectors")
11255
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11256
- t,
11257
- children: t("connectorsHint")
11258
- })]
11237
+ })
11259
11238
  }),
11260
11239
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11261
11240
  className: "codexSubscriptionQuotaModes",
@@ -11290,15 +11269,12 @@ void main(){
11290
11269
  const writable = snapshot.status === "ready" && snapshot.writable === true;
11291
11270
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11292
11271
  className: "codexSubscriptionPreference",
11293
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11272
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11294
11273
  className: "codexSubscriptionPreferenceCopy",
11295
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11296
- className: "codexSubscriptionPreferenceLabel",
11274
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11275
+ description: t("streamIdleTimeoutHint"),
11297
11276
  children: t("streamIdleTimeoutTitle")
11298
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11299
- t,
11300
- children: t("streamIdleTimeoutHint")
11301
- })]
11277
+ })
11302
11278
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11303
11279
  className: "codexSubscriptionQuotaModes",
11304
11280
  "data-saving": snapshot.saving || void 0,
@@ -11357,15 +11333,12 @@ void main(){
11357
11333
  className: "codexSubscriptionPickerSetting",
11358
11334
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11359
11335
  className: "codexSubscriptionPreference",
11360
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11336
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11361
11337
  className: "codexSubscriptionPreferenceCopy",
11362
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11363
- className: "codexSubscriptionPreferenceLabel",
11338
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11339
+ description: t("pickerModelsHint"),
11364
11340
  children: t("pickerModelsTitle")
11365
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11366
- t,
11367
- children: t("pickerModelsHint")
11368
- })]
11341
+ })
11369
11342
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
11370
11343
  className: "codexSubscriptionContextTrigger",
11371
11344
  type: "button",
@@ -11454,13 +11427,10 @@ void main(){
11454
11427
  className: "codexSubscriptionContextHead",
11455
11428
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11456
11429
  className: "codexSubscriptionContextCopy",
11457
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11458
- className: "codexSubscriptionPreferenceLabel",
11430
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11431
+ description: hint,
11459
11432
  children: t("contextTitle")
11460
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11461
- className: "codexSubscriptionContextHint",
11462
- children: hint
11463
- })]
11433
+ }), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`contextState_${snapshot.contextMode}`) }) : null]
11464
11434
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
11465
11435
  open: menuOpen,
11466
11436
  items: contextModeItems,
@@ -11605,18 +11575,15 @@ void main(){
11605
11575
  })
11606
11576
  });
11607
11577
  }
11608
- function SwitchRow({ t, title, hint, state, beta, checked, disabled, reason, onChange }) {
11578
+ function SwitchRow({ t, title, hint, state, loaded, beta, checked, disabled, reason, onChange }) {
11609
11579
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11610
11580
  className: "codexSubscriptionPreference",
11611
11581
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11612
11582
  className: "codexSubscriptionPreferenceCopy",
11613
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
11614
- className: "codexSubscriptionPreferenceLabel",
11583
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
11584
+ description: state ? t(state === "otherModels" ? "otherModelsHint" : `${state}RowHint`) : hint,
11615
11585
  children: [title, beta ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [" ", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })] }) : null]
11616
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11617
- t,
11618
- children: reason ?? (state ? t(`state_${state}_${checked ? "on" : "off"}`) : hint)
11619
- })]
11586
+ }), loaded && (state || reason || hint) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: reason ?? (state ? t(`state_${state}_${checked ? "on" : "off"}`) : hint) }) : null]
11620
11587
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
11621
11588
  checked,
11622
11589
  label: title,
@@ -11750,15 +11717,12 @@ void main(){
11750
11717
  };
11751
11718
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11752
11719
  className: "codexSubscriptionPreference",
11753
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11720
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11754
11721
  className: "codexSubscriptionPreferenceCopy",
11755
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11756
- className: "codexSubscriptionPreferenceLabel",
11722
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
11723
+ description: t("verbosityPageHint"),
11757
11724
  children: t("verbosityTitle")
11758
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11759
- t,
11760
- children: t("verbosityPageHint")
11761
- })]
11725
+ })
11762
11726
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11763
11727
  className: "codexSubscriptionQuotaModes",
11764
11728
  role: "radiogroup",
@@ -11880,19 +11844,16 @@ void main(){
11880
11844
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "codexSubscriptionDivider" }),
11881
11845
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11882
11846
  className: "codexSubscriptionPreference",
11883
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11847
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11884
11848
  className: "codexSubscriptionPreferenceCopy",
11885
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
11886
- className: "codexSubscriptionPreferenceLabel",
11849
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
11850
+ description: t("connectionHint"),
11887
11851
  children: [
11888
11852
  t("connectionTitle"),
11889
11853
  " ",
11890
11854
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
11891
11855
  ]
11892
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11893
- t,
11894
- children: t("connectionHint")
11895
- })]
11856
+ })
11896
11857
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
11897
11858
  snapshot,
11898
11859
  preference,
@@ -11904,47 +11865,23 @@ void main(){
11904
11865
  })]
11905
11866
  }),
11906
11867
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "codexSubscriptionDivider" }),
11907
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11908
- className: "codexSubscriptionPreference",
11909
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11910
- className: "codexSubscriptionPreferenceCopy",
11911
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
11912
- className: "codexSubscriptionPreferenceLabel",
11913
- children: [
11914
- t("compactionTitle"),
11915
- " ",
11916
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
11917
- ]
11918
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11919
- t,
11920
- children: t("compactionHint")
11921
- })]
11922
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
11923
- snapshot,
11924
- preference,
11925
- field: "compactionMode",
11926
- values: ["dsh", "cloud"],
11927
- name: "codex-compaction-mode",
11928
- label: t("compactionTitle"),
11929
- text: (value) => t(`compaction_${value}`)
11930
- })]
11868
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CompactionPreference, {
11869
+ preference,
11870
+ t
11931
11871
  }),
11932
11872
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "codexSubscriptionDivider" }),
11933
11873
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11934
11874
  className: "codexSubscriptionPreference",
11935
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11875
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11936
11876
  className: "codexSubscriptionPreferenceCopy",
11937
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
11938
- className: "codexSubscriptionPreferenceLabel",
11877
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
11878
+ description: t("reviewModelHint"),
11939
11879
  children: [
11940
11880
  t("reviewModelTitle"),
11941
11881
  " ",
11942
11882
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
11943
11883
  ]
11944
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
11945
- t,
11946
- children: t("reviewModelHint")
11947
- })]
11884
+ })
11948
11885
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
11949
11886
  snapshot,
11950
11887
  preference,
@@ -11974,6 +11911,7 @@ void main(){
11974
11911
  className: "codexSubscriptionCard codexSubscriptionPreferencesCard",
11975
11912
  "aria-label": t("otherModelsTitle"),
11976
11913
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
11914
+ loaded: snapshot.status === "ready",
11977
11915
  t,
11978
11916
  title: t("otherModelsTitle"),
11979
11917
  state: "otherModels",
@@ -12007,17 +11945,14 @@ void main(){
12007
11945
  className: "codexSubscriptionPreference",
12008
11946
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12009
11947
  className: "codexSubscriptionPreferenceCopy",
12010
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
12011
- className: "codexSubscriptionPreferenceLabel",
11948
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
11949
+ description: t("subagentBackendHint"),
12012
11950
  children: [
12013
11951
  t("subagentBackendTitle"),
12014
11952
  " ",
12015
11953
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
12016
11954
  ]
12017
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
12018
- t,
12019
- children: snapshot.subagentBackendAvailable ? t(codexReady || subagentsOn ? "subagentBackendHint" : "subagentBackendNeedsRuntime") : t("subagentBackendUnavailable")
12020
- })]
11955
+ }), !snapshot.subagentBackendAvailable || !(codexReady || subagentsOn) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(snapshot.subagentBackendAvailable ? "subagentBackendNeedsRuntime" : "subagentBackendUnavailable") }) : null]
12021
11956
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
12022
11957
  snapshot,
12023
11958
  preference,
@@ -12055,6 +11990,7 @@ void main(){
12055
11990
  children: [
12056
11991
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("imageSettings") }),
12057
11992
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
11993
+ loaded: snapshot.status === "ready",
12058
11994
  t,
12059
11995
  title: t("imageGenerationRow"),
12060
11996
  state: "imageGeneration",
@@ -12063,6 +11999,7 @@ void main(){
12063
11999
  onChange: (next) => set({ imageGeneration: next })
12064
12000
  }),
12065
12001
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
12002
+ loaded: snapshot.status === "ready",
12066
12003
  t,
12067
12004
  title: t("imageEditingRow"),
12068
12005
  state: "imageEditing",
@@ -12071,6 +12008,7 @@ void main(){
12071
12008
  onChange: (next) => set({ imageEditing: next })
12072
12009
  }),
12073
12010
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
12011
+ loaded: snapshot.status === "ready",
12074
12012
  t,
12075
12013
  title: t("imageShortcutRow"),
12076
12014
  state: "imageShortcut",
@@ -12080,6 +12018,7 @@ void main(){
12080
12018
  onChange: (next) => set({ imageShortcut: next })
12081
12019
  }),
12082
12020
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
12021
+ loaded: snapshot.status === "ready",
12083
12022
  t,
12084
12023
  title: t("imageViewerRow"),
12085
12024
  state: "imageViewer",
@@ -12097,6 +12036,7 @@ void main(){
12097
12036
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageChoice, {
12098
12037
  t,
12099
12038
  label: t("imageModel"),
12039
+ hint: snapshot.imageModel.includes("2.5") ? t("imageModelHint") : void 0,
12100
12040
  value: snapshot.imageModel,
12101
12041
  text: modelLabel(snapshot.imageModel),
12102
12042
  disabled: disabled || !imagesOn,
@@ -12120,12 +12060,7 @@ void main(){
12120
12060
  label: t(`imageQuality_${id}`)
12121
12061
  })),
12122
12062
  onSelect: (imageQuality) => set({ imageQuality })
12123
- }),
12124
- snapshot.imageModel.includes("2.5") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
12125
- t,
12126
- as: "p",
12127
- children: t("imageModelHint")
12128
- }) : null
12063
+ })
12129
12064
  ]
12130
12065
  })
12131
12066
  ]
@@ -12133,6 +12068,7 @@ void main(){
12133
12068
  className: "codexSubscriptionCard codexSubscriptionPreferencesCard",
12134
12069
  "aria-label": t("creativeSketch"),
12135
12070
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
12071
+ loaded: snapshot.status === "ready",
12136
12072
  t,
12137
12073
  title: t("featureSketchTitle"),
12138
12074
  beta: true,
@@ -12143,6 +12079,7 @@ void main(){
12143
12079
  reason: !imagesOn && !snapshot.imageSketch ? t("featureSketchNeedsImages") : void 0,
12144
12080
  onChange: (next) => set({ imageSketch: next })
12145
12081
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
12082
+ loaded: snapshot.status === "ready",
12146
12083
  t,
12147
12084
  title: t("sketchAgentRow"),
12148
12085
  state: "sketchAgent",