Skip to content

hermes update does not migrate state.db pairing data #15733

@bluetianx

Description

@bluetianx

During a routine update, the hermes update command performed a fresh git clone instead of a proper in-place git pull. This wiped the existing state.db, losing all pairing records and other persisted state.

Environment
- hermes-agent v0.11.0 (2026.4.23)
- macOS (launchd-managed gateway)
- Feishu integration

Reproduction steps
1. Have an existing hermes-agent deployment with paired Feishu users in state.db
2. Run hermes update
3. Gateway restarts — all users must re-pair via the pairing code flow

Root cause (from reflog)
The update did a full clone rather than git pull --ff-only, discarding the pre-existing state.

Expected behavior
hermes update should preserve ~/.hermes/state.db and other user data files, only updating the hermes-agent code in place.

Reported by: BlueTian via Hermes Agent CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundcomp/cliCLI entry point, hermes_cli/, setup wizardplatform/feishuFeishu / Lark adaptertype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions