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
Address second round of CodeRabbit review comments
- utils/cli_chat_reader.py: populate tool outputs in messages_to_bubbles()
by pre-scanning role=="tool" messages and matching by toolCallId. Tool
outputs are no longer silently dropped (output was always "").
Use max(createdAt, store.db mtime) for last_updated_ms in
list_cli_projects(), so sessions with new turns refresh the timestamp.
- api/search.py: include tool call inputs/summaries in the exclusion-check
content_parts for CLI sessions, so sensitive payloads in tool calls
cannot bypass is_excluded_by_rules.
- utils/cursor_md_exporter.py: extend cursor_cli_session_to_markdown()
with workspace_info, bubbles, and title_override parameters. Callers
can now pass pre-computed bubbles (avoids redundant DB read) and a
caller-derived title (needed for filenames in export.py). Error
handling changed: traverse_blobs/messages_to_bubbles errors now
propagate instead of silently collapsing to empty bubbles. Body
rendering now includes tool OUTPUT blocks when present.
- scripts/export.py: remove the ~80-line duplicate Markdown generator;
delegate to cursor_cli_session_to_markdown() with workspace_info and
pre-computed bubbles. Keeps title derivation and --since filtering
in place; only the rendering is delegated.
- tests/test_cli_chat_reader.py: update last_updated_ms test to assert
>= max(createdAt) instead of == createdAt, since mtime now dominates
for freshly created test files.
Rejected: "don't drop empty sessions" (same reasoning as before).
0 commit comments