Open
Conversation
Contributor
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
d723f1e to
8bf098c
Compare
a1118de to
c11cb8f
Compare
f444aff to
b4dc1a8
Compare
adcadf0 to
41bf671
Compare
41bf671 to
0983235
Compare
Replace separate before/after query parameters with a single cursor that carries direction info. Chat clients can now use 'start' or 'end' keywords to jump to the beginning or newest messages, and navigate history with a single cursor parameter instead of managing multiple pagination states.
…avigation Enables loading messages in chunks for better performance with long conversations. Users can now navigate through large session histories without loading all messages at once. Includes before/after cursors for bi-directional pagination.
Users can now browse sessions through the new /api/session endpoint with filters for directory, workspace, date range, and title search. Pagination cursors are now labeled 'previous' and 'next' instead of 'before' and 'after' to make navigation direction clearer. Both session lists and message history now support explicit 'asc' or 'desc' ordering so users can choose between newest-first or oldest-first views. The TUI session view now displays messages with the newest at the bottom, matching standard chat interfaces.
… handling This change removes the predefined fields from Session.Info to allow more dynamic event-driven session data. Instead of fixed schema fields, session information will be populated through the event system, enabling better support for evolving session states without schema migrations. The empty struct serves as a base that can be extended through the event model, making it easier to add new session attributes without modifying core schema definitions.
Store the active agent and model in the session table so users can see which configuration was used when browsing session history. This helps identify sessions that used specific agents or models for easier filtering and organization.
Events now include unique identifiers at the payload level, making it easier to trace event flow through the system and debug issues. Session events have been restructured so IDs are consistent across the event bus, database projections, and API responses. Sessions now persist which agent and model were used, preserving this context in session history. Agent and model switches are now tracked as dedicated message types in sessions, providing a clearer timeline of how the conversation evolved.
…I state from lingering
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
session.*event types and sync metadata.Tests
bun typecheckfrompackages/opencodebun test test/session/session-entry-stepper.test.tsfrompackages/opencodebun turbo typecheck