diff --git a/src/components/shell/hooks/useShellConnection.ts b/src/components/shell/hooks/useShellConnection.ts index 4fdec9d..8334a15 100644 --- a/src/components/shell/hooks/useShellConnection.ts +++ b/src/components/shell/hooks/useShellConnection.ts @@ -137,7 +137,7 @@ export function useShellConnection({ currentFitAddon.fit(); - sendSocketMessage(wsRef.current, { + sendSocketMessage(socket, { type: 'init', projectPath: currentProject.fullPath || currentProject.path || '', sessionId: isPlainShellRef.current ? null : selectedSessionRef.current?.id || null,