Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/token_savior/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Structural codebase indexer with MCP server for AI-assisted development."""

__version__ = "0.4.2"
__version__ = "0.7.1"
6 changes: 6 additions & 0 deletions src/token_savior/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,12 @@ def _maybe_incremental_update(slot: _ProjectSlot) -> None:
slot._last_update_check = now

idx = slot.indexer._project_index
if idx.last_indexed_git_ref is None:
# No git ref recorded (e.g. empty repo or first index on non-git).
# Trigger a full rebuild so the index gets a git ref for future checks.
_build_slot(slot)
return

changeset = get_changed_files(slot.root, idx.last_indexed_git_ref)
if changeset.is_empty:
return
Expand Down