You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(hermes): support the native persistence API - #1135
Hermes v0.23.3 removed the legacy session storage modules that codexhost imports. On an affected installation, the native history helper fails before opening a Hermes Turn, and the metadata helper cannot list import candidates.
Hermes gateway history and session listing
Legacy storage modules available → existing SessionDB APIs
Legacy storage modules removed → Hermes persistence reader / writer
Both paths preserve native session IDs, transcript projection, and the existing Fork and rollback checks. Read-only helpers keep opening the active Hermes profile in read-only mode.
Related issues
N/A
UI Demo
N/A
Evidence
Beforemain at 1139a2a89 fails to create a native session on Hermes v0.23.4 with ModuleNotFoundError: hermes_state_ids. The new regression also fails on that baseline at the native metadata lookup.
After The new isolated storage regression passes on Hermes v0.23.2 and v0.23.4. It covers listing, history readback, Fork, rollback, safe disposal of derived sessions, and source snapshot equality.
Live The bundled Hermes plugin on macOS arm64 with Hermes v0.23.4 completed a real model Turn, reopened the Native Session, returned an identical persisted snapshot, and resolved its import candidate.
Test plan
vitest run --config tests/vitest.config.js packages/adapters/hermes/test/gateway-history.test.ts packages/adapters/hermes/test/gateway-session-list.test.ts — 11 passed. The new opt-in storage test passed separately with both native runtimes.
tsc -b packages/adapters/hermes, scoped ESLint and Prettier, and git diff --check passed.
The broader opt-in tool-history test reports the same native-history failure on the v0.23.2 baseline and patched build. The isolated managed Gateway smoke test was blocked by a gateway.capabilities timeout locally. The bundled plugin check used the resident Gateway. Desktop UI, Linux, and Windows were outside this run.
Merge Danger
Door Two-way. The change adapts calls to the installed Hermes APIs and requires no codexhost data migration.
This change adds Hermes v0.23.3+ session-storage compatibility and keeps the existing SessionDB path when the legacy modules are present. No concrete defect was found in the supplied changes, and the author reports passing native storage tests on two Hermes versions. The remaining risk is limited to unrun platform and UI checks.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
标题“fix(hermes): support the native persistence API”与变更内容一致。变更使 Hermes 适配器在 Hermes v0.23.3 及之后版本移除旧存储模块时,回退到原生持久化读写接口(GATEWAY_STORAGE_SCRIPT),涉及 gateway-history、gateway-session-list 与测试文件。标题简洁,指出了主要改动。
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Recent review details
Context from checks skipped due to timeout: 8
GitHub Check: CodeRabbit
GitHub Check: Check macos-26
GitHub Check: Check windows-latest
GitHub Check: Static checks
GitHub Check: Web Host tests
GitHub Check: Vitest
GitHub Check: Check ubuntu-22.04
GitHub Check: Check Linux ARM64
Additional context used
Code guidelines: 1
AGENTS.md — auto-discovered
Path-based instructions: 2
Source excerpt: Harness-specific protocol details must remain inside the corresponding Adapter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hermes v0.23.3 removed the legacy session storage modules that codexhost imports. On an affected installation, the native history helper fails before opening a Hermes Turn, and the metadata helper cannot list import candidates.
Both paths preserve native session IDs, transcript projection, and the existing Fork and rollback checks. Read-only helpers keep opening the active Hermes profile in read-only mode.
Related issues
N/A
UI Demo
N/A
Evidence
mainat1139a2a89fails to create a native session on Hermes v0.23.4 withModuleNotFoundError: hermes_state_ids. The new regression also fails on that baseline at the native metadata lookup.Test plan
vitest run --config tests/vitest.config.js packages/adapters/hermes/test/gateway-history.test.ts packages/adapters/hermes/test/gateway-session-list.test.ts— 11 passed. The new opt-in storage test passed separately with both native runtimes.tsc -b packages/adapters/hermes, scoped ESLint and Prettier, andgit diff --checkpassed.gateway.capabilitiestimeout locally. The bundled plugin check used the resident Gateway. Desktop UI, Linux, and Windows were outside this run.Merge Danger
Door Two-way. The change adapts calls to the installed Hermes APIs and requires no codexhost data migration.
Blast Radius Hermes Adapter.