Skip to content

docs(readme): warn that a command reading stdin caches empty output (LAB-7735) - #7

Merged
27Bslash6 merged 1 commit into
mainfrom
lab-7735-readme-stdin-trap
Oct 3, 2026
Merged

27Bslash6 merged 1 commit into
mainfrom
lab-7735-readme-stdin-trap

Conversation

@27Bslash6

Copy link
Copy Markdown
Contributor

A command that reads its input from stdin gets an empty stdin under ck run, so it reads nothing; if it still exits 0, ck caches that output silently. The README section "The command does not get your stdin" now says so, shows the trap (curl -s "$URL" | ck run -- jq -r .token), and gives the fix: wrap the producer of a pipeline, not its consumer.

README only. Examples are inline code, not fenced sh blocks, so tests/readme.rs does not try to run them (they need the network). cargo test --locked passes.

Closes LAB-7735

A command that reads stdin gets nothing under ck run and, if it exits 0, its empty output is cached silently. Show the trap and the fix: wrap the producer of a pipeline, not its consumer.
@kodus-27b

kodus-27b Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

@27Bslash6
27Bslash6 merged commit ccf2d11 into main Oct 3, 2026
5 checks passed
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