Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Renderer can miss chat events sent during startup

Chiusa
#192 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, typescript
Ambito
desktop

Direzione di ricerca

Start in src/renderer/src/app.ts around lines 155–211 and trace when the api.on(...) listeners are registered relative to the settings, project, and snapshot replies. Compare buffering events until the snapshot with sequencing snapshots and events; verify that a startup chat event is not lost and that the busy state is correct after reopening a window during a run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug platform: macos priority: low severity: low

Found in the 2026-10-07 code review (read; the race is not reproduced).

Problem

App registers its api.on(...) listeners only after Promise.all([settings, project, snapshot]) resolves (src/renderer/src/app.ts:155-211). Electron drops messages that arrive while no listener exists, so a chat event sent between the snapshot reply and the last reply is lost. This can only happen when the window is reopened on macOS while a run is in progress. A lost busy:false leaves Stop enabled and Send disabled until the next snapshot.

Fix

Register the listeners first and buffer events until the snapshot arrives, or add a sequence number to snapshots and ignore older events.

Lingua principale
TypeScript
Stelle
2
Fork
2
Merge medio
8h 28m
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PierrunoYT/patch

Tutte le issue di PierrunoYT/patch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.