Skip to content

fix(browser): guard LLM response content against None in snapshot and vision#3642

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-ec5223e1
Mar 29, 2026
Merged

fix(browser): guard LLM response content against None in snapshot and vision#3642
teknium1 merged 1 commit intomainfrom
hermes/hermes-ec5223e1

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Salvage of PR #3532 (binhnt92). Follow-up to #3449.

Reasoning-only models (DeepSeek-R1, QwQ via OpenRouter) return content=None, causing null snapshots and null vision analysis. Guards both sites with (content or "").strip() and sensible fallbacks.

7 tests, 54 browser tests total passing.

Closes #3532

Co-Authored-By: binhnt92 [email protected]

… vision

Reasoning-only models (DeepSeek-R1, QwQ) return content=None, causing
null snapshots from _extract_relevant_content and null analysis from
browser_vision. Follow-up to #3449 which applied the same guard
elsewhere.

- _extract_relevant_content: falls back to truncated raw snapshot
- browser_vision: falls back to descriptive message
@teknium1 teknium1 merged commit 973deb4 into main Mar 29, 2026
2 checks passed
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.

2 participants