fix: harden and de-slop the merged contribution batch
Follow-ups promised on merge, plus review findings on the batch itself: - chat: task-tool output now respects the 512KiB render cap; quick-open icon is visible at rest on coarse pointers and reachable by keyboard (row keydown no longer swallows inner-button Enter/Space); composer inline-code decoration drops the metric-shifting padding; a btw fork send carries only the boundary instruction, never the promotion notice - sync: cascade revert/unrevert aborts busy descendants, busy state is read from every child store at the moment of use; rule 9 documents redo clearing all descendant revert markers - electron: renderer recovery keeps memory-eviction (a valid render-process-gone reason) and both windows share one attachRendererRecovery helper - vscode: process registry is a thin re-export of the web module (provider-env-aliases precedent) with ordered register/unregister writes and an awaited close - server/cli: managed-process registry takes injectable deps (fixes the unreaped-orphans ReferenceError), corrupt settings errors name the file, getWorktrees test restores console.warn - tests: module-mock harnesses removed (AgentsSidebar, SettingsView mobile focus — behaviors stay live but uncovered, accepted trade), QuestionMarkdown asserts rendered DOM - i18n: German gains the debug-panel request keys, Japanese/German drop removed worktree keys, Ukrainian unit spacing fixed - changelog: Copilot AI Credits entries (main + VS Code)
This commit is contained in:
@@ -33,7 +33,7 @@ import {
|
||||
} from './linux-autostart.mjs';
|
||||
import { unsupportedAppSpecificOpenError, validateLocalPath } from './path-open-utils.mjs';
|
||||
import { shouldAllowBrowserPanelCertificateError } from './browser-panel-security.mjs';
|
||||
import { createRendererRecoveryPolicy } from './renderer-recovery.mjs';
|
||||
import { attachRendererRecovery } from './renderer-recovery.mjs';
|
||||
import { mintOutsideFileGrant } from '@openchamber/web/server/lib/fs/routes.js';
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
@@ -2497,7 +2497,6 @@ const createBrowserWindow = ({ label, restoreGeometry, url, runtimeConfig = {} }
|
||||
};
|
||||
|
||||
const browserWindow = new BrowserWindow(options);
|
||||
const rendererRecoveryPolicy = createRendererRecoveryPolicy();
|
||||
browserWindow.__ocLabel = label || nextWindowLabel();
|
||||
browserWindow.__ocRuntimeConfig = { apiBaseUrl: desktopApiBaseUrl, clientToken: desktopClientToken, requestHeaders: desktopRequestHeaders };
|
||||
browserWindow.__ocInitScript = buildInitScript(desktopLocalOrigin, state.bootOutcome, desktopApiBaseUrl, desktopClientToken, desktopRequestHeaders);
|
||||
@@ -2658,19 +2657,7 @@ const createBrowserWindow = ({ label, restoreGeometry, url, runtimeConfig = {} }
|
||||
browserWindow.webContents.on('zoom-changed', () => {
|
||||
browserWindow.webContents.setZoomFactor(1);
|
||||
});
|
||||
browserWindow.webContents.on('render-process-gone', (_event, details) => {
|
||||
if (!rendererRecoveryPolicy.shouldReload(details.reason)) return;
|
||||
log.warn('[electron] renderer exited unexpectedly; reloading window', {
|
||||
label: browserWindow.__ocLabel,
|
||||
reason: details.reason,
|
||||
exitCode: details.exitCode,
|
||||
});
|
||||
setTimeout(() => {
|
||||
if (!browserWindow.isDestroyed()) {
|
||||
browserWindow.webContents.reload();
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
attachRendererRecovery(browserWindow, { log, label: 'window' });
|
||||
|
||||
browserWindow.webContents.on('dom-ready', () => {
|
||||
if (browserWindow.__ocLabel === 'main') {
|
||||
@@ -2908,6 +2895,8 @@ const createMiniChatWindow = async ({ mode, sessionId = '', directory = '', proj
|
||||
browserWindow.__ocMiniChatSessionId = sessionWindowKey;
|
||||
browserWindow.__ocPinned = false;
|
||||
|
||||
attachRendererRecovery(browserWindow, { log, label: 'mini chat' });
|
||||
|
||||
if (sessionWindowKey) {
|
||||
state.miniChatWindowsBySession.set(sessionWindowKey, browserWindow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user