Skip to content

Clarify and regression-test explicit stdin body handling - #61

Open
FelixLisczyk wants to merge 3 commits into
joa23:mainfrom
FelixLisczyk:tl-561
Open

Clarify and regression-test explicit stdin body handling#61
FelixLisczyk wants to merge 3 commits into
joa23:mainfrom
FelixLisczyk:tl-561

Conversation

@FelixLisczyk

Copy link
Copy Markdown
Contributor

Problem

Before this change, command documentation implied that piping input was sufficient:

printf'Description'| linear issues create "Issue title"

However, the CLI only consumed stdin when the corresponding flag explicitly had the value -. The piped content could therefore be silently ignored, producing an empty description or leaving an existing description unchanged. The same documentation inconsistency affected project descriptions and issue comment/reply bodies.

Automatic stdin detection is intentionally not restored because it can cause commands to block in automation environments.

Changes

This PR makes the existing explicit-stdin contract consistent and clearly documented:

printf'Description'| linear issues create "Issue title" --description -
printf'Comment body'| linear issues comment ISSUE-123 --body -

It also:

  • Adds an injectable stdin-reading seam for deterministic tests.
  • Adds propagation tests for issue create/update, project create/update, comments, and replies.
  • Covers whitespace trimming, empty input, read errors, and non-consuming non-explicit input.
  • Updates command help, examples, README guidance, onboarding text, and embedded skill documentation.
  • Preserves ordinary flag values, attachment handling, and existing update semantics.

Testing

  • make test passes.

FelixLisczykand others added 3 commits August 6, 2026 12:34
Make stdin consumption testable and opt-in through the explicit '-' flag value across descriptions, comments, and replies. Align command help and documentation with the safe non-blocking contract and add propagation, edge-case, and help-text regression coverage.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
Add empty-input, attachment propagation, and no-request tests for CLI body handling. Make the injected stdin seam deterministic when unconfigured and document the actual helper entry points.
Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for freeto 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

@FelixLisczyk