/codex: the filesystem boundary's bare `agents/` makes Codex skip a repository's own agents/ folder

Aperta Adatta ai principianti
#3,924 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@indraoverflow ci sta già lavorando.

Dal 5/11/2026.

  • #3995 di @indraoverflow — chiusa senza merge
  • #4037 di @indraoverflow — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
markdown
Ambito
devtools

Direzione di ricerca

Inizia da codex/SKILL.md, nella sezione "Filesystem Boundary", dove il testo del prompt elenca i percorsi protetti e include la voce generica agents/. Verifica come quel testo di confine viene inserito in ogni prompt di codex exec. È completato quando la voce indica solo i percorsi di installazione esatti (~/.claude/skills/, ~/.agents/, .claude/skills/, agents/openai.yaml), oppure quando il testo afferma che le cartelle del repository esaminato sono leggibili, e un prompt di test con una modifica a agents/ nel diff lo conferma.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug S3

What happens

The filesystem boundary that /codex puts in front of every codex exec prompt (codex/SKILL.md, "Filesystem Boundary") reads:

IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. ...

The first three entries are the skill install paths. The last one, agents/, is relative to the repository, so it also matches a repository's own agents/ folder when that folder is reviewed code (for example a repo that keeps agent prompt files in agents/ and tests them).

Seen on v1.91.162.0 (the text is unchanged in v1.91.350.0), Codex consult mode, reviewing a diff that changed agents/planner.md:

  • Codex left the changed agents/planner.md out of its review.
  • It wrapped the repo's documentation test suites in a read guard, and the suites that read agents/ were blocked (4 of 12 in one run; 3 of 3 that read it in a later run whose diff didn't touch agents/ at all).
  • Its verdict was "Can't verify".

It isn't consistent: an earlier run in the same session, with the same boundary, ran all 12 suites. The workaround is one extra sentence in the task text saying the repository's agents/ folder is reviewed code and may be read.

Expected

The boundary keeps Codex out of skill definitions without hiding repository content that happens to share the folder name.

Suggestion

Name the exact install paths the boundary protects (~/.claude/skills/, ~/.agents/, .claude/skills/, and the generated agents/openai.yaml it already names), not a bare agents/. Or add a sentence saying the reviewed repository's own folders are always readable. A test prompt for a repo with an agents/ folder in its diff would pin it.

Lingua principale
TypeScript
Stelle
139k
Fork
20.6k
Merge medio
10h 12m
PR unite (30g)
655

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di garrytan/gstack

Tutte le issue di garrytan/gstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.