Skip to content

fix(honcho): reject whitespace-only honcho_search and honcho_reasoning queries#11256

Open
fjlaowan1983 wants to merge 1 commit into
NousResearch:mainfrom
fjlaowan1983:fix/honcho-whitespace-tool-queries
Open

fix(honcho): reject whitespace-only honcho_search and honcho_reasoning queries#11256
fjlaowan1983 wants to merge 1 commit into
NousResearch:mainfrom
fjlaowan1983:fix/honcho-whitespace-tool-queries

Conversation

@fjlaowan1983

Copy link
Copy Markdown

Summary

  • Validate query for honcho_search and honcho_reasoning with (args.get("query") or "").strip() before calling Honcho APIs.
  • Prevents whitespace-only strings (e.g. spaces/tabs/newlines) from being treated as a real query; returns the same tool_error shape as an empty query: Missing required parameter: query.
  • Adds regression tests in tests/honcho_plugin/test_session.py (TestConcludeToolDispatch) asserting the backend methods are not invoked for whitespace-only input.

Context

Related upstream discussion / radar: #11192 (fix(honcho): reject whitespace-only tool queries).

Test plan

  • python -m pytest tests/honcho_plugin/test_session.py::TestConcludeToolDispatch -v -o addopts=

Noticed this while setting up uv on Windows WSL2 — trivial guard, but it avoids pointless Honcho calls when the model sends blank queries.

Strip query before validation; add regression tests (aligns upstream NousResearch#11192).

Made-with: Cursor
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins labels Apr 25, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #11192 — same fix: reject whitespace-only queries for honcho_search and honcho_reasoning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants