feat(spaceshd): pinned workspace field

Add a `pinned` bool to the workspace model, threaded through proto
(Workspace + WorkspaceView + SetWorkspaceMeta), the registry, the
set_workspace_meta handler, persistence, the CLI mapping, and the Tauri
bridge. serde(default) keeps existing state.json compatible (pinned=false).
Backs the sidebar Favorites section.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-14 08:56:09 +07:00
parent 2c8ac8ebac
commit 7b47052a6f
7 changed files with 32 additions and 6 deletions
+2
View File
@@ -104,6 +104,8 @@ pub enum Cmd {
unread: Option<bool>,
#[serde(default, skip_serializing_if = "Option::is_none")]
order: Option<u32>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pinned: Option<bool>,
},
CreateGroup { name: String, color: String },
SetGroup {