tycono 0.3.5 → 0.3.6
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 +1 -1
- package/src/tui/app.tsx +3 -1
package/package.json
CHANGED
package/src/tui/app.tsx
CHANGED
|
@@ -363,9 +363,11 @@ export const App: React.FC = () => {
|
|
|
363
363
|
// Load wave history into SSE events (for Panel Mode Stream tab)
|
|
364
364
|
const historyLoadingRef = useRef<string | null>(null);
|
|
365
365
|
const loadWaveHistoryEvents = useCallback(async (waveId: string) => {
|
|
366
|
-
// Guard: skip if already loading this wave
|
|
366
|
+
// Guard: skip if already loading this wave
|
|
367
367
|
if (historyLoadingRef.current === waveId) return;
|
|
368
368
|
historyLoadingRef.current = waveId;
|
|
369
|
+
// Wait for SSE reconnection to settle (it calls setEvents([]) on connect)
|
|
370
|
+
await new Promise(r => setTimeout(r, 500));
|
|
369
371
|
|
|
370
372
|
try {
|
|
371
373
|
const sessions = api.sessions.filter(s => s.waveId === waveId && s.roleId === 'ceo');
|