Skip to content

fix(openclaw): silence "no workspace dir" warning when OpenClaw not installed - #347

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
jeff-r2026:fix/openclaw-workspace-warn
Aug 27, 2026
Merged

jeff-r2026 merged 1 commit into
Tencent:mainfrom
jeff-r2026:fix/openclaw-workspace-warn

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Problem

On a machine without OpenClaw installed, teamai pull prints a warning for every skill and every CLAUDE.md file it syncs:

⚠ openclaw: no workspace dir found (tried: /Users/.../.openclaw/workspace)
⚠ openclaw: no workspace dir found (tried: /Users/.../.openclaw/workspace)
... (repeated 19+ times)

resolveOpenclawWorkspaceDir() returns null when no workspace dir exists, then emits log.warn. But a missing workspace dir is simply the normal case when OpenClaw isn't installed — every caller (skills.ts, local-agent.ts, uninstall.ts) already treats null as "skip openclaw" and logs its own debug line. The log.warn is pure noise, and because it fires once per skill / per CLAUDE.md file, it floods the output.

Fix

Downgrade the single log.warn in resolveOpenclawWorkspaceDir() to log.debug. No logic change; the diagnostic is still available in ~/.teamai/debug.log for troubleshooting.

Test Plan

  • npx tsc --noEmit — passes
  • npm run build — succeeds
  • teamai pull (via the freshly built dist, in a project without OpenClaw) — 0 openclaw warnings on the terminal (was 19+)
  • Confirmed the message is still written to ~/.teamai/debug.log at DEBUG level, so observability is preserved

…nstalled

A missing workspace dir is the normal case on machines without OpenClaw;
all callers already treat null as "skip openclaw" and emit their own debug
line. Downgrade the per-skill/per-file log.warn to log.debug so `teamai pull`
no longer spams warnings on machines without OpenClaw.
@jeff-r2026
jeff-r2026 merged commit ed4eb58 into Tencent:main Aug 27, 2026
7 checks passed
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
…nstalled (Tencent#347)

A missing workspace dir is the normal case on machines without OpenClaw;
all callers already treat null as "skip openclaw" and emit their own debug
line. Downgrade the per-skill/per-file log.warn to log.debug so `teamai pull`
no longer spams warnings on machines without OpenClaw.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant