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

[Bug]: Default-ref confirmation changes content while closing

Aperta Adatta ai principianti
#13,831 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@otavio ci sta già lavorando.

Dal 7/10/2026.

  • #13921 di @otavio — chiusa senza merge
  • #16907 di @otavio — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
86/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia in apps/web/src/components/GitActionsControl.tsx, nello state pendingDefaultBranchAction e nel rendering della finestra di dialogo intorno alle righe 2008-2039. Leggi apps/web/src/components/ui/dialog-styles.ts per comprendere la transizione di uscita di 200 ms. Riproduci la chiusura con Abort, il pulsante di chiusura ed Escape; il lavoro è completato quando il titolo, la descrizione e le etichette dei pulsanti originali rimangono invariati fino alla completa chiusura della finestra di dialogo.

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

Descrizione

bug via-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web (also visible in the desktop app, which uses the web UI)

Steps to reproduce
  1. Open a git-backed thread on the repository's default ref, with working-tree changes and a configured remote.
  2. Click the top-right Commit & push action so the Commit & push to default ref? confirmation opens.
  3. Dismiss the confirmation with Abort, the close button, or Escape.
  4. Watch the dialog during its closing animation.
Expected behavior

The title, description, and button labels stay the same until the dialog has fully closed.

Actual behavior

Before the dialog disappears, its content changes to shorter fallback text. The title becomes Run action on default branch?, the description disappears, and the primary action label becomes Continue. This makes the dialog visibly shrink or jump during its exit animation.

Impact

Cosmetic issue.

Version or commit

Reported on 0.0.43-nightly.20260926.2282. The same state flow is present in source at 5f878d2a85807618a4c8571cdef5daa3124672d6.

Environment

T3 Code local instance on Linux (CachyOS). Exact client surface was not confirmed.

Investigation

The dialog's open prop depends on pendingDefaultBranchAction !== null. Dismissing it immediately sets that state to null, which also makes pendingDefaultBranchActionCopy null. The rendered title, description, and button then change to their fallback values while the popup remains mounted for its 200 ms exit transition.

Relevant source: GitActionsControl.tsx, dialog rendering, and exit transition.

I confirmed this state path in source, but could not capture a browser recording in this environment.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
6h 23m
PR unite (30g)
203

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.