You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scripts/export.py is 984 lines and is a primary user entry point but has no end-to-end test. The CLI argument parser is tested, but actual export execution — markdown generation, zip archives, JSONL manifests, incremental export state — is untested. The script also has its own copies of resolve_workspace_path() (line 122), normalize_file_path() (line 135), to_epoch_ms() (line 150), extract_text_from_bubble() (line 198), and slug() (line 174) that diverge from the canonical versions in utils/. A user running python scripts/export.py --since all --out ./exports has no CI-verified assurance that the output is correct.
Problem
scripts/export.pyis 984 lines and is a primary user entry point but has no end-to-end test. The CLI argument parser is tested, but actual export execution — markdown generation, zip archives, JSONL manifests, incremental export state — is untested. The script also has its own copies ofresolve_workspace_path()(line 122),normalize_file_path()(line 135),to_epoch_ms()(line 150),extract_text_from_bubble()(line 198), andslug()(line 174) that diverge from the canonical versions inutils/. A user runningpython scripts/export.py --since all --out ./exportshas no CI-verified assurance that the output is correct.Severity
Medium · 3 points
Acceptance criteria
tests/test_cli_export_e2e.py(ortests/test_export_integration.py) exercisesscripts/export.py main()against fixture data (reuses thetests/conftest.pyfixture from Pytest coverage for conversation browsing API endpoints #26)--since lastincremental behavior, manifest JSONL generationlog_id,title,workspace,created_at,updated_attests/or repo root) covering: server launch, export commands (--help,--out --no-zip, default zip,--since last), browse flow verificationpython app.py --port 3001) verified to start without errors and serve the home page