Android: opening a session crashes the app
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 22/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- mobile-dev
Direção de pesquisa
The crash happens when opening a non-archived session from Home, so start with the Home transcript cache, prefetch, and unread-anchor code that runs on open, not the message renderer. Reproduce with a session of about 437 messages on an Android device, capture logcat -b crash for the failing open, and check whether the unread anchor points outside the loaded limit=30 window. Done means the session opens from Home without crashing and a regression check covers that path.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Opening one specific session crashes the Android app immediately. The same session opens fine on iOS. Every other session on the same Android install opens fine.
Archiving the session makes it open normally from the Archived page, with the exact same server payload. So the crash is not in the message content; it looks tied to the non-archived open path (Home transcript cache / unread positioning / Catch Up).
Environment
- App: 0.8.4 (Android)
- Device: Lenovo Pad, Android 13 (tablet)
- Server: opencode 2.3.2, V2 contract
- Session: ~437 messages, ~1.2 MB
Steps
- Pair the app with the server.
- Tap the affected session from Home.
- The app closes immediately (no error screen).
Expected
Session opens and shows the latest replies.
Actual
Instant crash from Home. Other sessions open normally. iOS opens the affected session without problems.
Key observation: archiving fixes it
After archiving the session, opening it from the Archived page works normally.
Reverse-proxy logs show the app requested the same endpoint before and after archiving:
- before archive:
GET /api/session/<id>/message?order=desc&limit=30→ 18397 bytes - after archive:
GET /api/session/<id>/message?order=desc&limit=30→ 18397 bytes (identical) - after archive the app also paged older history:
GET /api/session/<id>/message?limit=80&cursor=…→ 73095 bytes, rendered fine
The archived session's newest 30 messages include the two assistant replies with Markdown tables and the 1090-char single-line tool output. They render fine in that path, so the content is not the trigger.
Hypothesis
Non-archived sessions are in Home's prefetch/cache, Catch Up and unread/new-message tracking. Archived sessions are excluded from all of those, so they open with a clean load of limit=30.
This points at the Home transcript cache or the unread-anchor logic during opening (possibly positioning on a message outside the loaded window), not at message rendering.
Ask
If useful, I can bisect further and capture logcat -b crash for the failing open. Happy to provide the full /api/session/<id>/message?order=desc&limit=30 response (sanitized) if you want to reproduce.
- Linguagem predominante
- Kotlin
- Estrelas
- 146
- Forks
- 35
- Merge médio
- 7h 41min
- PRs com merge (30d)
- 221
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de anomalyco/opencode-android
-
F-droid releaseAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
anomalyco/opencode-android#345 ·
Mantenedores costumam responder em até 1 dia
-
Crash: IllegalStateException in AppContext.getLiveValueTalvez já em andamento @Tarquinen assumiu há 1 dia. Abertacrash crash-triaged
Dificuldade 3/5 Meio dia Facilidade para iniciantes 65/100
anomalyco/opencode-android#343 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
crash crash-needs-human crash-triaged
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 58/100
anomalyco/opencode-android#341 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
crash crash-needs-human crash-triaged
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
anomalyco/opencode-android#340 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponseTalvez já em andamento @Tarquinen assumiu há 3 dias. Abertacrash crash-triaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
anomalyco/opencode-android#320 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de anomalyco/opencode-android
Issues semelhantes
-
feature request needs decision
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
tswistak/Battery-Monitor#207 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
IzzyOnDroid inclusionAbertaF-Droid FOSS question
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
d4rken-org/butler#365 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
panel-assistant/android#224 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia