ChatGPT sign-in: keep-cache-warm does nothing and a revoked token is not refreshed

Cerrado
#202 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
53/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start in src/main/llm/codex_auth.ts:437-477 and inspect how CodexAuthedConversation wraps its conversation and how authentication requests handle 401 responses. Check nearby tests for keep-alive settings and token refresh behavior. Done when keep-alive behavior works for ChatGPT sign-in and a revoked token is refreshed once before retrying the request.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement priority: low severity: low

Suggestions from the 2026-10-07 code review (not bugs).

  • CodexAuthedConversation (src/main/llm/codex_auth.ts:437-477) lacks keepCacheWarm and lastRequestStartedAt, so the keep-alive setting silently has no effect for ChatGPT sign-in.
  • A 401 for a token revoked before its expiry isn't refreshed and retried once; the chat shows an error instead.

Proposal

Forward the keep-alive members to the wrapped conversation (or say in Settings that they don't apply), and on a 401 refresh the token once and repeat the request.

Lenguaje dominante
TypeScript
Estrellas
2
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.