This repository was archived by the owner on Aug 30, 2026. It is now read-only.
v3.4.0 — Workspace auto-detection + session timeout rotation
What's new
Workspace project auto-detection
- Scans
~/.openclaw/workspace/for project directories - When the prompt contains an exact match of a project name (case-insensitive, longest match first), automatically sets
workdirto that project and injects[Context: Working directory is ...]into the prompt - Project list is cached for 60s to avoid filesystem overhead
- Debug log shows
[WORKSPACE]entries when a project is detected
Consecutive timeout session rotation
- Tracks consecutive timeouts per CLI session
- After 3 timeouts in a row, auto-expires the session — next request creates a fresh one
- Prevents "poisoned" sessions from blocking all requests indefinitely
- Debug log shows
[SESSION] ... expired { reason: "consecutive_timeouts" }
Full changelog
src/cli-runner.ts: AddedconsecutiveTimeoutstracking,recordSessionTimeout(),detectProjectFromPrompt(),getWorkspaceProjects()src/config.ts: AddedWORKSPACE_DIRconstant- Version bump: 3.3.1 → 3.4.0 in all 4 files