Repository navigation
feat(core,server): session timeline in the viewer (#1470 c) - #1654
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Nov 3, 2026
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.
What
Session timeline for #1470 (c), as a page in the
uteke viewviewer (#1653).observations), most recently active first. A session shows its turns inseqorder (role,captured_at, status) and the memories that point back at it.capture:<session>:<batch>(what extraction writes today) orobservation:<session>(the form the plan names) gets a "session timeline" link in the Memories tab.Uteke::capture_sessions,session_timeline,session_memories, plussession_of_source./viewer/sessionsand/viewer/session?id=. They are not API routes and not in the registry, so CORE/LAB anddocs/api-reference.mdare unchanged. They sit behind the same token (401),Host(403) and GET-only (405) rules.uteke_viewercookie from an earlier launch (cookies ignore ports) shadowed the fresh token on the launch URL and gave 401; the query token is now read first on/.textContent.Why
Finishes #1470 (c). Done turns are deleted after the retention period, so an old session can show memories and no turns; the page says so. Plan:
docs/plans/2026-10-29-dx-bundle-1470.mdsection 4.Testing
cargo test -p uteke-core session_view: 4 tests (seq order and session scoping, the session list, both source forms and as10vss1prefix case, deprecated memories skipped, source parsing incl. session ids with:).cargo test -p uteke-server viewer: 16 tests, new ones cover token/Host/method rules on the session paths, a missing id (400), percent-encoded ids, stored<script>returned verbatim as a JSON string, memories linked back, and the stale-cookie case.cargo test -p uteke-core -p uteke-server,cargo clippy --workspace --all-targets,cargo fmt --check: clean.<b>deploy</b>shows as literal text.