desktop: app-version.v1 in drafts.sqlite is never refreshed — reports 1.19.4 while running 2.3.2
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- sqlite, typescript
- Área
- backend, desktop-dev
Línea de trabajo
Busca en el workspace de escritorio la clave literal app-version.v1 (y drafts.sqlite) para encontrar dónde se escribe la fila de estado en el primer arranque; ese sitio de escritura es lo que hay que cambiar. Luego mira cómo se lee en otros lugares la versión del build empaquetado — el issue apunta a resources/opencode-cli.version y al ProductVersion del exe — y úsala como fuente de verdad al iniciar en lugar del valor persistido. Hecho significa que un arranque nuevo tras una actualización deja default.dat / app-version.v1 igual a la versión en ejecución; verifica consultando la tabla state en drafts.sqlite antes y después.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Summary
default.dat / app-version.v1 in the desktop state store is written once and never updated on upgrade, so it reports a version far behind the running app. I hit this while filing another issue: I stated "Desktop 1.19.4" while actually running 2.3.2, and triage had to correct me.
Environment
- OpenCode Desktop 2.3.2 (
OpenCode.exe→ ProductVersion 2.3.2, bundledresources/opencode-cli.version= 2.3.2) - Windows 10 Pro
- Store:
%APPDATA%\ai.opencode.desktop\drafts.sqlite, tablestate
Evidence
name = default.dat
key = app-version.v1
value = {"version":"1.19.4"}
updated_at = 1792734461668 (2026-10-23 10:47:41)
Neighbouring rows in the same store are current, so this is not a stale database:
default.dat / settings.v3 updated 2026-11-24 15:56 (today)
opencode.global.dat / server updated 2026-11-24 16:32 (today)
default.dat / app-version.v1 updated 2026-10-23 10:47
Expected
Version metadata should reflect the running build, or not be persisted at all.
Actual
Frozen at 1.19.4 across at least one upgrade to 2.3.2.
Impact
- Bug reports and diagnostics that read this key carry a wrong version, which misroutes triage (mine was initially treated as a V1/V2 mismatch).
- Anything gated on "version changed since last run" (release notes, update prompts, one-time migrations) can behave incorrectly if it reads the same key.
Suggested fix
Read the version from the packaged manifest at startup (or compare it with the key and rewrite it on boot); do not rely on a value written once at first run.
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot
No response
Operating System
No response
Terminal
No response
- Lenguaje dominante
- TypeScript
- Estrellas
- 228k
- Forks
- 31k
- Merge medio
- 3 h 22 min
- PR fusionados (30 d)
- 476
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 anomalyco/opencode
-
area/mcp platform/windows status/repro-simulated type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#66073 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
claude-agent with a Claude subscription doesn't set cache.ttl, so warming pings every 4 minutesAbiertoarea/providers platform/windows type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
anomalyco/opencode#66001 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area/mcp platform/windows type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#65997 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
@opencode/ui: v2-text-text-faint and light v2-state-fg-warning fall below WCAG AA 4.5:1 contrastPosiblemente ocupada @KhadeerBasha1232 la tomó hoy. Abiertostatus/repro-plausible
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anomalyco/opencode#65923 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/core platform/windows type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
anomalyco/opencode#65880 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
lidofinance/validator-ejector#233 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
ai-driven-qa bug claude Major
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
linagora/twake-mail-admin#742 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OpenSlides/openslides-client#6728 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100