agentgui 1.0.676 → 1.0.678

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.
@@ -128,8 +128,8 @@ class AgentRunner {
128
128
  reject(new Error(`${this.name} timeout after ${timeout}ms`));
129
129
  }, timeout);
130
130
 
131
- // Write prompt to stdin if agent uses stdin protocol (not positional args)
132
- if (this.supportsStdin) {
131
+ // Write prompt to stdin only for agents that use stdin protocol (not positional args)
132
+ if (this.supportsStdin && this.stdinPrompt) {
133
133
  proc.stdin.write(prompt);
134
134
  // Don't call stdin.end() - agents need open stdin for steering
135
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.676",
3
+ "version": "1.0.678",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -4102,9 +4102,6 @@ const BROADCAST_TYPES = new Set([
4102
4102
 
4103
4103
  const wsOptimizer = new WSOptimizer();
4104
4104
 
4105
- // Global sequence counter for atomic event ordering across all broadcasts
4106
- let broadcastSeq = 0;
4107
-
4108
4105
  function broadcastSync(event) {
4109
4106
  try {
4110
4107
  // Assign global sequence number to ALL events for ordering guarantee