mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-10 22:36:10 +00:00
fix(doctor): preview missing transcript cleanup (#83630)
* fix(doctor): preview missing transcript cleanup * fix(doctor): preview missing transcript cleanup --------- Co-authored-by: YuanHanzhong <YuanHanzhong@users.noreply.github.com> Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
This commit is contained in:
@@ -633,7 +633,12 @@ describe("doctor state integrity oauth dir checks", () => {
|
||||
const text = await runStateIntegrityText(cfg);
|
||||
expect(text).toContain("recent sessions are missing transcripts");
|
||||
expect(text).toMatch(/openclaw sessions --store ".*sessions\.json"/);
|
||||
expect(text).toMatch(/openclaw sessions cleanup --store ".*sessions\.json" --dry-run/);
|
||||
expect(text).toMatch(
|
||||
/openclaw sessions cleanup --store ".*sessions\.json" --dry-run --fix-missing/,
|
||||
);
|
||||
expect(text).not.toMatch(
|
||||
/openclaw sessions cleanup --store ".*sessions\.json" --dry-run(?! --fix-missing)/,
|
||||
);
|
||||
expect(text).toMatch(
|
||||
/openclaw sessions cleanup --store ".*sessions\.json" --enforce --fix-missing/,
|
||||
);
|
||||
|
||||
@@ -1298,7 +1298,7 @@ export async function noteStateIntegrity(
|
||||
[
|
||||
`- ${missing.length}/${recentTranscriptCandidates.length} recent sessions are missing transcripts.`,
|
||||
` Verify sessions in store: ${formatCliCommand(`openclaw sessions --store "${absoluteStorePath}"`)}`,
|
||||
` Preview cleanup impact: ${formatCliCommand(`openclaw sessions cleanup --store "${absoluteStorePath}" --dry-run`)}`,
|
||||
` Preview cleanup impact: ${formatCliCommand(`openclaw sessions cleanup --store "${absoluteStorePath}" --dry-run --fix-missing`)}`,
|
||||
` Prune missing entries: ${formatCliCommand(`openclaw sessions cleanup --store "${absoluteStorePath}" --enforce --fix-missing`)}`,
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user