Repository navigation
[Feature Request / PR-Ready] Add explicit "Delete Session" action with danger styling to session menu (ui-workspace) #6845
codeREDxbt
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary / 概述
Currently, the session action menu (
...) in the sidebar only provides:重命名/ Rename分叉会话/ Fork session归档会话/ Archive session (with an archive folder icon)As noted in
packages/client/ui-workspace/README.md("No Session deletion or unarchive control"), users who want to delete conversations cannot find an explicit "Delete" button. This leads to confusion and perceived clutter.Proposed Solution / 解决方案
SessionNodeItemwith red danger styling (danger: true) and<IconTrashOutline16 />.archiveSessionmethod so the session is cleanly removed from the sidebar tree and search results without corrupting append-only event persistence logs.Code Changes / 变更代码
packages/client/ui-workspace/src/client/locales.ts:packages/client/ui-workspace/src/client/rows/Rows.tsx:packages/client/ui-workspace/src/client/rows/WorkspaceBrowser.tsx:Passed
onSessionDelete={onSessionArchive}across both grouped (SessionTree) and flat (FlatList) browser views.Verification / 测试结果
packages/client/ui-workspacepassing.rows.client.spec.tsxandworkspace-browser.client.spec.tsx.All reactions