Skip to content

fix(gateway): coerce tool_progress_command as a real boolean - #16528

Closed
johnncenae wants to merge 1 commit into
NousResearch:mainfrom
johnncenae:fix/gateway-tool-progress-quoted-bool
Closed

johnncenae wants to merge 1 commit into
NousResearch:mainfrom
johnncenae:fix/gateway-tool-progress-quoted-bool

Conversation

@johnncenae

Copy link
Copy Markdown
Contributor

Summary:
This fixes a config-gating bug where display.tool_progress_command: "false" could be treated as truthy in gateway-facing command paths.

What changed:

  • switched config-gated command resolution to shared boolean coercion
  • applied the same coercion in the gateway /verbose handler
  • applied the same coercion to the tool-progress onboarding gate
  • added regression coverage for quoted "false" values in both command-surface and runtime paths

Why this matters:
Quoted booleans can appear through manual YAML edits or env-expanded config values. Before this change, "false" could incorrectly enable /verbose in gateway help/menu surfaces and at runtime. This patch makes the gate behavior consistent with the intended boolean semantics.

Validation:

  • 137 passed

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles labels Apr 27, 2026
teknium1 added a commit that referenced this pull request May 1, 2026
Widens #16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
@teknium1

teknium1 commented May 1, 2026

Copy link
Copy Markdown
Collaborator

Merged via PR #18220 — your fix was cherry-picked onto current main with your authorship preserved (commit bb706c3), and we widened it to two sibling sites with the same quoted-boolean bug class:

  • gateway/run.py _load_show_reasoning (for display.show_reasoning)
  • tools/skill_manager_tool.py _guard_agent_created_enabled (for skills.guard_agent_created)

Thanks for the clean report and the regression tests — both paths we added were straightforward extensions of your approach.

#18220

nickdlkk pushed a commit to nickdlkk/hermes-agent that referenced this pull request May 11, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
jsboige pushed a commit to jsboige/hermes-agent that referenced this pull request May 14, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
dannyJ848 pushed a commit to dannyJ848/hermes-agent that referenced this pull request May 17, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
Seven74AI pushed a commit to Seven74AI/hermes-agent that referenced this pull request Jun 13, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
Widens NousResearch#16528 to two sibling sites that had the same quoted-boolean
bug: a YAML string "false" (or "0", "no", "off") silently evaluated
truthy under bool() / if-check.

- gateway/run.py _load_show_reasoning: is_truthy_value wrap
- tools/skill_manager_tool.py _guard_agent_created_enabled: is_truthy_value wrap
- regression tests for both
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/cli CLI entry point, hermes_cli/, setup wizard comp/gateway Gateway runner, session dispatch, delivery 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.

3 participants