Skip to content

Chat sidebar: add "Archive" to the session menu - #228

Open
arsenmuk wants to merge 1 commit into
mainfrom
arsenmuk/session-archive-menu
Open

Chat sidebar: add "Archive" to the session menu#228
arsenmuk wants to merge 1 commit into
mainfrom
arsenmuk/session-archive-menu

Conversation

@arsenmuk

Copy link
Copy Markdown
Member

Chat sidebar: add "Archive" to the session menu

The session ⋯ menu offered only Star / Rename / Delete (hard delete). Archive was already backend-ready (POST /api/sessions/{id}/archive, api.archiveSession, session_archived WS handler) but not surfaced in the UI.

Adds an Archive action (above Delete): soft-removes the session from the sidebar (recoverable), unlike Delete's permanent removal.

  • chatStore: new archiveSession(id)api.archiveSession.
  • SessionSidebar: Archive menu item + wiring (mirrors Star/Rename).
  • Frontend-only; backend endpoint + WS handler unchanged. npm run build green.

🤖 Generated with Claude Code

The session ⋯ menu offered only Star / Rename / Delete (hard delete).
Archive was already backend-ready (POST /api/sessions/{id}/archive,
api.archiveSession, session_archived WS handler) but not surfaced in the
UI. Add an Archive action (above Delete) that soft-removes the session
from the sidebar (recoverable), mirroring the Star/Rename wiring and the
optimistic-reload pattern of deleteSession.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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