Allow i report to accept piped natural-language input#25
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Non-technical summary
i reportcan now take natural-language input from stdin as well as argv, so report drafting works in Unix-style composed flows likei report < notes.txtandecho 'more detail' | i report 'first detail'.This matters now because the repo explicitly treats composability as a core product promise, and
i reportwas breaking that promise by silently ignoring piped text.After this change, the command behaves more like the rest of the tool: it accepts natural-language input from the shell surface the user gives it instead of forcing everything onto the command line.
Technical summary
cmdReportusing the same bounded pipe-reading helper already used by natural-language modei report#21i reportstdin behaviorAdditional notes
Trade-off: this change only fixes
i reportinput assembly; it does not change the broader interactive confirmation or GitHub-auth behavior of the subcommand.Intentionally deferred: broader
i reportUX policy cleanup and any stdin support changes for other subcommands.Remaining gap:
i reportis now composable at the input boundary, but the rest of the subcommand still has separate follow-up opportunities around dry-run semantics and non-interactive confirmation behavior.Closes #21