Fix error handling order in stdin input path#7
Conversation
Co-authored-by: spideyz0r <47341410+spideyz0r@users.noreply.github.com>
Co-authored-by: spideyz0r <47341410+spideyz0r@users.noreply.github.com>
…race Co-authored-by: spideyz0r <47341410+spideyz0r@users.noreply.github.com>
Fixed in b73947f. I found the issue - the base branch ( |
Co-authored-by: spideyz0r <47341410+spideyz0r@users.noreply.github.com>
The root cause is that the base branch ( I've pushed commit 0817ebb which adds a blank line to try to fix the merge, but GitHub shows the PR now has a merge conflict ( To fix this, either:
I cannot resolve merge conflicts from my environment. |
Fixes the error handling order in the stdin input path where the error from
ioutil.ReadAll(os.Stdin)was being checked after its return value was already used.Before:
After:
Additional Changes
sendMessagefunction.gitignoreto exclude the binaryKnown Issue
BLOCKED: The base branch (
use-upstream-openai-lib) has a pre-existing syntax error where thesendMessagefunction is missing its closing brace}. When git performs a 3-way merge, it produces invalid code that fails to compile. The base branch needs to be fixed first, or the merge conflict needs to be resolved manually.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.