support commit for openclaw-plugin#902
Merged
qin-ctx merged 1 commit intovolcengine:feat/async-session-commitfrom Mar 24, 2026
Merged
support commit for openclaw-plugin#902qin-ctx merged 1 commit intovolcengine:feat/async-session-commitfrom
qin-ctx merged 1 commit intovolcengine:feat/async-session-commitfrom
Conversation
|
Failed to generate code suggestions for PR |
Made-with: Cursor
87cd4ce to
1a47040
Compare
03a97d5
into
volcengine:feat/async-session-commit
2 checks passed
chenjw
pushed a commit
that referenced
this pull request
Mar 24, 2026
… threading (#900) * feat(session): make commit two-phase with async memory extraction Session commit now returns immediately after archiving messages (Phase 1). Summary generation and memory extraction (Phase 2) run in the background via asyncio.create_task(), returning a task_id for polling progress. - Add get_task() API across all client layers for querying background task status - get_session() auto-creates session if it does not exist - Remove wait parameter and telemetry from commit endpoint - Add .done completion marker to archive directories - Update docs (EN/ZH) and tests for new two-phase flow * feat(session): add .meta.json persistence and auto_create control for get_session SessionService.get() now defaults to auto_create=False, raising NotFoundError for missing sessions. A new SessionMeta dataclass tracks created_at, updated_at, message_count, commit_count, memories_extracted (by category), last_commit_at, and cumulative llm_token_usage. Meta is persisted to .meta.json and updated on add_message, commit Phase 1 (message clear), and commit Phase 2 completion (token usage, memory counts via bind_telemetry). All client layers (local/async/sync/HTTP) and API docs updated accordingly. * fix: remove session vectorize * support commit for openclaw-plugin (#902) Made-with: Cursor * fix: reuse latest archive overview in session context Thread the latest completed archive overview into archive summary generation and memory extraction, and simplify search context assembly to current messages plus the latest archive overview. Co-Authored-By: Claude Opus 4.6 * refactor: session overview --------- Co-authored-by: AutoCoder <wulf234@163.com>
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.
Made-with: Cursor
Description
Related Issue
Type of Change
Changes Made
Testing
Checklist
Screenshots (if applicable)
Additional Notes