setup: --refresh-registered reinstalls Codex globally from the checkout's own .agents render

Abierto
#4,835 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
67/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
git, shell, typescript
Área
cli, devtools

Línea de trabajo

Start with bin/gstack-install-registry.sh, especially gstack_install_known_roots around lines 263–267, and trace how it handles the source checkout as the project root during ./setup --refresh-registered. Reproduce the reported setup with codex in .gstack-installed-hosts and a Claude install row. Done when refresh no longer creates a Codex global install from the checkout’s .agents render.

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

Descripción

Every upgrade puts gstack back into ~/.codex/skills, even when ~/.gstack/installs.tsv has only a claude row. Deleting ~/.codex/skills/gstack doesn't stick, because the next upgrade brings it back.

Setup: global Claude install at ~/.claude/skills/gstack, with ./setup --host codex run once months ago, so .gstack-installed-hosts still lists codex.

The loop:

  1. With codex in .gstack-installed-hosts, setup renders .agents/skills/ inside the checkout, the .agents/skills/gstack sidecar included.
  2. The upgrade runs cd "$ROOT" && ./setup --refresh-registered. gstack_install_known_roots takes git rev-parse --show-toplevel as the project, which here is the checkout itself, and emits codex project <checkout>/.agents/skills/gstack. _gstack_install_source resolves that sidecar to the checkout, so the refresh adds it as a pre-registry Codex install.
  3. The refresh child gets --host codex without --global (only global rows get it). The checkout lives in ~/.claude/skills, so CODEX_REPO_LOCAL stays 0 and it installs into ~/.codex/skills, writes a codex global row and adds codex back to .gstack-installed-hosts.

Result on 1.103.1.0: codex experimental global installed in the summary of every upgrade. Still the same on main (959df8c), bin/gstack-install-registry.sh:263-267.

Suggestion: skip the project rows in gstack_install_known_roots when the toplevel is the source checkout, since its .agents/ is a render, not an install.

Workaround: rm -r <checkout>/.agents, drop codex from .gstack-installed-hosts and installs.tsv, remove ~/.codex/skills/gstack*.

Lenguaje dominante
TypeScript
Estrellas
143k
Forks
21k
Merge medio
7 h 19 min
PR fusionados (30 d)
781

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.

Más de garrytan/gstack

Todos los issues de garrytan/gstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.