mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user