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

A deleted session reappears from the saved session list at startup

Aperta Adatta ai principianti
#60 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
70/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, kotlin
Ambito
mobile

Direzione di ricerca

Inizia leggendo RemoteSessionRepository.delete e SessionsViewModel, in particolare il filtraggio locale per le eliminazioni e il flusso di ListCache usato da cachedList(). Verifica come vengono indicizzate per server le liste di sessioni salvate e come SessionChanged le aggiorna. Il lavoro è completato quando l’eliminazione di una sessione la rimuove da tutte le liste salvate per quel server, così che non riappaia all’avvio offline.

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

Descrizione

bug
What happened?

A deleted session comes back in the session list the next time the app starts. Deleting removes it from the list on screen and, since #55, from the in-memory seen cache, but the session list saved on disk (ListCache, shown at startup before the server answers) still contains it. Nothing reloads the list after a delete, because SessionsViewModel handles both its own delete and the session.deleted event by filtering locally.

On the next launch cachedList() shows the deleted session until list() returns and rewrites the cache; with no connection it stays, and opening it fails. cachedList() also puts it back into seen.

Renames are not affected: SessionChanged triggers a reload, which rewrites the saved list.

Expected: deleting a session also removes it from every saved list of that server, so it never shows up again.

Steps to reproduce
  1. Delete a session from the session list.
  2. Close the app (swipe it away) and turn off the connection, or stop the server.
  3. Open the app: the deleted session is in the list. With the connection on, it shows for a moment and then disappears.
App version

main @ 4adf274

OpenCode server version

Any, client-side behavior

Device and Android version

Any; found while reviewing #55 (RemoteSessionRepository.delete, SessionsViewModel)

Lingua principale
Kotlin
Stelle
1
Fork
0
Merge medio
6h 23m
PR unite (30g)
31

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 beppe2880/opencode-mobile

Tutte le issue di beppe2880/opencode-mobile

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.