agentgui 1.0.642 → 1.0.643
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 +6 -6
- package/package.json +1 -1
package/lib/claude-runner.js
CHANGED
|
@@ -609,10 +609,10 @@ registry.register({
|
|
|
609
609
|
name: 'Claude Code',
|
|
610
610
|
command: 'claude',
|
|
611
611
|
protocol: 'direct',
|
|
612
|
-
supportsStdin:
|
|
613
|
-
closeStdin:
|
|
614
|
-
useJsonRpcStdin:
|
|
615
|
-
supportedFeatures: ['streaming', 'resume', 'system-prompt', 'permissions-skip'],
|
|
612
|
+
supportsStdin: true, // keep open for steering via JSON-RPC
|
|
613
|
+
closeStdin: false, // must NOT close stdin to allow steering prompts
|
|
614
|
+
useJsonRpcStdin: true, // support JSON-RPC steering input
|
|
615
|
+
supportedFeatures: ['streaming', 'resume', 'system-prompt', 'permissions-skip', 'steering'],
|
|
616
616
|
spawnEnv: { MAX_THINKING_TOKENS: '0' },
|
|
617
617
|
|
|
618
618
|
buildArgs(prompt, config) {
|
|
@@ -633,8 +633,8 @@ registry.register({
|
|
|
633
633
|
if (model) flags.push('--model', model);
|
|
634
634
|
if (resumeSessionId) flags.push('--resume', resumeSessionId);
|
|
635
635
|
if (systemPrompt) flags.push('--append-system-prompt', systemPrompt);
|
|
636
|
-
//
|
|
637
|
-
|
|
636
|
+
// Do NOT pass prompt as positional arg - send via stdin instead to allow steering
|
|
637
|
+
// This allows stdin to stay open for receiving JSON-RPC steering commands
|
|
638
638
|
|
|
639
639
|
return flags;
|
|
640
640
|
},
|