feat: multi-turn session continuity + model flag for claude -p bypass - #3
Merged
Conversation
## gateway/run.py - Replace text-history injection with --session-id / --resume pattern - First message per gateway session_key: --session-id <new-uuid> (creates session) - Subsequent messages: --resume <uuid> (continues same claude session) - Mapping stored at ~/.claude-hermes/gateway_session_map.json (persists across restarts) - Known gaps: /reset doesn't clear session map; no context-exhaustion fallback (both auto-resolve when Codex quota restores and bypass is deactivated) ## cron/scheduler.py - Pass --model <HERMES_CLAUDE_SUB_MODEL> to claude -p subprocess (default: claude-opus-4-8 via env var) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
🔎 Lint report:
|
| Rule | Count |
|---|---|
no-matching-overload |
1 |
First entries
gateway/run.py:17874: [no-matching-overload] no-matching-overload: No overload of function `run` matches arguments
✅ Fixed issues: none
Unchanged: 5033 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
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.
관련
#1 후속 패치
변경 내용
gateway/run.py— 멀티턴 컨텍스트 보존--session-id/--resume네이티브 세션 방식으로 교체claude -p --session-id <uuid>/ 이후:claude -p --resume <uuid>~/.claude-hermes/gateway_session_map.json(재시작 후에도 유지)cron/scheduler.py— 모델 플래그--model <HERMES_CLAUDE_SUB_MODEL>추가 (기본값:claude-opus-4-8)