Skip to content

refactor: session import merge, mode fix, and spec compliance#12

Merged
knqiufan merged 1 commit intomainfrom
fix/issue-9
Mar 17, 2026
Merged

refactor: session import merge, mode fix, and spec compliance#12
knqiufan merged 1 commit intomainfrom
fix/issue-9

Conversation

@knqiufan
Copy link
Owner

Changes

  • Merge consecutive same-role messages when importing CLI sessions
  • Parse JSONL per CLAUDE_SESSION_JSONL_SPEC (preview excludes isMeta, slug support, thinking→text)
  • Fix legacy mode: use agent instead of deprecated code for imported sessions
  • Update database/session_service defaults and docstrings (agent/plan/ask)

Made with Cursor

- Changed default session mode from "code" to "agent" in DatabaseBackend and SessionService.
- Updated documentation for session mode to reflect new values.
- Enhanced content extraction and merging logic in session import service for better handling of user and assistant messages.
- Added new methods for resolving install executables and reporting missing launchers in EnvCheckService.
- Improved command wrapping for Windows scripts to ensure proper execution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@knqiufan knqiufan merged commit e363361 into main Mar 17, 2026
2 checks passed
@knqiufan knqiufan deleted the fix/issue-9 branch March 17, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant