Repository navigation
fix(openclaw): silence "no workspace dir" warning when OpenClaw not installed - #347
Merged
Merged
Conversation
…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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On a machine without OpenClaw installed,
teamai pullprints a warning for every skill and every CLAUDE.md file it syncs:resolveOpenclawWorkspaceDir()returnsnullwhen no workspace dir exists, then emitslog.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 treatsnullas "skip openclaw" and logs its owndebugline. Thelog.warnis pure noise, and because it fires once per skill / per CLAUDE.md file, it floods the output.Fix
Downgrade the single
log.warninresolveOpenclawWorkspaceDir()tolog.debug. No logic change; the diagnostic is still available in~/.teamai/debug.logfor troubleshooting.Test Plan
npx tsc --noEmit— passesnpm run build— succeedsteamai pull(via the freshly built dist, in a project without OpenClaw) — 0 openclaw warnings on the terminal (was 19+)~/.teamai/debug.logat DEBUG level, so observability is preserved