Skip to content

Commit 195b0ea

Browse files
authored
fix: make startup migration restart guidance install-neutral (#119406)
1 parent 392e1c0 commit 195b0ea

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/commands/doctor-config-preflight.process.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import { closeOpenClawStateDatabaseForTest } from "../state/openclaw-state-db.js
1616

1717
const STARTUP_REFUSAL =
1818
"OpenClaw startup migrations did not complete cleanly; refusing to report the gateway ready.";
19+
const STARTUP_RECOVERY =
20+
'Run "openclaw doctor --fix" against the same state/config, then restart the gateway.';
1921
const tempDirs = useAutoCleanupTempDirTracker(afterEach);
2022

2123
function runIsolatedModuleScript(env: NodeJS.ProcessEnv, script: string) {
@@ -130,6 +132,7 @@ describe("gateway startup-migration refusal", () => {
130132
expect(result.status, output).toBe(1);
131133
expect(result.signal, output).toBeNull();
132134
expect(result.stderr).toContain(STARTUP_REFUSAL);
135+
expect(result.stderr).toContain(STARTUP_RECOVERY);
133136
expect(result.stderr.split(STARTUP_REFUSAL)).toHaveLength(2);
134137
expect(result.stderr).not.toContain("[openclaw] Could not start the CLI.");
135138
expect(hasActiveStartupMigrationLease({ env })).toBe(false);

‎src/commands/doctor-config-preflight.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function formatStartupMigrationFailure(params: { warnings: string[]; blockers: s
169169
return [
170170
"OpenClaw startup migrations did not complete cleanly; refusing to report the gateway ready.",
171171
...details,
172-
'Run "openclaw doctor --fix" against the mounted state/config, then restart the container.',
172+
'Run "openclaw doctor --fix" against the same state/config, then restart the gateway.',
173173
].join("\n");
174174
}
175175

0 commit comments

Comments
 (0)