You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
建议:为 Web GUI 增加"删除会话"功能(Feature request: delete session from the web UI)
仓库:deepseek-ai/deepseek-harness
标题建议:feat(web): add "delete session" action to the session list (workspace.deleteSession RPC)
标签建议:feature request / web / workspace
English TL;DR
The web UI can currently archive sessions (hide them, keep the logs) but cannot delete them. There is also no unarchive/view-archived surface. Deleting a session requires manually removing $DSH_HOME/sessions/<workspace>/session-<id>/ and editing $DSH_HOME/storages/workspace.json. This issue proposes a workspace.deleteSession RPC plus a "删除会话" context-menu action with a confirmation dialog.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
建议:为 Web GUI 增加"删除会话"功能(Feature request: delete session from the web UI)
English TL;DR
The web UI can currently archive sessions (hide them, keep the logs) but cannot delete them. There is also no unarchive/view-archived surface. Deleting a session requires manually removing
$DSH_HOME/sessions/<workspace>/session-<id>/and editing$DSH_HOME/storages/workspace.json. This issue proposes aworkspace.deleteSessionRPC plus a "删除会话" context-menu action with a confirmation dialog.现状(已核对 0.1.0-rc.6)
dsh-client-ui-workspace中menu.archiveSession= "归档会话")。ctx.workspaceRegistry.archiveSession/archivedSessionIds),日志与记账保留;且 UI 没有查看归档、取消归档的入口(dsh-client-ui-workspaceREADME:"No Session deletion or unarchive control")。workspace.delete)只移除 Workspace 注册,保留目录和会话日志,会话转入 Ungrouped。deleteSession/removeSession/purgeSession(客户端ctx.workspaces只暴露list/create/rename/delete(workspace)/insertBefore/insertSessionBefore/archiveSession)。session.jsonl.zstd(dsh-session-persistence-jsonl),无删除 API;会话索引在$DSH_HOME/storages/workspace.json(sessionIds+archivedSessionIds)。workspace.json,易出错且不直观。建议方案
1. Host:新增
workspace.deleteSessionRPC(放在dsh-host-apiproxy的 workspace.* 行)请求:
{ sessionId };语义:session-running);$DSH_HOME/sessions/<workspace>/session-<id>/);sessionIds记账中摘除(可复用/扩展ctx.workspaceRegistry的detachSession,或新增注册表级删除);archivedSessionIds归档集合中移除;session-not-found(与workspace.archiveSession对齐);涉及文件(rc.6 编译产物中的对应位置):
packages/host/apiproxy/.../api/workspace.schema.ts(zod schema + invoke 注册)packages/host/workspace(registry:新增删除路径 / 复用detachSession)packages/host/session-persistence-jsonl(如可行,提供日志目录删除 API)packages/client/connection(schema map +api.workspace.deleteSession)packages/client/runtime(WorkspaceManager / WorkspaceRuntime 透传)2. 事件与列表刷新
host/workspace-changed、host/session-added的既有帧机制),让侧边栏会话列表即时移除该行;session.list作为重连基线,需同步剔除已删除会话。3. Client UI:会话行菜单增加「删除会话」
dsh-client-ui-workspace的 SessionTree 行菜单);menu.deleteSession= "删除会话" / "Delete session"。4. 可选(同一 issue 或后续)
dsh-session-query-sqlite(当前openAt: never)若启用,删除时同步清理 SQLite 记录。验收标准
archivedSessionIds同步移除;备注(用户侧临时替代)
在官方支持之前,用户可改用本地脚本删除(列出会话 → 选择 → 删除目录 + 同步
workspace.json),方案 B 的脚本已在本机验证可用。All reactions