Agentic UI: Remove unused starred flag from AI chat sessions - #4229
Conversation
📊 Performance Test ResultsComparing b1f2aff vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
katinthehatsite
left a comment
There was a problem hiding this comment.
I did not see any issues specifically with starred convesations cleanup and it worked as expected on my end 👍
Something that I found a bit strange (perhaps it is not directly related to this PR), is that when you archive a chat, you remain on it instead of a new chat opening. I think this would be the behaviour I expect when something is archived. What do you think?
That makes sense, nice catch! 👍 |
@katinthehatsite I added it in 37e3f02 |
sejas
left a comment
There was a problem hiding this comment.
Thanks for cleaning up the starred logic. We might be leaving existing saved starred sessions in shared.json, but I think that's okay since almost no one has used that feature yet.
Agreed, that was intentional. Adding some logic/migration isn't worth it for such a small user cleanup, imo |
Related issues
How AI was used in this PR
Claude traced every reference to the
starredsession flag across the codebase, removed the dead plumbing, updated the tests, and ran lint/typecheck/tests. Changes were reviewed and the archive flow was manually tested.Proposed Changes
The star/unstar UI for chat conversations was removed in #4191, which left the
starredsession-metadata flag as dead plumbing: nothing could set it and nothing displayed it. This PR retires the flag end-to-end — from the shared-config schema, session types and hydration, the IPC handler, the hosted/local PATCH endpoints, and the UI data layer.shared.jsonfiles with leftoverstarredentries still parse fine; the stale keys are simply ignored and go away when the chat is deleted.Testing Instructions
starred— no references to the removed feature remain.~/.studio/shared.jsonhas old"starred"entries, everything keeps working; they're just ignored.Pre-merge Checklist
🤖 Generated with Claude Code