惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 【当耐特】
The Cloudflare Blog
B
Blog
Last Week in AI
Last Week in AI
小众软件
小众软件
量子位
S
SegmentFault 最新的问题
V
Visual Studio Blog
博客园 - 叶小钗
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
A
About on SuperTechFans
雷峰网
雷峰网
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
chore(deadcode): drop inert legacy workspace doctor check...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -160,8 +160,6 @@ must be paired with `--lint`; regular doctor and repair runs reject them.

160160

- State integrity and permissions checks (sessions, transcripts, state dir).

161161

- Config file permission checks (chmod 600) when running locally.

162162

- Model auth health: checks OAuth expiry, can refresh expiring tokens, and reports auth-profile cooldown/disabled states.

163-

- Extra workspace dir detection (`~/openclaw`).

164-
165163

</Accordion>

166164

<Accordion title="Gateway, services, and supervisors">

167165

- Sandbox image repair when sandboxing is enabled.

@@ -469,14 +467,14 @@ That stages grounded durable candidates into the short-term dreaming store while

469467

<Accordion title="10. systemd linger (Linux)">

470468

If running as a systemd user service, doctor ensures lingering is enabled so the gateway stays alive after logout.

471469

</Accordion>

472-

<Accordion title="11. Workspace status (skills, plugins, and legacy dirs)">

470+

<Accordion title="11. Workspace status (skills, plugins, and TaskFlows)">

473471

Doctor prints a summary of the workspace state for the default agent:

474472
475473

- **Skills status**: counts eligible, missing-requirements, and allowlist-blocked skills.

476-

- **Legacy workspace dirs**: warns when `~/openclaw` or other legacy workspace directories exist alongside the current workspace.

477474

- **Plugin status**: counts enabled/disabled/errored plugins; lists plugin IDs for any errors; reports bundle plugin capabilities.

478475

- **Plugin compatibility warnings**: flags plugins that have compatibility issues with the current runtime.

479476

- **Plugin diagnostics**: surfaces any load-time warnings or errors emitted by the plugin registry.

477+

- **TaskFlow recovery**: surfaces suspicious managed TaskFlows that need manual inspection or cancellation.

480478
481479

</Accordion>

482480

<Accordion title="11b. Bootstrap file size">

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,3 @@

1-

import path from "node:path";

21

import { beforeEach, describe, expect, it, vi } from "vitest";

32

import type { OpenClawConfig } from "../config/config.js";

43

import type { checkQmdBinaryAvailability as checkQmdBinaryAvailabilityFn } from "../memory-host-sdk/engine-qmd.js";

@@ -97,7 +96,7 @@ vi.mock("./doctor-workspace.js", async (importOriginal) => {

9796
9897

import { noteMemorySearchHealth } from "./doctor-memory-search.js";

9998

import { maybeRepairMemoryRecallHealth, noteMemoryRecallHealth } from "./doctor-memory-search.js";

100-

import { detectLegacyWorkspaceDirs, formatRootMemoryFilesWarning } from "./doctor-workspace.js";

99+

import { formatRootMemoryFilesWarning } from "./doctor-workspace.js";

101100
102101

function resetMemoryRecallMocks() {

103102

auditShortTermPromotionArtifacts.mockReset();

@@ -1113,15 +1112,6 @@ describe("memory recall doctor integration", () => {

11131112

});

11141113

});

11151114
1116-

describe("detectLegacyWorkspaceDirs", () => {

1117-

it("returns active workspace and no legacy dirs", () => {

1118-

const workspaceDir = "/home/user/openclaw";

1119-

const detection = detectLegacyWorkspaceDirs({ workspaceDir });

1120-

expect(detection.activeWorkspace).toBe(path.resolve(workspaceDir));

1121-

expect(detection.legacyDirs).toStrictEqual([]);

1122-

});

1123-

});

1124-
11251115

describe("formatRootMemoryFilesWarning", () => {

11261116

it("explains split-brain when both root memory files exist", () => {

11271117

const message = formatRootMemoryFilesWarning({

Original file line numberDiff line numberDiff line change

@@ -11,7 +11,6 @@ import {

1111

import { buildWorkspaceSkillStatus } from "../skills/discovery/status.js";

1212

import { listTasksForFlowId } from "../tasks/runtime-internal.js";

1313

import { listTaskFlowRecords } from "../tasks/task-flow-runtime-internal.js";

14-

import { detectLegacyWorkspaceDirs, formatLegacyWorkspaceWarning } from "./doctor-workspace.js";

1514
1615

type NoteWorkspaceStatusOptions = {

1716

pluginVersionDrift?: PluginVersionDriftReport;

@@ -85,11 +84,6 @@ function notePluginVersionDrift(drift: PluginVersionDriftReport | undefined) {

8584

/** Emits workspace, skills, plugin, and TaskFlow recovery status notes for doctor. */

8685

export function noteWorkspaceStatus(cfg: OpenClawConfig, options: NoteWorkspaceStatusOptions = {}) {

8786

const workspaceDir = resolveAgentWorkspaceDir(cfg, resolveDefaultAgentId(cfg));

88-

const legacyWorkspace = detectLegacyWorkspaceDirs({ workspaceDir });

89-

if (legacyWorkspace.legacyDirs.length > 0) {

90-

note(formatLegacyWorkspaceWarning(legacyWorkspace), "Extra workspace");

91-

}

92-
9387

const skillsReport = buildWorkspaceSkillStatus(workspaceDir, { config: cfg });

9488

const platformIncompatibleCount = skillsReport.skills.filter(

9589

(s) => s.platformIncompatible && !s.disabled && !s.blockedByAllowlist,

Original file line numberDiff line numberDiff line change

@@ -52,30 +52,6 @@ export async function shouldSuggestMemorySystem(workspaceDir: string): Promise<b

5252

return true;

5353

}

5454
55-

export type LegacyWorkspaceDetection = {

56-

activeWorkspace: string;

57-

legacyDirs: string[];

58-

};

59-
60-

/** Detects legacy workspace directories related to the active workspace. */

61-

export function detectLegacyWorkspaceDirs(params: {

62-

workspaceDir: string;

63-

}): LegacyWorkspaceDetection {

64-

const activeWorkspace = path.resolve(params.workspaceDir);

65-

const legacyDirs: string[] = [];

66-

return { activeWorkspace, legacyDirs };

67-

}

68-
69-

/** Formats a warning for legacy workspace directories found near the active workspace. */

70-

export function formatLegacyWorkspaceWarning(detection: LegacyWorkspaceDetection): string {

71-

return [

72-

"Extra workspace directories detected (may contain old agent files):",

73-

...detection.legacyDirs.map((dir) => `- ${shortenHomePath(dir)}`),

74-

`Active workspace: ${shortenHomePath(detection.activeWorkspace)}`,

75-

"If unused, archive or move to Trash.",

76-

].join("\n");

77-

}

78-
7955

export type RootMemoryFilesDetection = {

8056

workspaceDir: string;

8157

canonicalPath: string;

Original file line numberDiff line numberDiff line change

@@ -684,33 +684,6 @@ const browserCheck: HealthCheck = {

684684

},

685685

};

686686
687-

const workspaceStatusCheck: HealthCheck = {

688-

id: "core/doctor/workspace-status",

689-

kind: "core",

690-

description: "Workspace directory exists and has no legacy duplicates.",

691-

source: "doctor",

692-

async detect(ctx) {

693-

const { detectLegacyWorkspaceDirs } = await loadDoctorWorkspaceModule();

694-

const workspaceDir = resolveAgentWorkspaceDir(ctx.cfg, resolveDefaultAgentId(ctx.cfg));

695-

const legacy = detectLegacyWorkspaceDirs({ workspaceDir });

696-

if (legacy.legacyDirs.length === 0) {

697-

return [];

698-

}

699-

return [

700-

{

701-

checkId: "core/doctor/workspace-status",

702-

severity: "info",

703-

message: `Detected ${legacy.legacyDirs.length} legacy workspace director${

704-

legacy.legacyDirs.length === 1 ? "y" : "ies"

705-

} alongside the active workspace.`,

706-

path: workspaceDir,

707-

fixHint:

708-

"Inspect the legacy directories and migrate or remove them; see `openclaw doctor` for the detailed migration prompt.",

709-

},

710-

];

711-

},

712-

};

713-
714687

function createSkillsReadinessCheck(deps: CoreHealthCheckDeps): HealthCheck {

715688

return {

716689

id: "core/doctor/skills-readiness",

@@ -989,7 +962,6 @@ export function createCoreHealthChecks(

989962

gatewayConfigCheck,

990963

...createConvertedWorkflowChecks(deps),

991964

commandOwnerCheck,

992-

workspaceStatusCheck,

993965

createSkillsReadinessCheck(deps),

994966

browserClawdProfileResidueCheck,

995967

finalConfigValidationCheck,

Original file line numberDiff line numberDiff line change

@@ -1377,7 +1377,6 @@ export function resolveDoctorHealthContributions(): DoctorHealthContribution[] {

13771377

createDoctorHealthContribution({

13781378

id: "doctor:workspace-status",

13791379

label: "Workspace status",

1380-

healthCheckIds: ["core/doctor/workspace-status"],

13811380

run: runWorkspaceStatusHealth,

13821381

}),

13831382

createDoctorHealthContribution({