tycono 0.1.96-beta.15 → 0.1.96-beta.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.1.96-beta.15",
3
+ "version": "0.1.96-beta.17",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tui/app.tsx CHANGED
@@ -109,6 +109,14 @@ export const App: React.FC = () => {
109
109
  return waveStatus;
110
110
  }, [sse.streamStatus, waveStatus, activeCount]);
111
111
 
112
+ // Auto-clear waveId when wave completes → next message starts fresh wave
113
+ useEffect(() => {
114
+ if (derivedWaveStatus === 'done' && waveId) {
115
+ setWaveId(null);
116
+ setWaveStatus('idle');
117
+ }
118
+ }, [derivedWaveStatus, waveId]);
119
+
112
120
  // Command handler
113
121
  const { execute } = useCommand({
114
122
  activeWaveId: effectiveWaveId,
@@ -119,6 +127,7 @@ export const App: React.FC = () => {
119
127
  api.refresh();
120
128
  },
121
129
  onStopped: () => {
130
+ setWaveId(null);
122
131
  setWaveStatus('idle');
123
132
  api.refresh();
124
133
  },
@@ -169,6 +169,7 @@ export function summarizeEvent(event: SSEEvent, allRoleIds: string[]): StreamLin
169
169
  }
170
170
 
171
171
  case 'msg:error': {
172
+ if (isSupervisor) return null; // Supervisor errors handled by system messages
172
173
  const error = ((event.data.error as string) ?? '').slice(0, 60);
173
174
  return {
174
175
  id: ++lineCounter,
@@ -176,7 +177,7 @@ export function summarizeEvent(event: SSEEvent, allRoleIds: string[]): StreamLin
176
177
  prefixColor: roleColor,
177
178
  text: `✗ ${error}`,
178
179
  color: 'red',
179
- indent: !isSupervisor,
180
+ indent: true,
180
181
  };
181
182
  }
182
183