Skip to content

feat: detect when stdout is being piped to another program and write just content in that case #456

@ereslibre

Description

@ereslibre

When stdout is being piped to another program, write only the content that matters for that action. For example, when using inspect with a file, decorations and metadata is shown on the output:

❯ rover inspect --file=docs.md 6 | cat

  ╭════╮   Rover · v0.0.0-dev
 ❙│ ██ │❙  Claude (default)
  ╰════╯   ◈ endorhq/docs /home/ereslibre/projects/endorhq/docs

Details
-------
· ID: 6 (2abee0cb-1d00-416e-b965-cc73e06ebfd2)
· Title: Complete the Write Workflows guide documentation
· Status: Completed
· Workflow: tech-writer
· Created At: 1/27/2026, 9:37:43 AM
· Completed At: 1/27/2026, 9:52:03 AM

Workspace
---------
· Branch Name: rover/task-6-fXBNvTd4m3YP
· Git Workspace path: /home/ereslibre/.rover/data/projects/endorhq-docs-3b923a2a/workspaces/6

Workflow Output | Iteration 1/1
-------------------------------
├── context.md
├── docs.md
├── draft.md
├── outline.md
└── summary.md

┌ docs.md ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                                                                                                                                                                                         │
│   ---                                                                                                                                                                                                                                                   │
│   title: Write workflows
...

Expected output:

❯ rover inspect --file=docs.md 6 | cat
---                                                                                                                                                                                                                
title: Write workflows
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions