Skip to content

fix(honcho): auto-enable when API key is present#243

Merged
teknium1 merged 1 commit into
NousResearch:mainfrom
Bartok9:fix/honcho-auto-enable
Mar 2, 2026
Merged

fix(honcho): auto-enable when API key is present#243
teknium1 merged 1 commit into
NousResearch:mainfrom
Bartok9:fix/honcho-auto-enable

Conversation

@Bartok9

@Bartok9 Bartok9 commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #241 — Honcho integration appears inactive after API key setup.

The Problem

When users run hermes config set HONCHO_API_KEY <key>, they expect Honcho to activate. However:

  1. The enabled flag in HonchoClientConfig.from_global_config() defaulted to False
  2. Users weren't aware they also needed to explicitly enable Honcho
  3. This caused the "no automatic conversation ingestion" behavior reported in Honcho integration appears inactive after API key setup #241

The Fix

Auto-enable Honcho when:

  • An API key is present (from config file OR environment variable)
  • AND enabled is not explicitly set to false in the config

This matches user expectations: setting an API key should activate the feature.

Users who want to disable Honcho while keeping the API key can still set enabled: false in their ~/.honcho/config.json.

Changes

  • honcho_integration/client.py: Modified from_global_config() to auto-enable when API key exists
  • tests/test_honcho_client_config.py: Added unit tests for auto-enable behavior

Testing

Added 7 test cases covering:

  • Auto-enable with API key present (no explicit enabled)
  • Respects explicit enabled: false
  • Respects explicit enabled: true
  • Disabled when no API key and no explicit enabled
  • Auto-enables with env var API key
  • from_env() always enabled
  • Fallback to env when config file missing

Fixes NousResearch#241

When users set HONCHO_API_KEY via `hermes config set` or environment
variable, they expect the integration to activate. Previously, the
`enabled` flag defaulted to `false` when reading from global config,
requiring users to also explicitly enable Honcho.

This change auto-enables Honcho when:
- An API key is present (from config file or env var)
- AND `enabled` is not explicitly set to `false` in the config

Users who want to disable Honcho while keeping the API key can still
set `enabled: false` in their config.

Also adds unit tests for the auto-enable behavior.
@teknium1 teknium1 merged commit 7652afb into NousResearch:main Mar 2, 2026
@teknium1

teknium1 commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Merged — clean fix with great test coverage. Thanks!

teknium1 added a commit that referenced this pull request Mar 13, 2026
…e integration, setup CLI

Authored by erosika. Builds on #38 and #243.

Adds async write support, configurable memory modes, context prefetch pipeline,
4 new Honcho tools (honcho_context, honcho_profile, honcho_search, honcho_conclude),
full 'hermes honcho' CLI, session strategies, AI peer identity, recallMode A/B,
gateway lifecycle management, and comprehensive docs.

Cherry-picks fixes from PRs #831/#832 (adavyas).

Co-authored-by: erosika <erosika@users.noreply.github.com>
Co-authored-by: adavyas <adavyas@users.noreply.github.com>
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…session title integration, setup CLI

Authored by erosika. Builds on NousResearch#38 and NousResearch#243.

Adds async write support, configurable memory modes, context prefetch pipeline,
4 new Honcho tools (honcho_context, honcho_profile, honcho_search, honcho_conclude),
full 'hermes honcho' CLI, session strategies, AI peer identity, recallMode A/B,
gateway lifecycle management, and comprehensive docs.

Cherry-picks fixes from PRs NousResearch#831/NousResearch#832 (adavyas).

Co-authored-by: erosika <erosika@users.noreply.github.com>
Co-authored-by: adavyas <adavyas@users.noreply.github.com>
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…session title integration, setup CLI

Authored by erosika. Builds on NousResearch#38 and NousResearch#243.

Adds async write support, configurable memory modes, context prefetch pipeline,
4 new Honcho tools (honcho_context, honcho_profile, honcho_search, honcho_conclude),
full 'hermes honcho' CLI, session strategies, AI peer identity, recallMode A/B,
gateway lifecycle management, and comprehensive docs.

Cherry-picks fixes from PRs NousResearch#831/NousResearch#832 (adavyas).

Co-authored-by: erosika <erosika@users.noreply.github.com>
Co-authored-by: adavyas <adavyas@users.noreply.github.com>
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…session title integration, setup CLI

Authored by erosika. Builds on NousResearch#38 and NousResearch#243.

Adds async write support, configurable memory modes, context prefetch pipeline,
4 new Honcho tools (honcho_context, honcho_profile, honcho_search, honcho_conclude),
full 'hermes honcho' CLI, session strategies, AI peer identity, recallMode A/B,
gateway lifecycle management, and comprehensive docs.

Cherry-picks fixes from PRs NousResearch#831/NousResearch#832 (adavyas).

Co-authored-by: erosika <erosika@users.noreply.github.com>
Co-authored-by: adavyas <adavyas@users.noreply.github.com>
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…session title integration, setup CLI

Authored by erosika. Builds on NousResearch#38 and NousResearch#243.

Adds async write support, configurable memory modes, context prefetch pipeline,
4 new Honcho tools (honcho_context, honcho_profile, honcho_search, honcho_conclude),
full 'hermes honcho' CLI, session strategies, AI peer identity, recallMode A/B,
gateway lifecycle management, and comprehensive docs.

Cherry-picks fixes from PRs NousResearch#831/NousResearch#832 (adavyas).

Co-authored-by: erosika <erosika@users.noreply.github.com>
Co-authored-by: adavyas <adavyas@users.noreply.github.com>
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.

Honcho integration appears inactive after API key setup

2 participants