Repository navigation
fix: finalize saved sessions without forcing extraction - #189
Merged
Merged
Conversation
guangyu-reflexio
marked this pull request as ready for review
October 14, 2026 20:36
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
guangyu-reflexio
added a commit
to ReflexioAI/reflexio
that referenced
this pull request
Oct 14, 2026
Short sessions can be saved without reaching the first extraction window or stride. Add optional `session_finished` publishing and `finalize_session` operations, plus a default six-hour session inactivity fallback. Both reuse the existing judge → extractor → consolidation → conditional aggregation pipeline. Normal window/stride and explicit manual-force behavior stay intact. Boundaries survive late messages, respect project/user scope, ignore covered or erased prefixes, and retain durable wakeups across restart. Existing pinned work remains immutable. Timeout configuration is captured prospectively; zero disables fallback for new publications. Legacy admissions support explicit completion without inferred idle backfill. Validation: 443 backend/SDK tests passed after rebasing onto current main, covering real HTTP/provider seams, positive/negative judges, retries, rollback, late arrivals, erasure, index use and scheduler restart. Ruff/Pyright passed. Follow-up review fix invalidates learning caches on successful sync/async completion; 90 SDK/cache tests passed. All four current-head installed-wheel CI jobs passed. GitHub Codex reviewed the current head with no major issues and no P0/P1 findings. Related PRs: - PostgreSQL integration and public documentation: ReflexioAI/reflexio-enterprise#1765 - Plugin: ReflexioAI/claude-smart#189 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Partial extraction windows can now be evaluated after a session-completion hint or a configurable inactivity period, while retaining the usefulness check. * Added session-finalization methods for standard and session-scoped clients. * Short messages can now reach the usefulness check instead of being rejected by a length filter. * **Documentation** * Updated guidance on completion hints, idle timeouts, partial windows, and manual forced extraction. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Completion acceptance also survives post-commit scheduler failures. Five HTTP/library short-session regression cases passed; Ruff and Pyright passed. GitHub Codex review completed on the final head with no major issues and no P0/P1 findings.
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.
SessionEnd previously forced extraction only when unpublished messages remained. Publish without bypassing the usefulness judge, then send a completion hint even when Stop already saved everything. Failed publication and read-only/internal invocations do not finalize. Older backends retain saved messages and receive an actionable diagnostic, without forced extraction or duplicate publishing.
The bundled Reflexio pin includes optional completion and the configurable six-hour inactivity fallback for publish-only agents, including Codex and OpenCode. Managed mode requires the companion backend deployment. This PR does not publish npm or deploy cloud services.
Validation: 1,127 local plugin tests passed against the updated backend; Ruff/Pyright and vendor integrity checks passed. The previous head passed full CI. The final SDK cache-invalidation fix is included in the updated vendor pin; all current-head CI checks passed after the final backend pin update. GitHub Codex reviewed the current head with no major issues and no P0/P1 findings.
Related PRs:
Summary by CodeRabbit
/learnfor manual forced learning.The final bundle includes resilient post-commit completion wakeup. GitHub Codex review completed on the final head with no major issues and no P0/P1 findings.