Skip to content

feat(run): refine outputs & add summary#157

Merged
branchseer merged 13 commits intomainfrom
09-17-feat_improve_outputs_add_summary
Sep 19, 2025
Merged

feat(run): refine outputs & add summary#157
branchseer merged 13 commits intomainfrom
09-17-feat_improve_outputs_add_summary

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Sep 18, 2025

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:

  1. Added a comprehensive execution summary that shows statistics and detailed task information
  2. Improved cache miss messages with specific reasons (e.g., "command changed", "working directory changed")
  3. Implemented NO_COLOR environment variable support to disable colored output
  4. Added a new test case "plain-terminal-ui" to verify the improved UI

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

branchseer and others added 9 commits September 19, 2025 12:27
- 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>
@branchseer branchseer force-pushed the 09-17-feat_improve_outputs_add_summary branch from 28b1113 to 893f1e3 Compare September 19, 2025 04:28
@branchseer branchseer changed the title disable color when NO_COLOR is set feat(run): refine outputs & add summary Sep 19, 2025
Comment thread packages/cli/snap-tests/associate-existing-cache/snap.txt
@branchseer branchseer marked this pull request as ready for review September 19, 2025 05:09
Copilot AI review requested due to automatic review settings September 19, 2025 05:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread crates/vite_task/src/ui.rs
Comment thread crates/vite_task/src/ui.rs Outdated
Comment thread crates/vite_task/src/schedule.rs
Copilot AI review requested due to automatic review settings September 19, 2025 05:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread crates/vite_task/src/ui.rs
Comment thread crates/vite_task/src/ui.rs
@branchseer branchseer merged commit c462827 into main Sep 19, 2025
9 checks passed
@branchseer branchseer deleted the 09-17-feat_improve_outputs_add_summary branch September 19, 2025 05:25
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.

3 participants