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

オープン
#4,835 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, shell, typescript
領域
cli, devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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*.

主要言語
TypeScript
スター
143k
フォーク
21k
平均マージ
7時間 19分
マージ済み PR(30日)
781

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

garrytan/gstack のほかの issue

garrytan/gstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。