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

Files pane shows "Nothing here" on its first open after a page load

Aperta
#7,325 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Start by tracing the Files pane's loading and empty-state conditions, especially drive.mount, lazyTree.rootLoading, and FolderView; the issue does not name the relevant files or tests. Reproduce by hard-reloading with the pane closed, then opening it while watching the mounts request in DevTools. Done when the first open shows a loading state while mounts are unresolved and offers a retry if the mounts query fails.

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

Descrizione

What happens

On `/m`, the first time you open a session's Files pane after a page load, the root folder shows "Nothing here". Close the pane and open it again, and the files show. Seen three times during v0.121.8 release QA on the oss stage.

Probable cause

Read from the code, not yet confirmed live. The behavior predates v0.121.8: the files that choose between the tree, the skeleton and the empty state did not change in that release.

  1. The agent-files side answers from cache, so the file count is above 0 and `drive.isLoading` is false.
  2. The session's mounts query is still pending, so `drive.mount` is null.
  3. The skeleton condition `drive.mount && lazyTree.rootLoading` is false, `useLazyDriveTree` mounts no root listing, and `FolderView` shows its empty state.
  4. On reopen, the mounts result is cached, so the tree loads.

To confirm

Hard-reload with the pane closed. In DevTools, filter the network on `mounts`, and open the pane. Check that the mounts request is still pending while "Nothing here" shows.

Fix idea

Show the skeleton while the session side has not resolved its mount, and show a retry if the mounts query fails.

Lingua principale
TypeScript
Stelle
4.8k
Fork
690
Merge medio
18h 33m
PR unite (30g)
424

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 Agenta-AI/agenta

Tutte le issue di Agenta-AI/agenta

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.