agentgui 1.0.669 → 1.0.671
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/claude-runner.js +3 -1
- package/package.json +1 -1
package/lib/claude-runner.js
CHANGED
|
@@ -95,6 +95,8 @@ class AgentRunner {
|
|
|
95
95
|
if (v === undefined) delete spawnOpts.env[k];
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
+
// Tell hooks the actual project dir (used by mcp-thorns/codebasesearch)
|
|
99
|
+
if (cwd) spawnOpts.env.CLAUDE_PROJECT_DIR = cwd;
|
|
98
100
|
if (this.closeStdin) {
|
|
99
101
|
spawnOpts.stdio = ['ignore', 'pipe', 'pipe'];
|
|
100
102
|
}
|
|
@@ -620,7 +622,7 @@ registry.register({
|
|
|
620
622
|
command: 'claude',
|
|
621
623
|
protocol: 'direct',
|
|
622
624
|
supportsStdin: false, // prompt passed as positional arg, not stdin
|
|
623
|
-
closeStdin:
|
|
625
|
+
closeStdin: true, // close stdin so claude doesn't wait for input in --print mode
|
|
624
626
|
useJsonRpcStdin: false,
|
|
625
627
|
supportedFeatures: ['streaming', 'resume', 'system-prompt', 'permissions-skip', 'steering'],
|
|
626
628
|
spawnEnv: { MAX_THINKING_TOKENS: '0', AGENTGUI_SUBPROCESS: '1', CLAUDECODE: undefined },
|