Skip to content

fix(honcho): HOME-aware global config fallback path resolution - #15359

Closed
erosika wants to merge 1 commit into
NousResearch:mainfrom
erosika:fix/honcho-home-aware-config-fallback
Closed

fix(honcho): HOME-aware global config fallback path resolution#15359
erosika wants to merge 1 commit into
NousResearch:mainfrom
erosika:fix/honcho-home-aware-config-fallback

Conversation

@erosika

@erosika erosika commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Adopts #13320 by @HiddenPuppy with original authorship preserved.

Fixes #13283.

GLOBAL_CONFIG_PATH was resolved once at import time as Path.home() / ".honcho" / "config.json". If HOME changes mid-process (profile switching, test fixtures using patch.object(Path, "home", ...)), the fallback read the cached import-time value instead of the current HOME.

Replaces the module-level constant with resolve_global_config_path() that computes the path at call time.

  • plugins/memory/honcho/client.py: +5 -2
  • tests/honcho_plugin/test_client.py: +15 -3

228/228 honcho_plugin tests pass locally.

@erosika

erosika commented Apr 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #15381 (consolidated).

@erosika erosika closed this Apr 24, 2026
@erosika
erosika deleted the fix/honcho-home-aware-config-fallback branch April 24, 2026 22:11
@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 24, 2026
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.

Bug: Honcho client freezes ~/.honcho/config.json path at import time and ignores runtime HOME changes

3 participants