feat: display model information in session list#21129
Open
mohitmishra786 wants to merge 4 commits intoanomalyco:devfrom
Open
feat: display model information in session list#21129mohitmishra786 wants to merge 4 commits intoanomalyco:devfrom
mohitmishra786 wants to merge 4 commits intoanomalyco:devfrom
Conversation
Add model field to sessions so users can identify which model was used when browsing their session history. Changes: - Add model column to SessionTable with migration - Add model field to Session.Info schema - Add setModel service method and integrate with initialize - Update CLI table and JSON output to show model - Update TUI session list footer to show model name - Update projectors for snake_case conversion - Add 4 unit tests for model CRUD Closes anomalyco#21128
Session.initialize only fires via REST API, not TUI chat flow. Fetch model from first message when session model column is NULL so all sessions show model regardless of how they were created.
Guideline violation: no any type.
Author
|
@thdxr @Brendonovich can you please help with the review? |
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.
Issue for this PR
Closes #21128
Type of change
What does this PR do?
Session list only showed ID, title, and time. Hard to tell sessions apart when you use different models. Added model name to the display so you can quickly spot which session used which model.
modelcolumn to SessionTable with migrationmodelfield to Session.Info schemasetModelservice methodKnown behavior: Model only appears after the first message is sent. Empty sessions (no messages yet) won't show a model since there's nothing to fetch from. Sessions created during the current dev session may not show the model until the server restarts, since the model is fetched from the first message in the database.
How did you verify your code works?
Screenshots
CLI One

CLI before:
CLI after:
TUI session list footer:

Checklist