Skip to content

fix(run): preserve colors for uncached tasks with piped output - #997

Open
Siornya wants to merge 3 commits into
voidzero-dev:mainfrom
Siornya:fix/uncached-piped-colors
Open

Siornya wants to merge 3 commits into
voidzero-dev:mainfrom
Siornya:fix/uncached-piped-colors

Conversation

@Siornya

@Siornya Siornya commented Nov 12, 2026

Copy link
Copy Markdown

Summary

Uncached tasks lose coverage table colors when run with vp run --log labeled or --log grouped. These modes pipe the child’s output, so tools that detect color support from stdout no longer see a terminal.

It is because cached tasks already receive a FORCE_COLOR fallback, but uncached tasks bypass that environment-resolution path.

Set FORCE_COLOR=1 at execution time for uncached piped tasks when the parent terminal supports colors and the task has no explicit color controls. Preserve explicit FORCE_COLOR, NO_COLOR, and NODE_DISABLE_COLORS settings, redirected stdout, inherited stdio, and existing cached-task behavior.

Add regression coverage for both log modes, explicit color controls, and stdio handling, plus a changelog entry.

Refs voidzero-dev/vite-plus#2911.

Related prior work: #378 and #379 cover color handling for cached tasks.

Validation

Related Rust suites passed before test consolidation (464 tests), and the color fixture passed afterward (5 tests). Workspace compilation, Clippy, Rust formatting, and documentation checks also passed.

The full workspace test run failed on 14 fspy static-executable tracking tests. The same 14 tests also fail on the unmodified base commit bd11071 in this environment.

AI

Codex is used for the implementation, regression tests, and validation.

Siornya and others added 2 commits November 12, 2026 08:57
Set FORCE_COLOR=1 for uncached piped tasks when the parent
terminal supports colors and no explicit color controls are set.

Add regression tests and a changelog entry.

Refs voidzero-dev/vite-plus#2911

Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Consolidate eight cases into three and remove duplicate grouped-mode
checks for color controls and stdout redirection.

Merge the corresponding snapshots.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T09:43:14.948970Z fcb02a8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fcb02a8cdb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vt/src/session/execute/mod.rs Resolved
Mark shell-fallback commands during planning and skip automatic
FORCE_COLOR injection for uncached executions of those commands.

Co-authored-by: Codex (GPT-6) <noreply@openai.com>

This branch has not been deployed

No deployments
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