Repository navigation
fix(relay): read Codex conversation transcripts - #104
Merged
dcolinmorgan merged 2 commits intoOct 23, 2026
Merged
Conversation
locate_codex returns the resolved path, and on macOS a temp dir lives under /var, which is a symlink to /private/var. The test compared the unresolved path, so it failed on every mac while passing on the Linux runner.
dcolinmorgan
force-pushed
the
fix/codex-transcript-history
branch
from
October 23, 2026 18:03
e172cb3 to
769b5cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #103.
Codex panes already provide a valid session UUID, but
get_historyreturnsunavailable: "unsupported"because the transcript harness registry has no Codex reader. This adds the missing reader without changing the client protocol or requiring a web-client change.Changes
YYYY/MM/DDand legacy flat session directories. Honor localCODEX_HOMEand optionalHERDR_CODEX_ROOTS; keep local lookups contained within configured roots, including symlink resolution.response_itemuser/assistant messages, function calls, custom tool calls, and their results. Ignore duplicateevent_msgmirrors, reasoning, images, and system/developer context.HERDR_REMOTE_CODEX_ROOTS) and isolate remote caches by harness. Refuse SSH transcript probes for harnesses without a remote locator rather than using Claude's path shape.get_historyintegration test exercising both local and SSH paths; document the configuration and security boundaries.Scope
This is one focused commit touching six files: the transcript reader, its tests, and the related README/security/developer documentation.
No voice-input functionality, unrelated session-chaining changes, deployment/service configuration, dependencies, credentials, or private transcripts are included.
Validation
sh tests/run.sh: 23 passed, 0 failed, including 237 Chromium browser tests. The runner's initial unittest pass discovers 660 tests; browser-dependent tests skipped there are exercised separately by its browser pass.git diff --checkpass.unsupportedagainst a running Codex pane before the fix. After restarting the relay with the fix, local authenticated WebSocket and public WSS history reads succeed; paging backwards returns distinct pages without overlap.Test environment: Linux, herdr 0.9.5, Codex CLI 0.163.0. SSH behavior is covered by automated runner/probe tests, not a claim of testing against a real remote SSH host. Native macOS builds were not run locally (no Swift toolchain; no desktop source changes).