mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
Add an "Archive all threads" action to the branch/worktree lane kebab menu in the desktop sidebar. The menu now appears on any non-profile lane with sessions (including main/home checkouts), not just removable linked worktree lanes. The action archives every session in the lane sequentially through the existing per-session `onArchiveSession` path, so optimistic state, rollback, pin cleanup, and tile closing all work per-session. Sequential (not parallel) prevents overlapping rollbacks from restoring stale sidebar/pin state when one request fails mid-batch. Files: - workspace-header.tsx: WorkspaceMenu takes optional onArchiveAll; renders it as the first dropdown item with an archive codicon - workspace-group.tsx: SidebarWorkspaceGroup takes onArchiveSession; loops sequentially in handleArchiveAll; shows kebab on any lane with sessions - entered-content.tsx: threads onArchiveSession down to SidebarWorkspaceGroup - sessions-section.tsx: passes onArchiveSession to EnteredProjectContent and grouped SidebarWorkspaceGroup (workspace mode only) - index.tsx: ChatSidebarProps.onArchiveSession widened to Promise<void> | void - i18n: new archiveAllThreads string (en + zh; ja/zh-hant fall back via defineLocale) |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||