fix(ui): stop reconnect and polling loops when the host thread is gone
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
- 45/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- devtools
Línea de trabajo
Start with ReconnectLoop.run in src/ui/reconnect.ts (lines 26-37), where retries currently ignore everything except StopReconnectError. Then check how the host_thread_missing error reaches the logs and stream panels (src/ui/logs-panel.ts around 239-243, src/ui/simulator-panel.ts around 518), and the timers in src/ui/plugin-updates.ts:48 and src/ui/simulator-panel.ts:776. Done means that a missing thread stops every timer and shows "Session closed" in the panel, and that the loop no longer calls the host.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
When the Codex thread behind a panel is gone, UI panels keep calling the host forever. Host calls fail with MCP error -32600: thread not found, and the panel retries roughly every 10 s with no end.
Cause
ReconnectLoop.run(src/ui/reconnect.ts:26-37) retries every error that is not aStopReconnectError, with backoff capped at 10 s.- "thread not found" arrives as a JSON-RPC
McpError, not anisErrorresult, sosrc/ui/logs-panel.ts:239-243never turns it into a stop. - The stream panel starts the same loop at
src/ui/simulator-panel.ts:518. - These other timers also never check for a dead thread:
- the plugin-update interval (
src/ui/plugin-updates.ts:48) - device-apps discovery (
src/ui/simulator-panel.ts:776)
- the plugin-update interval (
Commit 44f1b66 now classifies host_thread_missing as session_closed and stops reporting it, so it disappears from Sentry. The loop still hits the host, and probably adds to the "App server request queue is full" errors.
Evidence (Sentry)
- MOBILE-DEV-UI-14: 64k events from only 3–5 users per release, tagged
operation: mobile_logs_session. About 17k events each on 0.1.147 and 0.1.163, which points to a few panels stuck in a loop. - MOBILE-DEV-UI-W:
mobile_check_plugin_update, 76 users - MOBILE-DEV-UI-V: device-apps discovery, stage
transport - MOBILE-DEV-UI-16, MOBILE-DEV-UI-17, MOBILE-DEV-UI-2J
- Related queue-full issues: MOBILE-DEV-UI-7, MOBILE-DEV-UI-1A
Suggested fix
Treat host_thread_missing as terminal in these places:
ReconnectLoop- the logs and stream receive paths
- device-apps discovery
- the plugin-update interval
Then stop all timers and show "Session closed" in the panel.
- Lenguaje dominante
- C++
- Estrellas
- 247
- Forks
- 21
- Merge medio
- 7 h 21 min
- PR fusionados (30 d)
- 58
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 callstackincubator/mobile-dev
-
documentation
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
callstackincubator/mobile-dev#117 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
callstackincubator/mobile-dev#116 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
callstackincubator/mobile-dev#115 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
callstackincubator/mobile-dev#112 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
callstackincubator/mobile-dev#111 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstackincubator/mobile-dev
Issues similares
-
difficulty:easy prio:normal type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NatronGitHub/openfx-supportext#295 ·
Los mantenedores suelen responder en 1 día
-
difficulty:easy prio:low type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
NatronGitHub/openfx-gmic#298 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NVIDIA-RTX/NVRHI#176 ·
-
fast_life and slow_life abort with an uncaught boost::bad_any_cast when --size or --put is omittedPosiblemente ocupada @krystion la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
objectionary/game-of-life#107 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 22 días