Automated-turn limit notice counts silent turns as replies

Aperta Adatta ai principianti
#2,797 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, devtools

Direzione di ricerca

Inizia da buildAutomatedTurnLimitResponse in packages/junior/src/chat/services/automated-turn-limit.ts e segui il percorso per individuare dove viene creato e testato l’avviso sul limite. Controlla come recordFinishedTurnForAutomatedLimit conta i turni automatizzati, compresi quelli senza un post visibile. Il lavoro è completo quando l’avviso descrive correttamente i turni conteggiati e i test pertinenti coprono i turni silenziosi.

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

Descrizione

When the automated-turn limit pauses a Conversation, Junior posts "I stopped automatic updates after 25 replies without a new message from you." The limit actually counts finished automated Turns, including Turns that end with no Slack post, so the stated number of replies can be far higher than what people see in the thread.

  • Observed: a PR-shepherd thread watched a PR plus repo-wide pull_request.merged events. After the last human message, there were about 20+ event wakes. Almost all ended silently (merges that didn't change mergeability). Only 4 bot replies were visible in Slack, but the notice said "25 replies".
  • Notice text: buildAutomatedTurnLimitResponse in packages/junior/src/chat/services/automated-turn-limit.ts interpolates maxTurns as "replies".
  • Counting: recordFinishedTurnForAutomatedLimit calls countAutomatedTurn for every automated source (event, event_automation, scheduled_automation, plugin_dispatch, agent_invocation), whether or not the Turn posted anything visible.

Reported by Markus Hintersteiner.

via markus.hintersteiner.

--

View Session [Sentry]

Lingua principale
TypeScript
Stelle
397
Fork
43
Merge medio
7h 42m
PR unite (30g)
650

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 getsentry/junior

Tutte le issue di getsentry/junior

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.