Skip to content

fix(codex): discover mounted stores and stream large rollouts (v0.9.1) - #34

Merged
daimonbot merged 2 commits into
mainfrom
fix/codex-sidecar-32
Oct 24, 2026
Merged

daimonbot merged 2 commits into
mainfrom
fix/codex-sidecar-32

Conversation

@daimonbot

@daimonbot daimonbot commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Problem and result

The sidecar at atlas.nasvigo.com indexed only Claude sessions: the image used the container user's Codex home instead of the mounted operator store. Atlas also ignored the standard CODEX_HOME environment variable. Enabling the real Codex corpus exposed a second failure: reading and splitting an entire large rollout exhausted a 512 MB JavaScript heap.

This patch uses AGENT_ATLAS_CODEX_ROOT > CODEX_HOME > ~/.codex, supplies /data/home/.codex as the image's default CODEX_HOME, and places the image's pricing cache under writable /tmp. Codex rollouts are read in chunks and parsed line by line, retaining only contexts and usage records instead of the full transcript. Database connections remain read-only.

Prepares patch release v0.9.1.

Refs #32. The large-corpus investigation in #25 remains open: this fixes whole-rollout allocation, not the broader indexing architecture. Cursor is unchanged.

Validation

  • Reproduced the missing-home failure: a mounted Codex fixture with only CODEX_HOME returned zero sessions before the patch.
  • Full local HTTP indexing against the real /home/paseo/.codex completes with 613 Codex sessions and no index error, under a 512 MB JavaScript heap. The model filter returns 45 GPT-6.1 Sol sessions.
  • The operator's current conversation resolves through the local detail API with a nonzero computed cost.
  • Reproduced heap exhaustion while indexing the real corpus with a 512 MB heap before the streaming fix.
  • Regression tests cover custom-home discovery, explicit Atlas override precedence, prices and model facets through the HTTP API, and an active WAL store on a read-only filesystem.
  • A synthetic transcript over 100 MB is priced successfully with a 64 MB JavaScript heap.
  • Typecheck, build, tests, and the 50,000-session benchmark pass locally. CI passes, including both browser tests. Verification.

After merge, publish v0.9.1 and verify the GHCR version and latest image tags. The operator explicitly authorized the hotfix merge and patch release after local validation.

@daimonbot
daimonbot merged commit bb805f1 into main Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant