Skip to content

CL-6795: settle sidebar list preview on stream apply (client) - #360

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6795-client-sidebar-preview-settle
Aug 23, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-6795-client-sidebar-preview-settle

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

Client follow-up to #354 (server lookback). On chat.message stream apply, settle the workbench/chat list-cache row so the sidebar preview tracks the latest person-facing text without a list refetch.

  • Bump lastActivityAt for newer-or-equal stream messages
  • Replace preview only when the message has text parts
  • Keep the prior readable preview across join/event/attachment-only rows (never blank)
  • Ignore older echoes so a stale greeting cannot overwrite a newer user message

Test plan

  • bun test packages/chat-ui/test/stream-apply.test.ts (includes CL-6795 cases)
  • Manual: send a message after an agent greeting — sidebar preview settles to the user text
  • Manual: invite/join an agent — sidebar keeps prior readable preview, does not blank to title-only

Closes CL-6795

When a chat.message lands, update the workbench/chat list-cache row:
bump lastActivityAt, replace preview only for person-facing text, and
keep the prior readable preview across join/event rows so the sidebar
never blanks or sticks on a stale greeting.
@TheGreatAxios
TheGreatAxios merged commit 6c666cf into main Aug 23, 2026
5 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-6795-client-sidebar-preview-settle branch August 25, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant