feat(run): refine outputs & add summary#157
Merged
branchseer merged 13 commits intomainfrom Sep 19, 2025
Merged
Conversation
- Simplified pre-execution messages: removed "Cache not found" message, shortened cache hit/miss notifications - Added comprehensive execution summary after all tasks complete - Summary includes cache statistics (hit rate, total tasks, failures) - Detailed task results show specific cache miss reasons (env changes, cwd changes, input modifications) - Beautiful terminal output with icons and color-coded status indicators - Respects NO_COLOR environment variable for accessibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Access diff struct fields directly (cwd, envs_without_pass_through, pass_through_envs) - Use proper iteration over BTreeSet/BTreeMap collections - Only use Debug formatting for command field enum variant checking - Cleaner and more maintainable code 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
28b1113 to
893f1e3
Compare
fengmk2
reviewed
Sep 19, 2025
fengmk2
approved these changes
Sep 19, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the task runner UI by implementing a comprehensive execution summary and improved cache status messages. The changes provide clearer feedback to users about task execution results and cache performance.
- Replaces simple cache status messages with detailed, user-friendly indicators that specify cache miss reasons
- Adds a comprehensive execution summary with statistics, performance metrics, and detailed task information
- Implements NO_COLOR environment variable support for accessible terminal output
Reviewed Changes
Copilot reviewed 32 out of 36 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/tools/src/snap-test.ts | Allows test cases to override environment variables for testing different UI modes |
| packages/cli/snap-tests/plain-terminal-ui/* | New test case files to verify the improved UI without colored output |
| packages/cli/snap-tests/*/snap.txt | Updated test snapshots showing new cache status messages and execution summaries |
| crates/vite_task/src/ui.rs | Major UI implementation with detailed cache status messages and execution summary |
| crates/vite_task/src/schedule.rs | Updated to use new task structure and display execution summary |
| crates/vite_task/src/config/mod.rs | Added helper method to identify builtin tasks |
| crates/vite_task/src/cache.rs | Simplified fingerprint mismatch handling for cleaner UI display |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Contributor
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 32 out of 36 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.

Enhance Task Runner UI with Improved Cache Status Messages
This PR improves the task runner UI by implementing a more user-friendly output format with clearer cache status messages. Key changes include: