fix(panel): harden 2.33.0+ context window override injection and pending-restart status

- Inject backend pre-resolved MODEL_* fallback rules into syncHostContextWindows so
  context window overrides remain active even when window.__APP_CONFIG__.csrfToken is
  omitted, and extend request interception to cover StartCascade, URL inputs, Uint8Array
  JSON bodies, and application/connect+json 5-byte envelopes
- Trigger shortcut/launcher provisioning on modelContextWindows updates and surface the
  context-mode BridgeStatusNotice banner in App.js even when windowMountMode is 'sidebar'
- Show explicit '待重启生效' / 'Pending Restart' meta badge in SettingsOtherTab model
  dropdown and reveal ctxBridgeNotice immediately upon unlocking when CDP is inactive

Closes #27
This commit is contained in:
fish
2026-11-18 22:08:39 +09:00
parent 955dfeebb7
commit d665fb0c34
11 changed files with 293 additions and 37 deletions
+1
View File
@@ -518,6 +518,7 @@ export const I18N_MESSAGES_EN_US = Object.freeze({
'settings.oth.ctxUnavailable': '{name} (currently unavailable)',
'settings.oth.ctxConfigured': '{name} · Set',
'settings.oth.ctxConfiguredReported': '{name} · Set / Last seen {reported}',
'settings.oth.ctxPendingBridge': '{name} · Pending Restart',
'settings.oth.ctxDefaultReported': 'Default · Last seen {name}',
'settings.oth.ctxReported': 'The host reported {name} on the latest request.',
'settings.oth.ctxMixed': 'Different limits by thinking level',
+1
View File
@@ -518,6 +518,7 @@ export const I18N_MESSAGES_ZH_CN = Object.freeze({
'settings.oth.ctxUnavailable': '{name}(当前不可用)',
'settings.oth.ctxConfigured': '{name} · 已设置',
'settings.oth.ctxConfiguredReported': '{name} · 已设置 / 最近 {reported}',
'settings.oth.ctxPendingBridge': '{name} · 待重启生效',
'settings.oth.ctxDefaultReported': '默认 · 最近 {name}',
'settings.oth.ctxReported': '最近一次请求由宿主报告为 {name}。',
'settings.oth.ctxMixed': '各推理档设置不同',