Files
gott/Services
MelekiandClaude Opus 4.8 fe18fc324e Set CLI child working directory to the workspace
The Claude CLI child process inherited the gott server's CWD because
CreateCliStartInfo never set WorkingDirectory. On Linux systemd usually
sets WorkingDirectory= to the workspace, so it worked by accident; on
Windows the service starts from its install directory, so the CLI's own
built-in tools resolved relative patterns (e.g. Glob "Sources/**")
against the wrong directory and returned "No files found", while
absolute paths still worked. --add-dir only grants access, it does not
set the CWD.

Thread the workspace through ChatStreamingAsync -> RunCliStreamingAsync
-> CreateCliStartInfo and set psi.WorkingDirectory (guarded by
Directory.Exists). GetStatusAsync stays without a CWD.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 08:07:31 +02:00
..
2026-03-09 11:35:04 +01:00