Skip to content

[Bug]: openclaw doctor misses Windows cloud-synced state dirs #98470

Description

@haruaiclone-droid

Problem

openclaw doctor warns about macOS cloud-synced state directories, but native Windows state under OneDrive or similar cloud-synced folders is not detected.

On Windows, managed startup persists and reuses OPENCLAW_STATE_DIR for the generated gateway startup scripts plus sessions, credentials, config, and SQLite state. If the state dir is under OneDrive / Dropbox / Google Drive / iCloud Drive, Files On-Demand hydration, sync locks, or delayed writes can make startup readiness flaky or block session/state writes.

Repro

  1. On Windows, set OPENCLAW_STATE_DIR to a cloud-synced location, e.g. C:\Users\alice\OneDrive\OpenClaw\.openclaw or C:\Users\alice\OneDrive - Contoso\OpenClaw\.openclaw.
  2. Run openclaw doctor.

Expected

Doctor warns that the state directory is under Windows cloud-synced storage and recommends a local non-synced path such as %USERPROFILE%\.openclaw.

Actual

No cloud-synced state-dir warning is emitted on Windows.

Impact

This misses a common Windows startup failure class where terminal setup may work initially, but GUI/login startup later sees slow, locked, or dehydrated Gateway state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions