[Bug]: Agents panel opens at the oldest subagent on every thread switch, never the newest
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
- 66/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
Inizia da apps/web/src/components/AgentsPanel.tsx e controlla come viene montato ScrollArea quando cambiano i thread o le schede. Consulta packages/client-runtime/src/state/subagentRuntime.ts per confermare l’ordine dell’elenco. Implementa il comportamento concordato per la posizione iniziale, in modo che un pannello Agents appena aperto mostri l’agente più recente. Poi verificalo con un thread che contiene molti subagents e acquisisci screenshot prima e dopo, come richiesto da CONTRIBUTING.md.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Open a thread that has spawned many subagents. 20+ makes it obvious; I routinely have tens per thread.
- Open the right panel's Agents tab. The roster renders oldest-first, so the newest agent is at the very bottom.
- Scroll to the bottom to see the agent that is actually running.
- Switch to another thread and switch back. The same thing happens when switching the right panel to Files and back, or hiding and showing the right panel.
- Look at the Agents roster.
Expected behavior
Opening the Agents panel should land on the newest subagent, at the bottom of the list, because that is the one doing work right now. The oldest agent in a 30-agent roster finished twenty minutes ago and is the least useful thing to show.
A per-thread restored position would be an acceptable alternative for threads I have already visited, but a thread opened for the first time should still start at the newest agent rather than the oldest.
Actual behavior
The roster always mounts at the top, showing the oldest subagent. Every thread switch costs a manual scroll to the bottom to find the live agent. With tens of agents per thread this is constant friction.
Two things combine to produce it on current main:
- The roster is sorted oldest-first.
packages/client-runtime/src/state/subagentRuntime.ts:853sortsdirectAgentsby ascendingfirstSeenAt; workflow members sort by phase index thenagentIndex(same file, lines 784-824). The newest agent is always last. - The panel has no scroll handling at all.
apps/web/src/components/AgentsPanel.tsx:548renders a bareScrollAreawith no initial offset, no bottom anchoring, and no restoration across remounts, so it mounts atscrollTop: 0every time.
Impact
Minor bug or occasional failure
Version or commit
main @ e67abcf798f8
Environment
macOS
Logs or stack traces
Workaround
Scroll to the bottom of the Agents panel by hand after every thread switch.
Prior art, please read before marking this a duplicate
Three PRs have attempted the neighbouring problem, all closed unmerged:
- #9637 and #14512 were closed for incomplete UI verification, specifically a missing before capture.
- #14525 was closed as part of the orchestrator V2 transition (#2829), with the explicit note: "We're closing the current implementation without assuming the underlying request is resolved." That closure also said V2 removed
AgentsPanel.tsx; the file is present on currentmain, so whatever V2 did, the panel is back and still has no scroll handling.
All three solved scroll preservation, restoring the offset you last had on that thread. This issue is a different ask: land on the newest agent, including on a thread opened for the first time, where there is no saved offset to restore. The two could ship together, but preservation alone would not fix this.
Related but distinct: #8759 (right tabs should persist state and scroll position, generic, filed against the diff tab), #11571 (diff tab loses scroll position on thread switch), #17751 (Agents panel horizontal overflow, different axis).
Happy to contribute
I'm glad to pick this up and open the PR if a maintainer confirms the direction, in particular whether you want plain bottom-anchoring on mount or bottom-anchoring plus per-thread position restore. Given that two of the three prior PRs died on verification evidence rather than on the code, I'd rather agree the behavior first and then come with before/after captures that match CONTRIBUTING.md.
- Lingua principale
- TypeScript
- Stelle
- 24.8k
- Fork
- 6.4k
- Merge medio
- 3h 39m
- PR unite (30g)
- 301
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pingdotgg/t3code
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pingdotgg/t3code#22819 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: open project shortcutApertabug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di pingdotgg/t3code
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
zts212653/clowder-ai#1678 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
Progressive-Victory/the-website#680 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100