fix[format/openai]: return error on empty msg.#6511
Merged
zanesq merged 4 commits intoblock:mainfrom Jan 27, 2026
Merged
Conversation
e6707bc to
ec39c12
Compare
The-Best-Codes
approved these changes
Jan 15, 2026
jamadeo
reviewed
Jan 15, 2026
Collaborator
jamadeo
left a comment
There was a problem hiding this comment.
I could see treating it as an error if we can't get a message from the payload.
But are sure we aren't dropping an error somewhere else from Github when we hit this? I'd be surprised if GH isn't telling us the real error somewhere.
Collaborator
|
Thanks Jack. |
Contributor
Author
|
@The-Best-Codes |
f08f474 to
b79df2e
Compare
Signed-off-by: Yelsin Sepulveda <yelsinsepulveda@gmail.com>
Signed-off-by: Yelsin Sepulveda <yelsinsepulveda@gmail.com>
b79df2e to
0ecb4d8
Compare
Signed-off-by: Yelsin Sepulveda <yelsinsepulveda@gmail.com>
The-Best-Codes
approved these changes
Jan 17, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug where empty API responses were silently converted to empty messages instead of returning an error. The fix adds proper error handling to detect and report API errors or missing message content.
Changes:
- Added error handling for API responses with explicit error fields
- Added fallback error for missing message content in responses
- Replaced silent empty message creation with informative error messages
Signed-off-by: The-Best-Codes <bestcodes.official@gmail.com>
326d1d1 to
b970507
Compare
The-Best-Codes
approved these changes
Jan 19, 2026
Collaborator
|
Can somebody re-request a review from Copilot please? |
zanesq
added a commit
that referenced
this pull request
Jan 27, 2026
…upport * origin/main: (79 commits) fix[format/openai]: return error on empty msg. (#6511) Fix: ElevenLabs API Key Not Persisting (#6557) Logging uplift for model training purposes (command injection model) [Small change] (#6330) fix(goose): only send agent-session-id when a session exists (#6657) BERT-based command injection detection in tool calls (#6599) chore: [CONTRIBUTING.md] add Hermit to instructions (#6518) fix: update Gemini context limits (#6536) Document r slash command (#6724) Upgrade GitHub Actions to latest versions (#6700) fix: Manual compaction does not update context window. (#6682) Removed the Acceptable Usage Policy (#6204) Document spellcheck toggle (#6721) fix: docs workflow cleanup and prevent cancellations (#6713) Docs: file bug directly (#6718) fix: dispatch ADD_ACTIVE_SESSION event before navigating from "View All" (#6679) Speed up Databricks provider init by removing fetch of supported models (#6616) fix: correct typos in documentation and Justfile (#6686) docs: frameDomains and baseUriDomains for mcp apps (#6684) docs: add Remotion video creation tutorial (#6675) docs: export recipe and copy yaml (#6680) ... # Conflicts: # ui/desktop/src/hooks/useChatStream.ts
katzdave
added a commit
that referenced
this pull request
Jan 27, 2026
…ovider * 'main' of github.com:block/goose: fix slash and @ keyboard navigation popover background color (#6550) fix[format/openai]: return error on empty msg. (#6511) Fix: ElevenLabs API Key Not Persisting (#6557) Logging uplift for model training purposes (command injection model) [Small change] (#6330) fix(goose): only send agent-session-id when a session exists (#6657) BERT-based command injection detection in tool calls (#6599) chore: [CONTRIBUTING.md] add Hermit to instructions (#6518) fix: update Gemini context limits (#6536) Document r slash command (#6724) Upgrade GitHub Actions to latest versions (#6700)
zanesq
added a commit
that referenced
this pull request
Jan 27, 2026
* 'main' of github.com:block/goose: Create default gooseignore file when missing (#6498) fix slash and @ keyboard navigation popover background color (#6550) fix[format/openai]: return error on empty msg. (#6511) Fix: ElevenLabs API Key Not Persisting (#6557) Logging uplift for model training purposes (command injection model) [Small change] (#6330) fix(goose): only send agent-session-id when a session exists (#6657) BERT-based command injection detection in tool calls (#6599) chore: [CONTRIBUTING.md] add Hermit to instructions (#6518) fix: update Gemini context limits (#6536) Document r slash command (#6724) Upgrade GitHub Actions to latest versions (#6700) fix: Manual compaction does not update context window. (#6682) Removed the Acceptable Usage Policy (#6204) Document spellcheck toggle (#6721) fix: docs workflow cleanup and prevent cancellations (#6713) Docs: file bug directly (#6718)
This was referenced Jan 29, 2026
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.
Summary
Return an error message when receiving an empty response.
Type of Change
AI Assistance
Testing
Related Issues
Relates to: fixes #6470
Screenshots/Demos (for UX changes)
Before:

After:
