Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

A deleted session reappears from the saved session list at startup

Open Beginner friendly
#60 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by reading RemoteSessionRepository.delete and SessionsViewModel, especially the local filtering for deletes and the ListCache flow used by cachedList(). Check how saved session lists are keyed per server and how SessionChanged refreshes them. Done means deleting a session removes it from every saved list for that server, so it does not reappear at startup offline.

Written by the indexing model from the issue text.

Description

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)

Dominant language
Kotlin
Stars
1
Forks
0
Avg merge
6h 11m
Merged PRs (30d)
32

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from beppe2880/opencode-mobile

All issues in beppe2880/opencode-mobile

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.