Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
/**
|
|
* Shared response shape for OpenCode config mutations.
|
|
*
|
|
* Settings writes persist to disk immediately but defer the OpenCode restart
|
|
* so the UI can accumulate pending changes and apply them once via
|
|
* api:config/reload ("Apply & Restart OpenCode").
|
|
*/
|
|
export function buildDeferredRestartResponse(message: string) {
|
|
return {
|
|
success: true,
|
|
requiresReload: false,
|
|
requiresRestart: true,
|
|
restartDeferred: true,
|
|
message,
|
|
};
|
|
}
|