Android: opening a session crashes the app
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- mobile-dev
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Kotlin
- Estrellas
- 146
- Forks
- 35
- Merge medio
- 7 h 41 min
- PR fusionados (30 d)
- 221
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode-android
-
F-droid releaseAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
anomalyco/opencode-android#345 ·
Los mantenedores suelen responder en 1 día
-
Crash: IllegalStateException in AppContext.getLiveValuePosiblemente ocupada @Tarquinen la tomó hace 1 día. Abiertocrash crash-triaged
Dificultad 3/5 Medio día Aptitud para principiantes 65/100
anomalyco/opencode-android#343 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
crash crash-needs-human crash-triaged
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
anomalyco/opencode-android#341 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
crash crash-needs-human crash-triaged
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
anomalyco/opencode-android#340 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponsePosiblemente ocupada @Tarquinen la tomó hace 3 días. Abiertocrash crash-triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
anomalyco/opencode-android#320 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode-android
Issues similares
-
feature request needs decision
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
tswistak/Battery-Monitor#207 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
IzzyOnDroid inclusionAbiertoF-Droid FOSS question
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
d4rken-org/butler#365 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
panel-assistant/android#224 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día