chat: honor the per-session cwd for Super Admin (was hardcoded to home)

claude-manager pinned the spawn cwd to HOST_HOME for Super Admin, ignoring the
cwd passed from the chat handler — so /chat sessions ran in /home/pastilhas
regardless. Now it uses params.cwd when provided (falling back to HOST_HOME),
so /chat actually runs from the dedicated claude_sessions directory.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-24 10:04:17 +00:00
co-authored by Claude Opus 4.8
parent add5351dc7
commit bea3d0a487
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -61,6 +61,7 @@ export type ClaudeSpawnParams = {
sessionKey: string;
model?: string;
role?: string;
cwd?: string;
};
export type ClaudeSpawnStreamingParams = {