A side chat thread is a real session owned by the host, so archiving it is the
host's own capability (`uiWorkspace.archiveSession(id, { stopActivity: true })`,
the same action the session list's row menu uses) and the current archive set is
read back from `workspaces.list` (`archivedSessionIds`, subscribed via
`useSyncExternalStore`). The plugin's existing `archive` feature is unrelated
(file-tree zip).
Two consequences the view has to honor:
- Archived threads leave the switch menu. The host hides archived sessions from
the session list and refuses to open them ("Archived sessions cannot be
opened"), so keeping them listed would offer a thread that can only dead-end
the panel.
- Archiving the thread this tab is bound to re-binds the tab instead of leaving
it on an archived session: the newest remaining thread that already carries a
real first prompt (creation order comes from the host's subagent catalog),
the newest placeholder only if nothing else is left, and otherwise an unbound
tab that falls back to the empty state.
The button sits next to the switch/save icons and is disabled while the thread
is running or another operation is in flight, with `sideChatArchiveRunning`
explaining the running case.
i18n: `sideChatArchive` / `sideChatArchiveRunning` are added to zh + en and to
all 19 third-language dictionaries (key-set parity is enforced by
tests/locales.spec.ts). The zh-HK/MO/TW entries follow those files' existing
`archive -> 歸檔` convention; the other 16 are drafts that still want a native
review.