feat(index): show indexing progress during background code indexing#1927
Merged
feat(index): show indexing progress during background code indexing#1927
Conversation
Add IndexProgress struct to zeph-index with files_done, files_total, and chunks_created fields. Expose progress via tokio::sync::watch channel passed as Option<&Sender<IndexProgress>> to index_project(). CLI mode: print start and completion messages to stderr (guarded by cli_mode flag to avoid output in TUI raw-terminal mode). TUI mode: forward progress updates via AgentEvent::Status to show "Indexing codebase… N/M files (X%)" in the status bar; display completion summary for 3s then clear. Closes #1923
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1923
Summary
IndexProgress { files_done, files_total, chunks_created }struct inzeph-indextokio::sync::watchchannel asOption<&Sender<IndexProgress>>toindex_project()forward_index_progress_to_tui()intui_bridge.rsfeedsAgentEvent::Status— showsIndexing codebase… N/M files (X%), thenIndex ready (N files, M chunks)for 3s on completionChanges
crates/zeph-index/src/indexer.rs—IndexProgressstruct, progress sending in loopcrates/zeph-index/src/lib.rs— re-exportIndexProgresssrc/agent_setup.rs— watch channel creation, CLI progress messages,cli_mode: boolguardsrc/runner.rs—CodeIndexerSetupextended to 3-tuple, receiver passed to TUIsrc/tui_bridge.rs—forward_index_progress_to_tui()taskTest plan
--indexflag, verify start + completion messages appear on stderr--tui --index, verify status bar shows progress counter and clears after 3szeph-index(6057 total, all pass)