#61
[codex] Add categorized bookmarks and research runner
What changed
- replace the precursor bookmark kind model with SQL-backed bookmark categories while preserving the built-in
bookmarkandresearchentry paths - add category prompt management plus a background research runner that writes per-run markdown artifacts under
~/.config/threadhop/research/<category>/ - keep the task #58 chat/CLI ingest surface compatible via a legacy
threadhop bookmark [kind] ...path layered onto the new category-aware command family - add a shared bookmark orchestration module and a chat-facing bookmark skill
- stub TUI category picking while keeping the existing default bookmark note flow stable
Why
Task #58 introduced a lightweight bookmark ingest seam from the chat/skill layer. This change generalizes that seam into required categories with per-category research prompts, without breaking the completed precursor workflow.
Impact
- users can save bookmarks under arbitrary categories with optional notes
- categories can be listed and configured independently from the transcript UI
- background research runs now consume pending bookmarks by category and persist their results outside raw transcripts
- existing bookmark and research ingest calls continue to work for callers that still use the precursor interface
Validation
uv run --with pytest --with textual --with watchdog --with pydantic pytest -q tests/test_bookmarks.py tests/test_cli_bookmark.py tests/test_cli_bookmarks.py tests/test_cli_observe.py tests/test_handoff.py tests/test_incremental_index.py- result:
78 passed in 20.29s