mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 00:03:20 +00:00
fix(codex): establish real-home lane before cleanup
This commit is contained in:
+8
-8
@@ -2016,6 +2016,14 @@ app.whenReady().then(async () => {
|
||||
runtimeService.notifyEmulatorAutoAttachFromWatcher(worktreeId, info)
|
||||
})
|
||||
nativeTheme.themeSource = store.getSettings().theme ?? 'system'
|
||||
if (codexRuntimeHome.isHostSystemDefaultRealHomeSelected()) {
|
||||
// Why: establish capability before managed-hook reconciliation so an
|
||||
// incapable host re-arms and completes the legacy real-home sweep now.
|
||||
ensureRealHomeCodexHookState({
|
||||
hooksEnabled: isAgentStatusHooksEnabled(store.getSettings()),
|
||||
userDataPath: app.getPath('userData')
|
||||
})
|
||||
}
|
||||
if (shouldInstallManagedHooks(is.dev)) {
|
||||
// Why: the persisted off switch must run before any auto-install path so
|
||||
// users who removed Orca-managed hooks do not see them silently reappear on launch.
|
||||
@@ -2025,14 +2033,6 @@ app.whenReady().then(async () => {
|
||||
removeManagedAgentHooks()
|
||||
}
|
||||
}
|
||||
if (codexRuntimeHome.isHostSystemDefaultRealHomeSelected()) {
|
||||
// Why: establish the lane before background rate-limit polling starts, so
|
||||
// an incapable grant host never polls a home its PTYs will not use.
|
||||
ensureRealHomeCodexHookState({
|
||||
hooksEnabled: isAgentStatusHooksEnabled(store.getSettings()),
|
||||
userDataPath: app.getPath('userData')
|
||||
})
|
||||
}
|
||||
app.on('child-process-gone', (_event, details) => {
|
||||
recordProcessGoneCrash('child', details.type, details.reason, details.exitCode ?? null, {
|
||||
name: details.name,
|
||||
|
||||
Reference in New Issue
Block a user