fix(llama-cpp): explain cleanup failure recovery

This commit is contained in:
Vincent Koc
2026-08-05 02:10:27 +08:00
parent ef632a4a93
commit 6dc5d00374
2 changed files with 2 additions and 2 deletions
@@ -869,7 +869,7 @@ describe("llama.cpp inference provider", () => {
const disposing = inferenceRuntime.dispose();
rejectCleanup(new Error("context cleanup failed"));
await expect(unavailable.result()).resolves.toMatchObject({
errorMessage: "llama.cpp runtime stopped after cleanup failed",
errorMessage: expect.stringContaining("openclaw gateway restart"),
});
await expect(disposing).rejects.toThrow("context cleanup failed");
expectDisposeCalls(2, 1, 0);
@@ -95,7 +95,7 @@ function runtimeUnavailableMessage(
content: [],
stopReason: "error",
errorMessage: state.cleanupFailure
? "llama.cpp runtime stopped after cleanup failed"
? "llama.cpp runtime stopped after cleanup failed. Run `openclaw gateway restart` to recover."
: "llama.cpp runtime is stopping",
});
}