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.
@@ -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: false, // keep stdin open for JSON-RPC steering commands
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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.669",
3
+ "version": "1.0.671",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",