feat(memos-local-plugin): episode delete API and smarter orphan scan#1608
Open
Starfie1d1272 wants to merge 1 commit intoMemTensor:mainfrom
Open
feat(memos-local-plugin): episode delete API and smarter orphan scan#1608Starfie1d1272 wants to merge 1 commit intoMemTensor:mainfrom
Starfie1d1272 wants to merge 1 commit intoMemTensor:mainfrom
Conversation
- Add episode.delete / episode.delete_bulk JSON-RPC methods with validation (reject open episodes, guard against no-op regressions). - Refine orphan scan: only close episodes whose session is explicitly closed (meta.closedAt) or no longer exists. Sessions that may reconnect are left alone — no more false-orphan closes.
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
Two quality-of-life improvements for episode management.
1. Episode delete API
The WebUI Tasks page had a delete button that was a no-op — no JSON-RPC method existed on the backend. This adds:
episode.delete— delete a single closed episode (rejects open episodes with 409 conflict)episode.delete_bulk— delete multiple closed episodes at onceValidation:
2. Smarter orphan scan
Previously the startup orphan scan closed ALL open episodes regardless of session state. If a Hermes session briefly disconnected and reconnected, its episodes would be prematurely closed.
Now the scan checks
session.meta.closedAt:🤖 Generated with Claude Code