Skip to content

Feat(session): Add optional topic continuity session split and immediately searchable midterm memory - #7502

Open
Tianyi-Liu wants to merge 3 commits into
volcengine:mainfrom
Tianyi-Liu:feat/topic-continuity
Open

Tianyi-Liu wants to merge 3 commits into
volcengine:mainfrom
Tianyi-Liu:feat/topic-continuity

Conversation

@Tianyi-Liu

@Tianyi-Liu Tianyi-Liu commented Nov 12, 2026 •

Copy link
Copy Markdown

#5047 [Feature]: Group adjacent turns by topic continuity before long-term memory extraction

Adds topic-aware extraction batches and searchable dialogue evidence while long-term memory extraction is processing.

A single option, memory.topic_continuity.enabled, controls the feature and defaults to false. When enabled:

  • Group archived turns by topic before long-term extraction.
  • Stage and index midterm dialogue records before starting long-term extraction.
  • Recall midterm evidence in VikingBot with separate retrieval budgets.
  • Remove converted midterm records after successful replacement indexing; retain unconverted or failed records.
    Long-term extraction continues to use the original archived messages. Topic checks use a separately configured query planner, with time-gap and turn-count rules as the fallback.

Includes an explicit pause/release barrier for streaming evaluation, benchmark utilities, and English/Chinese documentation. Normal commits proceed automatically.

Validation

  • 188 focused tests passed, including embedding readiness, failure handling, cleanup, and deferred resume.
  • Lint, whitespace, and shell syntax checks passed.
  • Native integration testing remains blocked by the installed extension’s missing PrivacyMatcher and a vector backend API mismatch.

Tianyi-Liu and others added 2 commits November 11, 2026 17:40
Split one commit archive into topic groups before extraction when memory.topic_continuity is enabled, using a dedicated query planner when one is configured.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant