[GH-ISSUE #1420] [Feature]: Pin/favorite a chat so it stays at the top of the sidebar #703

Closed
opened 2026-10-20 17:32:04 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @GetBeholder on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1420

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

There is no way to pin or favorite a chat so it stays at the top of the sidebar.
With many chats, users must scroll to find their active/important ones. The
current workaround is naming a folder something like "1-Favorites," but folder
grouping sorts grouped chats above ungrouped ones, so active chats kept outside
folders end up at the bottom of the list.

Proposed behavior

Add the ability to mark a chat as pinned/favorite (e.g. a star toggle) and sort
pinned chats first in the sidebar, above the regular sort order. Pinned chats stay
at the top regardless of the chosen sort.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

From a quick scan (triage pointer, not from the reporter): there is no
pinned/favorite field on chats today. The sidebar
(src/app/shell/ChatSidebar.tsx) sorts by newest | oldest | name-asc | name-desc
(ChatSortOption, ~L55) and supports folders. Implementing this means adding a
pinned/favorite flag to the chat contract (src/engine/contracts/types/chat.ts
plus its schema) and ordering pinned chats first in the sidebar list (and deciding
how pinning interacts with folders). Keep the chat field in the engine/catalog
layer and the toggle/sort UI in the app shell sidebar.

Alternatives considered

AgentX's folder workaround: create a folder named "1-Favorites" and put chats
there. However, folder grouping pushes ungrouped active chats to the bottom, so it
is not equivalent to pin-to-top.

Additional context

Source: forum request by Ryspace [R99] (2-Star), 3:31 PM, with AgentX (3-Star)
agreeing and suggesting a "favorite/star then sort first" approach. Ryspace
attached an image; it was referenced but not provided as a file or URL, so it is
not attached. AgentX also noted that active chats kept outside folders currently
sort to the bottom of the list — relevant to how pinning/sorting should behave.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @GetBeholder on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1420 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? There is no way to pin or favorite a chat so it stays at the top of the sidebar. With many chats, users must scroll to find their active/important ones. The current workaround is naming a folder something like "1-Favorites," but folder grouping sorts grouped chats above ungrouped ones, so active chats kept outside folders end up at the bottom of the list. ## Proposed behavior Add the ability to mark a chat as pinned/favorite (e.g. a star toggle) and sort pinned chats first in the sidebar, above the regular sort order. Pinned chats stay at the top regardless of the chosen sort. ## Expected owner or impact area - [x] App shell, navigation, startup, or providers - [x] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations From a quick scan (triage pointer, not from the reporter): there is no `pinned`/`favorite` field on chats today. The sidebar (`src/app/shell/ChatSidebar.tsx`) sorts by `newest | oldest | name-asc | name-desc` (`ChatSortOption`, ~L55) and supports folders. Implementing this means adding a `pinned`/`favorite` flag to the chat contract (`src/engine/contracts/types/chat.ts` plus its schema) and ordering pinned chats first in the sidebar list (and deciding how pinning interacts with folders). Keep the chat field in the engine/catalog layer and the toggle/sort UI in the app shell sidebar. ## Alternatives considered AgentX's folder workaround: create a folder named "1-Favorites" and put chats there. However, folder grouping pushes ungrouped active chats to the bottom, so it is not equivalent to pin-to-top. ## Additional context Source: forum request by Ryspace [R99] (2-Star), 3:31 PM, with AgentX (3-Star) agreeing and suggesting a "favorite/star then sort first" approach. Ryspace attached an image; it was referenced but not provided as a file or URL, so it is not attached. AgentX also noted that active chats kept outside folders currently sort to the bottom of the list — relevant to how pinning/sorting should behave. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:32:04 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Okay, yeah, we can do the same what we're doing with Favorite characters.

<!-- gh-comment-id:4557407171 --> @SpicyMarinara commented on GitHub (May 27, 2026): Okay, yeah, we can do the same what we're doing with Favorite characters.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Implemented on refactor.

What changed:

  • Added persisted chat metadata for pinned.
  • Added a star toggle on chat rows in the left sidebar.
  • Pinned chats now render in a dedicated top section before normal/foldered chats.

Verification:

  • git diff --check
  • pnpm typecheck
  • pnpm lint
  • pnpm check:architecture
  • pnpm build
  • graphify update .
<!-- gh-comment-id:4557649656 --> @SpicyMarinara commented on GitHub (May 27, 2026): Implemented on `refactor`. What changed: - Added persisted chat metadata for `pinned`. - Added a star toggle on chat rows in the left sidebar. - Pinned chats now render in a dedicated top section before normal/foldered chats. Verification: - `git diff --check` - `pnpm typecheck` - `pnpm lint` - `pnpm check:architecture` - `pnpm build` - `graphify update .`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#703
No description provided.