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

[Bug]: Add to agent silently discards an earlier unsent PR diff question

Aperta Adatta ai principianti
#14,637 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia dal passaggio al composer in apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx e dalla logica di sostituzione in apps/web/src/components/pullRequest/pullRequestDetail.logic.ts. Leggi il test correlato in apps/web/src/components/pullRequest/pullRequestDetail.logic.test.ts, quindi aggiorna la coverage in modo che le azioni ripetute di Add to agent conservino le domande e le citazioni di righe non ancora inviate.

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

Descrizione

enhancement 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

Steps to reproduce
  1. In a thread linked to a PR, open its Code tab.
  2. Select a diff line, enter a question, and click Add to agent. Do not send the composer.
  3. Repeat on a different line with a second question.
  4. Inspect the composer.
Expected behavior

I expected Add to agent to keep both unsent questions and their line citations.

Actual behavior

After the second action, only its line citation remains. The first unedited question is also replaced. The public [composer handoff](https://github.com/pingdotgg/t3code/blob/451afcb22d93f06cb24f9bc16703404564952553/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx#L1074-L1100) uses [replacement logic](https://github.com/pingdotgg/t3code/blob/451afcb22d93f06cb24f9bc16703404564952553/apps/web/src/components/pullRequest/pullRequestDetail.logic.ts#L659-L721), and its [test](https://github.com/pingdotgg/t3code/blob/451afcb22d93f06cb24f9bc16703404564952553/apps/web/src/components/pullRequest/pullRequestDetail.logic.test.ts#L1209-L1215) expects the earlier citation to be removed.

Impact

Cosmetic issue

Version or commit

No response

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
8h 34m
PR unite (30g)
243

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.