Skip to content

Regression in v2026.7.7.x: hermes -p <profile> chat runs the default profile (session store, SOUL, model config all default) #63978

Description

@marknisk

On v2026.7.1 (0.18.0), hermes -p home-ops chat correctly scoped the whole
session to the profile: session persisted in the profile's state.db, SOUL
loaded from the profile home, turns logged under the profile's logs.

On v2026.7.7.2 (0.18.2, same deployment upgraded, Docker image, upstream
9de9c25f), the SAME invocation runs the DEFAULT profile:

  • session row appears in the DEFAULT state.db with the stock
    You are Hermes Agent… system prompt (profile SOUL.md exists and loads
    fine when tested directly via load_soul_md),
  • turn_context logs to the default profile's agent.log,
  • provider resolution differs from the profile's config (our default-scoped
    turns picked the custom fallback provider instead of the configured
    openai-codex).

Reproduce:

hermes -p <secondary-profile> chat        # or chat --cli
# ask "who are you?" → stock identity; session lands in default state.db

Two data points that narrow it:

  • hermes -p <profile> prompt-size scopes CORRECTLY on 0.18.2 (writes the
    profile's log/caches, builds the profile SOUL into the prompt) — so the
    -p argv bootstrap in hermes_cli/main.py still works; the loss happens
    somewhere in the chat/TUI init path.
  • Workaround: bypass the flag with the env var —
    HERMES_HOME=<profiles-dir>/<name> hermes chat scopes correctly
    (verified: session lands in the profile state.db with the profile SOUL
    as system prompt).

Gateway-side lanes (/p/<profile>/ dashboard) are unaffected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundarea/configConfig system, migrations, profilescomp/cliCLI entry point, hermes_cli/, setup wizardsweeper:risk-session-stateSweeper risk: may lose/corrupt/mis-associate session or context statetype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions