Repository navigation
docs: add minimal container / agent sandbox instructions to AGENTS.md #2832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d35592b
71c57ea
d560ac6
08ada6f
ec51e42
e25b653
80fff9a
fc4de77
68f5bbc
de8a7e5
e4ef297
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,6 +202,37 @@ on Linux, Windows, and macOS. | |
|
|
||
| Do not rerun passing checks on unchanged code merely for additional confidence. | ||
|
|
||
| ## Minimal containers and agent sandboxes | ||
|
|
||
| Fresh dev containers and agent sandboxes (Cursor Cloud, devcontainers, CI | ||
| images) often ship Node but not Bun. Install it first: | ||
|
|
||
| ```bash | ||
| curl -fsSL https://bun.sh/install | bash # installs ~/.bun/bin/bun | ||
| export PATH="$HOME/.bun/bin:$PATH" | ||
| bun install && (cd gui && bun install) | ||
| ``` | ||
|
|
||
| Run the proxy with `bun run src/cli/index.ts start --port <port>`. `/healthz` | ||
| reports status, `/` serves the dashboard, and the management API requires the | ||
| admin token the server writes to `$OPENCODEX_HOME/admin-api-token` at startup. | ||
|
|
||
| `bun run test` has five known environment-only failures in such containers. | ||
| They are not regressions; do not re-investigate them: | ||
|
|
||
| - `service diagnostics > status summary exposes the service log path`, | ||
| `CLI subcommand help > status prints diagnostics without starting the proxy`, | ||
| and `CLI subcommand help > invalid service and codex-shim usage include | ||
| remove alias` require a running systemd init; in a container PID 1 is | ||
| typically `tini` or another minimal init, so service commands report | ||
| "systemd not found". | ||
| - `package tree integrity > an in-place rewrite of the same byte length is | ||
| still a replacement` and `Codex Log Guard inspection > repeat inspection is | ||
| memoized and invalidated by a write` rely on filesystem mtime granularity | ||
| that some container filesystems do not provide. | ||
|
Comment on lines
+229
to
+232
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On filesystems whose modification timestamp does not advance for these writes, the failures demonstrate real runtime behavior rather than harmless test flakiness: AGENTS.md reference: AGENTS.md:L325-L327 Useful? React with 👍 / 👎. |
||
|
|
||
| Everything else passes (15480 pass / 16 skip / 5 fail as of 2.35.0). | ||
|
|
||
| ## Issues and pull requests (agents) | ||
|
|
||
| Agent-created issues and PRs must use the repository templates. The gates | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the fresh-container scenario described here,
OPENCODEX_HOMEis normally unset, whilegetConfigDir()falls back to~/.opencodex. An agent following this text literally will therefore look for/admin-api-tokenafter shell expansion instead of the actual~/.opencodex/admin-api-tokenand will be unable to authenticate direct management API requests. State both the default path and the environment-variable override.Useful? React with 👍 / 👎.