Repository navigation
Restructure into codex/ and claude/ folders - #6
Conversation
Pure rename of every tracked file; no content changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Imported from the tree of the unpublished claude adapter branch at a93d4d2, without its earlier history. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- One MIT LICENSE (both copies were identical); README links point to it. - One CI workflow testing codex/ and claude/ separately across OS and Python. - Merged .gitignore; root SECURITY.md links each folder's details. - Overview README; each folder README says to run commands from that folder. Product names, installers, hooks and runtime paths are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0199c39fcf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if old and old['identity'] != ident and not self.revalidate(db, path, source, old): | ||
| return False | ||
| if old and info.st_size < old['offset']: | ||
| raise IndexReset('Source truncated') | ||
| if old and not backward and old['offset'] == info.st_size: |
There was a problem hiding this comment.
Revalidate indexed records after same-inode rewrites
If a transcript is rewritten in place without becoming shorter, its device/inode identity remains unchanged, so record-proof validation is skipped. A same-length rewrite then hits the unchanged-size return and indefinitely serves the old events; a longer rewrite indexes only the appended bytes while retaining stale history. I reproduced this by indexing a prompt containing OLD and replacing it with NEW in the same file: subsequent snapshots still returned OLD without a warning. Track source modification metadata and revalidate changed indexed content before treating the source as unchanged.
Useful? React with 👍 / 👎.
| mains = [p for p in self.paths if p in available][:7] | ||
| for path in ([] if capacity_limited else mains): |
There was a problem hiding this comment.
Rotate the indexing budget across all registered sources
When a session has more than seven registered transcript paths, every refresh selects the same first seven and never indexes the remaining paths. Those omitted paths are also excluded from the later completeness calculation, so the viewer reports indexing complete with no warning despite missing history. An eight-segment synthetic session reproduced this: only segments 0–6 appeared and indexing was false. Seven main paths also leave zero scheduling slots for linked subagents. Apply the per-refresh budget through a rotating schedule across main and subagent sources rather than permanently truncating the main-source list.
Useful? React with 👍 / 👎.
Summary
Restructures this repository so both trajectory implementations live side by side on
main:codex/– the existing Codex implementation, moved withgit mv(pure rename, no content changes;git log --followkeeps per-file history).claude/– the Claude Code implementation (claude-trajectory), added as one commit from its local adapter branch. Its earlier local history is intentionally not included.LICENSE(both copies were identical), merged.gitignore,SECURITY.mdpointing to each version's policy, an overviewREADME.md, and one CI workflow with acomponent × OS × Pythonmatrix (working-directory: ${{ matrix.component }}; thebackports.zstdstep stays Codex-only for Python < 3.14).Folder READMEs now say to run commands from their own folder, and the LICENSE links point to
../LICENSE.Not changed
Product names, install locations, hook commands, URL schemes, bundle IDs and Python package names (
trace_viewer,claude_trajectory). Installed observers copy their files into user directories, so existing installs keep working. Existing tagsv0.1.0 … v0.3.0stay in place.The repository rename to
trajectoryand prefixed tags (codex-v…,claude-v…) are follow-ups, not part of this PR.Verification (local)
codex/matchesmainat 77945e2 apart from the files moved to the root and README edits;claude/matches its source tree likewise.--dry-runfrom both folders left empty isolated homes unchanged.Not yet live-tested for the Claude version:
/clear,--continue, compaction, desktop worktree sessions, the macOS recovery app.🤖 Generated with Claude Code