Skip to content

feat: add short-index note navigation - #17

Merged
jackwener merged 1 commit into
mainfrom
codex/short-index-context
Mar 13, 2026
Merged

feat: add short-index note navigation#17
jackwener merged 1 commit into
mainfrom
codex/short-index-context

Conversation

@jackwener

Copy link
Copy Markdown
Owner

Summary

  • add short-index support for xhs read <N> and xhs comments <N>
  • persist full note context in index_cache.json (note_id, xsec_token, xsec_source)
  • clear stale indices on empty list results and wire list commands to refresh the cache

Why not merge #16 directly

  • this branch is rebased on current main
  • it preserves the newer xsec_token + xsec_source note-context handling
  • it avoids stale index reuse when a listing returns zero results

Validation

  • uv run ruff check .
  • uv run pytest -q
  • uv run pytest -m smoke -q

Supersedes #16.

Preserve note context when resolving short indices from recent listing commands, support comments by index, and clear stale index caches on empty results.

Co-authored-by: Pleasurecruise <3196812536@qq.com>
@jackwener
jackwener merged commit a8ca526 into main Mar 13, 2026
4 checks passed
@jackwener
jackwener deleted the codex/short-index-context branch March 13, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant