feat(agent): Add session resumption support#335
Merged
Conversation
- Add --session-id flag to resume existing agent sessions - Implement convertFromConversationEntry for loading saved conversations - Add loadExistingSession method to restore conversation state - Add structured JSON status messages for session lifecycle events - Update documentation with session resumption examples - Add comprehensive tests for convertFromConversationEntry
4 tasks
ig-semantic-release-bot bot
pushed a commit
that referenced
this pull request
Dec 11, 2025
## [0.88.0](v0.87.0...v0.88.0) (2025-12-11) ### 🚀 Features * Add persistent storage for agent mode conversations ([#333](#333)) ([cba596a](cba596a)) * **agent:** Add session resumption support ([#335](#335)) ([a8942f7](a8942f7)) ### 🐛 Bug Fixes * Improve tool execution status tracking ([#334](#334)) ([95f71cd](95f71cd))
|
🎉 This PR is included in version 0.88.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Adds session resumption support to the agent command, allowing users to continue work from where they left off.
Changes
New Features
--session-idflag: Resume existing agent sessions by conversation IDImplementation Details
convertFromConversationEntry: Reverse conversion from domain.ConversationEntry to ConversationMessageloadExistingSession: Load conversation from persistent repository and restore stateoutputStatusMessage: Output structured JSON for session lifecycle eventsDocumentation Updates
Testing
convertFromConversationEntryUsage Examples
JSON Status Messages
Benefits
Technical Notes