Skip to content

Testing

Python tests use pytest. Run the full suite:

Terminal window
pytest -xvs tests/

Run a specific test file:

Terminal window
pytest -xvs tests/test_trim_session.py

The test suite covers:

AreaTest Files
Session search & indexingtest_search_index.py, test_search_import.py, test_aichat_search_truncate.py
Session finding & filteringtest_find_sessions.py, test_find_session_filtering.py
Session ID resolutiontest_session_id_resolution.py, test_session_id_consistency.py, test_session_resolution.py
Trim & smart trimtest_trim_session.py, test_smart_trim.py, test_smart_trim_mock.py
Resume / continue flowtest_continue_flow.py
Exporttest_export_yaml.py
Sidechain sessionstest_sidechain_sessions.py
Codex integrationtest_codex_clone_codex_home.py
tmux-clitest_tmux_cli_controller.py, test_tmux_execution_helpers.py
Utilitiestest_command_utils.py
  • Python — Editable mode (make install), so changes apply immediately. No reinstall needed.

  • Node.js — Runs directly from node_ui/. No build step. Run cd node_ui && npm install if you add new npm dependencies.

  • Rust — Must rebuild after changes:

    Terminal window
    make aichat-search-install # aichat-search binary
    make lmsh-install # lmsh binary