Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

fix(dev): emit build_error JSON on stdout for dev fetch --json - #67

Merged
kody-bot merged 1 commit into
mainfrom
cursor/kody-dev-fetch-json-error-354f
Oct 15, 2026
Merged

kody-bot merged 1 commit into
mainfrom
cursor/kody-dev-fetch-json-error-354f

Conversation

@kentcdodds

@kentcdodds kentcdodds commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • On a one-shot kody dev fetch bundle failure with --json, write a build_error object to stdout so agents get structured output.
  • Human mode unchanged: error still prints once via the thrown message on stderr (no double-print).

Context

Follow-up after the polish stack (#60). Item 3 from the 1.24.0 retest notes.

Test plan

  • kody-dev.test.ts covers human (empty stdout) and --json (build_error on stdout)
  • CI green
  • Bugbot clean
Open in Web Open in Cursor 

Note

Low Risk
Small, flag-gated CLI output change on an error path in dev fetch; no auth, persistence, or success-path behavior changes.

Reviewed by Cursor Bugbot for commit 9873f52. Bugbot is set up for automated code reviews on this repo. Configure here.

When a one-shot fetch fails to bundle, agents using --json need a
structured object on stdout (human mode still prints once via stderr).

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kody-bot
kody-bot marked this pull request as ready for review October 15, 2026 08:47
@kentcdodds

Copy link
Copy Markdown
Owner Author

bugbot run

@cursor cursor 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 9873f52. Configure here.

@kody-bot
kody-bot merged commit 6487aa1 into main Oct 15, 2026
7 checks passed
@kody-bot
kody-bot deleted the cursor/kody-dev-fetch-json-error-354f branch October 15, 2026 08:51
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.26.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants