{{ message }}
Repository navigation
Conversation
added 2 commits
October 13, 2026 22:00
Add per-message pinning to the desktop/web chat. A message or assistant response can be pinned from its action row, and the timeline header exposes a Pinned messages menu that jumps back to any pinned message. Pins are stored client-side in global storage keyed by session and are not synced to the server, matching the v1 scope discussed in anomalyco#55195. - ui: add pin / pin-filled icons and message pin strings - session-ui: extend SessionUserActions with pin/unpin/isPinned/pinnedMessages and render pin buttons on user messages and assistant responses - app: add a persisted per-session pin store, wire it through the composer region, and render the pinned-messages menu with jump-to-message
Contributor
Contributor
1 task done
This branch has not been deployed
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 #55195
Type of change
What does this PR do?
Adds per-message pinning to the desktop/web chat (
packages/session-ui).sessionID -> messageID[], newest first, capped at 100). Nothing is sent to the server.The design was discussed in #55195. This is deliberately a small v1: whole message, per session, client-local. Pinning a text selection and cross-device sync are left out.
How did you verify your code works?
bun test src/session/pinned-list.test.tsinpackages/app(pure list helpers) - 4 pass.packages/session-ui/component-tests/message-pin.spec.tspins/unpins a user message and a response and asserts the label and filled icon flip.bun turbo typecheckforui,session-ui,apppasses;oxlintandprettierare clean.current-session-timeline-rows--conversation): clicking pin flipspin->pin-filledand "Pin message" -> "Unpin message", unpinning flips it back, and the header "Pinned messages" menu lists the pins and unpins inline.Screenshots / recordings
Chat with a user message and a response pinned (filled pin icons):
The "Pinned messages" header menu:
Checklist