Skip to content

style(ui): two blank lines before SSEOutputHandler - #5146

Merged
kovtcharov-amd merged 1 commit into
mainfrom
style/sse-handler-blank-line
Oct 15, 2026
Merged

kovtcharov-amd merged 1 commit into
mainfrom
style/sse-handler-blank-line

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Main's lint fails black on sse_handler.py since #5121: a module-level regex sits one blank line above the class. This adds the second blank line.

Test plan

  • python -m black --check src/gaia/ui/sse_handler.py passes

The answer-first regex added in #5121 sat one line above the class, which
black rejects.
@kovtcharov-amd
kovtcharov-amd merged commit cb2e50e into main Oct 15, 2026
@kovtcharov-amd
kovtcharov-amd deleted the style/sse-handler-blank-line branch October 15, 2026 12:40
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

This adds the one blank line black wants above the SSE output handler class, so main's lint passes again. It's whitespace only, so behavior doesn't change and there's nothing to fix.

Real-world evidence

The evidence stage confirmed the file passes black and still imports. It also showed the Agent UI backend that uses this module boots and streams a well-formed chat response. The rendered screenshot is marked pending strix-halo lane because this runner has no inference.

$ python -m black --check src/gaia/ui/sse_handler.py
All done! ✨ 🍰 ✨
1 file would be left unchanged.
$ curl -sN -X POST -H "X-Gaia-UI: 1" http://127.0.0.1:4200/api/chat/send \
    -d '{"session_id":"18b5ecec-…","message":"hi","stream":true}'
data: {"type":"status","status":"info","message":"Connecting to LLM..."}
...
data: {"type": "answer", "content": "I couldn't load the agent **'gaia'**. It may have failed to install or contains an error. Try re-creating it, or pick another agent from the selector."}
HTTP 200

The agent-load error is expected because the runner has no model backend. The stream itself is well-formed and ends in a single answer event.

Strengths: the fix is the smallest one that unblocks main, and it stays strictly in scope.

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