Skip to content
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

Choose a tag to compare

@homeofe homeofe released this 12 Apr 17:50
· 71 commits to main since this release

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 workdir to 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: Added consecutiveTimeouts tracking, recordSessionTimeout(), detectProjectFromPrompt(), getWorkspaceProjects()
  • src/config.ts: Added WORKSPACE_DIR constant
  • Version bump: 3.3.1 → 3.4.0 in all 4 files