Add Claude Code session imports#1678
Closed
Michaelyklam wants to merge 1 commit intonesquena:masterfrom
Closed
Conversation
Collaborator
|
Closed by the v0.51.1 release in PR #1681 (merged at e23ba59). Massive thanks @Michaelyklam — this is now 19 merged PRs across the v0.50.292–v0.51.1 release window, an extraordinary contribution rate. Each PR was per-claim-vs-diff verified against your description and every security-relevant code path checked under independent review (Opus advisor, 6/6 questions clean). Your Live on production: https://github.com/nesquena/hermes-webui/releases/tag/v0.51.1 🚀 |
nesquena-hermes
pushed a commit
to Michaelyklam/hermes-webui
that referenced
this pull request
May 5, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Thinking Path
What Changed
api/models.pywith safe caps for file count, file size, message count, content size, malformed lines, and symlinks.source_tag: claude_code,source_label: Claude Code,session_source: external_agent, andread_only: true.Claude Code · read-onlybadge.tests/test_claude_code_session_import.py; tests use explicit temp paths and disable default real-home scanning under test state.docs/pr-media/674/claude-code-import-readonly.png.Why It Matters
Claude Code conversations are useful context, but they live outside Hermes WebUI. This lets users browse those histories alongside Hermes sessions while preserving source clarity and preventing accidental edits/deletes to externally-owned JSONL history.
Verification
Result:
Manual verification:
HERMES_WEBUI_CLAUDE_PROJECTS_DIRfixture JSONL andshow_cli_sessions: true./api/sessionsreturned oneread_only: trueClaude Code session withsource_label: "Claude Code".CLAUDE CODE, there is no session action menu, the app titlebar showsClaude Code · read-only, and composer send is blocked with the read-only toast.UI media:
Risks / Follow-ups
Model Used
AI assisted.
gpt-5.5