Skip to content

🐛 Emit structured context commands#319

Merged
Robdel12 merged 1 commit into
mainfrom
rd/structured-context-commands
Jul 22, 2026
Merged

🐛 Emit structured context commands#319
Robdel12 merged 1 commit into
mainfrom
rd/structured-context-commands

Conversation

@Robdel12

Copy link
Copy Markdown
Contributor

Why

run --json and tdd run --json return a contextCommand for the next debugging step, but that command omitted --json. Executing it opened the human formatter instead of the bounded evidence payload with image references, Honeydiff facts, and exact drill-down commands.

The command should be executable as returned. Agent skills and other consumers should not need to know about or document a missing flag.

Approach

Build the cloud and local follow-up commands with an explicit structured-output option. Every JSON result now includes --json, including cloud runs with and without --wait, while the existing human-readable Context hints remain unchanged.

The JSON output documentation now shows the commands exactly as the CLI emits them.

Evidence

The cloud loopback CLI test and local TDD lifecycle test execute the real command boundaries and assert the complete returned command. Existing human-output coverage confirms those hints still use the readable form without --json. The full test suite, build, lint, formatting, types, and package checks pass.

Make JSON run results point directly to the bounded machine-readable context payload. Keep the existing human context hints unchanged so this fixes the automation contract without widening the CLI change.
@Robdel12
Robdel12 marked this pull request as ready for review July 22, 2026 04:10
@Robdel12
Robdel12 merged commit 89ff905 into main Jul 22, 2026
30 checks passed
@Robdel12
Robdel12 deleted the rd/structured-context-commands branch July 22, 2026 04:11
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