Skip to content

fix(kanban): use get_default_hermes_root() for profile discovery#19030

Closed
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/19017-kanban-profile-discovery
Closed

fix(kanban): use get_default_hermes_root() for profile discovery#19030
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/19017-kanban-profile-discovery

Conversation

@shellybotmoyer

Copy link
Copy Markdown
Contributor

Fix: kanban init profile discovery hardcodes ~/.hermes/profiles

Problem

list_profiles_on_disk() in kanban_db.py hardcoded Path.home() / ".hermes" / "profiles", so hermes kanban init always reported "No profiles found" on custom-root deployments (e.g., HERMES_HOME=/data in Docker).

This is inconsistent with kanban_db_path() and workspaces_root(), which were already fixed to use get_hermes_home() in #18985.

Solution

Replace the hardcoded path with get_default_hermes_root() / "profiles", consistent with how kanban_db_path() and workspaces_root() already resolve paths. Falls back to Path.home() / ".hermes" / "profiles" if hermes_constants is unavailable.

Testing

  • Custom-root deployments (HERMES_HOME override) will now correctly discover profiles under the custom root
  • Default deployments (no HERMES_HOME override) behave identically since get_default_hermes_root() returns Path.home() / ".hermes" in that case
  • The fallback path matches the old behavior exactly

Fixes #19017

list_profiles_on_disk() hardcoded Path.home()/.hermes/profiles, breaking kanban init on custom-root deployments (e.g. HERMES_HOME=/data in Docker). Replaces with get_default_hermes_root()/profiles, consistent with kanban_db_path() and workspaces_root(). Falls back to Path.home()/.hermes/profiles if hermes_constants is unavailable. Fixes NousResearch#19017.
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles labels May 3, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #19020 — same fix for kanban profile discovery using get_default_hermes_root() instead of hardcoded path. Both fix #19017.

@alt-glitch alt-glitch added the duplicate This issue or pull request already exists label May 3, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #19020 — same fix for kanban profile discovery using get_default_hermes_root() instead of hardcoded path. Both fix #19017.

@teknium1

teknium1 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Closing as duplicate of #19020. Both PRs fixed the same one-line bug in list_profiles_on_disk(). We merged #19020@jackey8616 also authored the underlying issue (#19017) and submitted first. Both of you nailed the fix; thanks for the quick contribution.

@teknium1 teknium1 closed this May 4, 2026
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 duplicate This issue or pull request already exists 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]: kanban init profile discovery hardcodes ~/.hermes/profiles instead of using get_default_hermes_root()

3 participants