[codex] ingest Codex session history#49
Draft
rodbland2021 wants to merge 7 commits into
Draft
Conversation
Two CI failures fixed:
- Add mcp>=1.0.0 to requirements.txt so ci.yml installs it (fixes
ModuleNotFoundError in TestMCPServer and TestBrowseRecent tests)
- Guard _get_openai_client() against missing OPENAI_API_KEY env var;
OpenAI() raises immediately at init when the key is absent, causing
test_batch_embed_empty to error instead of returning {"embedded": 0}
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests monkeypatch _openai_client directly to inject a MagicMock. The early return on missing OPENAI_API_KEY blocked this — moved the existing-client check before the env var check. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
~/.codex/sessions.response_itemuser/assistant messages and skip duplicate/tool/developer chatter.Validation
python3 -m py_compile claw_recall/indexing/indexer.py claw_recall/config.py claw_recall/api/web.py scripts/cc_session_watcher.pypytest -q tests/test_claw_recall.py::TestPathSuffix tests/test_claw_recall.py::TestSourceFileOverride tests/test_claw_recall.py::TestWatcherHelpers~/.codex/sessions-> 22 sessions, 1,676 messages, 0 errorsclaw-recall-watcher; logs confirm it watches/home/clawdbot/.codex/sessions