Files
openclaw/src
Muhammed Mukhthar CM de5b75eff6 fix(tools): resolve Read/Write/Edit paths against workspace directory
Previously, Read/Write/Edit tools used the global tool instances from
pi-coding-agent which had process.cwd() baked in at import time. Since
the gateway starts from /root/dev/ai/clawdbot, relative paths like
'SOUL.md' would incorrectly resolve there instead of the agent's
workspace (/root/clawd).

This fix:
- Adds workspaceDir option to createClawdbotCodingTools
- Creates fresh Read/Write/Edit tools bound to workspaceDir
- Adds cwd option to Bash tool defaults for consistency
- Passes effectiveWorkspace from pi-embedded-runner

Absolute paths and ~/... paths are unaffected. Sandboxed sessions
continue to use sandbox root as before.

Includes tests for Read/Write/Edit workspace path resolution.
2026-01-10 17:08:56 +01:00
..
2026-01-10 17:03:17 +01:00
2026-01-10 02:06:21 +00:00
2026-01-10 17:02:28 +01:00
2026-01-08 03:54:35 +00:00
2026-01-10 16:37:54 +01:00
2026-01-10 04:01:06 +01:00
2026-01-04 14:38:51 +00:00
2026-01-10 03:14:13 +00:00
2026-01-10 04:07:15 +01:00
2026-01-04 14:57:57 +00:00
2026-01-06 04:51:05 +00:00
2026-01-06 04:51:05 +00:00
2025-12-26 02:35:40 +01:00
2026-01-04 14:38:51 +00:00