fix(mobile): apply live session.updated titles - #5984
Merged
Conversation
Ingest emits session.updated when a session is auto-renamed. The tray ignored that event and kept the sticky DB title until pull-to-refresh. The session header also kept the title from the initial fetch. Apply session.updated onto the live tray cache, and overlay the same event on the session-detail header.
iscekic
enabled auto-merge (squash)
September 9, 2026 08:39
eshurakov
approved these changes
Sep 9, 2026
This was referenced Sep 10, 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.
Review and merge. Auto-rename now updates the session list and the session header without pull-to-refresh.
Problem
Ingest writes an automatic title and emits
session.updated. Mobile ignored that event.fetchSession.Change
session.updatedonto the live tray cache. Heartbeats still do not overwrite a DB title.Test
pnpm --filter kilo-app exec vitest run src/lib/active-sessions-live.title.test.ts src/lib/active-sessions-live-sync.title.test.ts src/components/agents/session-detail-rename-state.test.ts src/app/\(app\)/agent-chat/\[session-id\].mounted.test.tsxpnpm --filter kilo-app run lintpnpm --filter kilo-app run typecheck