Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

The codegraph index command's terminal user interface (TUI) has been significantly improved to provide a more sophisticated and informative user experience. The previous implementation relied on simple text logs, which could be cluttered and difficult to follow. This change introduces a rich TUI with progress bars for each stage of the indexing process and a detailed summary of statistics at the end.

Key improvements include:

  • Progress Bars: The indicatif and tracing-indicatif crates have been integrated to display progress bars for each step of the indexing process, including file collection, parsing, embedding generation, and node storage.
  • Detailed Summary: The final summary has been enhanced to include timing, throughput, and a clear breakdown of indexed items, giving users a better understanding of the indexing process.
  • Improved Logging: The logger is now initialized only within the handle_index function, preventing interference with other commands and tests.
  • Test Compatibility: Commands like start and stop now check if they are running in an interactive TTY before printing to the console, ensuring that tests are not broken by the TUI improvements.

PR created automatically by Jules for task 2795575221537677804

The `codegraph index` command's terminal user interface (TUI) has been significantly improved to provide a more sophisticated and informative user experience. The previous implementation relied on simple text logs, which could be cluttered and difficult to follow. This change introduces a rich TUI with progress bars for each stage of the indexing process and a detailed summary of statistics at the end.

Key improvements include:
- **Progress Bars:** The `indicatif` and `tracing-indicatif` crates have been integrated to display progress bars for each step of the indexing process, including file collection, parsing, embedding generation, and node storage.
- **Detailed Summary:** The final summary has been enhanced to include timing, throughput, and a clear breakdown of indexed items, giving users a better understanding of the indexing process.
- **Improved Logging:** The logger is now initialized only within the `handle_index` function, preventing interference with other commands and tests.
- **Test Compatibility:** Commands like `start` and `stop` now check if they are running in an interactive TTY before printing to the console, ensuring that tests are not broken by the TUI improvements.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

@Jakedismo Jakedismo marked this pull request as ready for review October 4, 2025 16:30
@Jakedismo Jakedismo merged commit 91f29fd into main Oct 4, 2025
@Jakedismo Jakedismo deleted the feat/tui-improvements branch October 4, 2025 19:06
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