Fix deferred restart review findings.
Drop phantom pending records when provider disconnect removes nothing and when Behavior AGENTS.md payloads are not deferred. Clear the Apply badge after external OpenCode manual-restart guidance. Align skills and commands save toasts with deferred restart feedback, and fix French OpenCode elision. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
co-authored by
Serhii Dziupin
parent
7c27a39cf4
commit
0cde9e9413
@@ -70,10 +70,12 @@ export async function applyPendingOpenCodeRestart(options?: {
|
||||
usePendingOpenCodeRestartStore.getState().clear();
|
||||
return { ok: true };
|
||||
} catch (error) {
|
||||
usePendingOpenCodeRestartStore.getState().setApplying(false);
|
||||
if ((error as Error & { requiresManualRestart?: boolean })?.requiresManualRestart) {
|
||||
// Changes are already on disk; clear the badge after delivering manual-restart guidance.
|
||||
usePendingOpenCodeRestartStore.getState().clear();
|
||||
return { ok: false, requiresManualRestart: true };
|
||||
}
|
||||
usePendingOpenCodeRestartStore.getState().setApplying(false);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user