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
@@ -41,7 +41,7 @@ async function copyTextToClipboard(text) {
export const BridgeStatusNotice = defineComponent({
name: 'BridgeStatusNotice',
setup({ props, onCleanup }) {
const contextMode = Boolean(props?.contextMode);
let contextMode = Boolean(props?.contextMode);
const dismissible = Boolean(props?.dismissible);
let lastPayload = {
visible: false,
@@ -267,6 +267,9 @@ export const BridgeStatusNotice = defineComponent({
}
function update(next = {}) {
if (typeof next.contextMode === 'boolean') {
contextMode = next.contextMode;
}
lastPayload = {
...lastPayload,
...next,