aboutsummaryrefslogtreecommitdiff
path: root/src/app/runtime_mutations.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-01 15:48:22 +0300
committerGitHub <noreply@github.com>2026-09-01 15:48:22 +0300
commit207be3c771d281baae6e5fa0fb74be9a056e97a2 (patch)
treed7b037ecdf629224a048c841d11659efdc23507d /src/app/runtime_mutations.rs
parent8a6d697308162874a236c84aac0b0f8c7ac01f83 (diff)
refactor: render the shell in the client (#3487)
* feat: add opt-in client-rendered shell * feat: add client-owned shell mouse controls * feat: complete client-owned shell chrome * feat: add client-owned shell settings and notifications * feat: run client shell custom commands * feat: render popup terminals in client shell * feat: add client-owned scrollback and copy mode * fix: preserve client worktree trust defaults * feat: render startup diagnostics in client shell * feat: render onboarding in client shell * feat: render product announcements in client shell * feat: render release notes in client shell * feat: render mobile switcher in client shell * feat: render kitty graphics in client shell * fix: preserve client shell lifecycle coherence * refactor: route client shell commands through endpoint connections * refactor: make the client-rendered shell the default * refactor: remove monolithic launch mode * refactor: complete client-rendered shell cutover * perf: retain client pane surface updates * perf: scale retained pane surface updates * perf: remove remote pane input latency * test: make client shell checks platform-independent * fix: prevent client timer starvation * test: fix client shell platform gates * test: accept retained surfaces in cross-area checks * test: make client mode assertions platform-neutral * fix: badge only outdated integrations
Diffstat (limited to 'src/app/runtime_mutations.rs')
-rw-r--r--src/app/runtime_mutations.rs198
1 files changed, 0 insertions, 198 deletions
diff --git a/src/app/runtime_mutations.rs b/src/app/runtime_mutations.rs
deleted file mode 100644
index d3d767e7..00000000
--- a/src/app/runtime_mutations.rs
+++ /dev/null
@@ -1,198 +0,0 @@
-use crate::api::schema::{
- EmptyParams, LayoutSetSplitRatioParams, Method, PaneFocusDirectionParams, PaneInputSetParams,
- PaneRenameParams, PaneResizeParams, PaneSplitParams, PaneSwapParams, PaneTarget,
- PaneZoomParams, TabCreateParams, TabMoveParams, TabRenameParams, TabTarget,
- WorkspaceCloseParams, WorkspaceCreateParams, WorkspaceMoveBlockParams, WorkspaceMoveParams,
- WorkspaceRenameParams, WorkspaceTarget, WorktreeCreateParams, WorktreeOpenParams,
- WorktreeRemoveParams,
-};
-
-use super::App;
-
-impl App {
- pub(crate) fn dispatch_runtime_mutation(&mut self, id: &'static str, method: Method) -> String {
- self.dispatch_api_request(id, method)
- }
-
- pub(crate) fn dispatch_deferred_runtime_mutation(
- &mut self,
- id: &'static str,
- method: Method,
- ) -> Option<String> {
- self.dispatch_deferred_api_request(id, method)
- }
-
- pub(crate) fn runtime_workspace_focus(
- &mut self,
- id: &'static str,
- workspace_id: String,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::WorkspaceFocus(WorkspaceTarget { workspace_id }))
- }
-
- pub(crate) fn runtime_workspace_create(
- &mut self,
- id: &'static str,
- params: WorkspaceCreateParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::WorkspaceCreate(params))
- }
-
- pub(crate) fn runtime_workspace_rename(
- &mut self,
- id: &'static str,
- params: WorkspaceRenameParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::WorkspaceRename(params))
- }
-
- pub(crate) fn runtime_workspace_move(
- &mut self,
- id: &'static str,
- params: WorkspaceMoveParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::WorkspaceMove(params))
- }
-
- pub(crate) fn runtime_workspace_move_block(
- &mut self,
- id: &'static str,
- params: WorkspaceMoveBlockParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::WorkspaceMoveBlock(params))
- }
-
- pub(crate) fn runtime_workspace_close_group(
- &mut self,
- id: &'static str,
- workspace_id: String,
- ) -> String {
- self.dispatch_runtime_mutation(
- id,
- Method::WorkspaceClose(WorkspaceCloseParams {
- workspace_id,
- close_group: true,
- }),
- )
- }
-
- pub(crate) fn runtime_tab_create(
- &mut self,
- id: &'static str,
- params: TabCreateParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::TabCreate(params))
- }
-
- pub(crate) fn runtime_tab_focus(&mut self, id: &'static str, tab_id: String) -> String {
- self.dispatch_runtime_mutation(id, Method::TabFocus(TabTarget { tab_id }))
- }
-
- pub(crate) fn runtime_tab_rename(
- &mut self,
- id: &'static str,
- params: TabRenameParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::TabRename(params))
- }
-
- pub(crate) fn runtime_tab_move(&mut self, id: &'static str, params: TabMoveParams) -> String {
- self.dispatch_runtime_mutation(id, Method::TabMove(params))
- }
-
- pub(crate) fn runtime_tab_close(&mut self, id: &'static str, tab_id: String) -> String {
- self.dispatch_runtime_mutation(id, Method::TabClose(TabTarget { tab_id }))
- }
-
- pub(crate) fn runtime_server_reload_config(&mut self, id: &'static str) -> String {
- self.dispatch_runtime_mutation(id, Method::ServerReloadConfig(EmptyParams::default()))
- }
-
- pub(crate) fn runtime_pane_focus(&mut self, id: &'static str, pane_id: String) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneFocus(PaneTarget { pane_id }))
- }
-
- pub(crate) fn runtime_pane_close(&mut self, id: &'static str, pane_id: String) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneClose(PaneTarget { pane_id }))
- }
-
- pub(crate) fn runtime_pane_rename(
- &mut self,
- id: &'static str,
- params: PaneRenameParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneRename(params))
- }
-
- pub(crate) fn runtime_pane_input_set(
- &mut self,
- id: &'static str,
- params: PaneInputSetParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneInputSet(params))
- }
-
- pub(crate) fn runtime_pane_focus_direction(
- &mut self,
- id: &'static str,
- params: PaneFocusDirectionParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneFocusDirection(params))
- }
-
- pub(crate) fn runtime_pane_resize(
- &mut self,
- id: &'static str,
- params: PaneResizeParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneResize(params))
- }
-
- pub(crate) fn runtime_pane_swap(&mut self, id: &'static str, params: PaneSwapParams) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneSwap(params))
- }
-
- pub(crate) fn runtime_pane_split(
- &mut self,
- id: &'static str,
- params: PaneSplitParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneSplit(params))
- }
-
- pub(crate) fn runtime_pane_zoom(&mut self, id: &'static str, params: PaneZoomParams) -> String {
- self.dispatch_runtime_mutation(id, Method::PaneZoom(params))
- }
-
- pub(crate) fn runtime_layout_set_split_ratio(
- &mut self,
- id: &'static str,
- params: LayoutSetSplitRatioParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::LayoutSetSplitRatio(params))
- }
-
- pub(crate) fn runtime_worktree_create_deferred(
- &mut self,
- id: &'static str,
- params: WorktreeCreateParams,
- ) -> Option<String> {
- self.dispatch_deferred_runtime_mutation(id, Method::WorktreeCreate(params))
- }
-
- pub(crate) fn runtime_worktree_open(
- &mut self,
- id: &'static str,
- params: WorktreeOpenParams,
- ) -> String {
- self.dispatch_runtime_mutation(id, Method::WorktreeOpen(params))
- }
-
- pub(crate) fn runtime_worktree_remove_deferred(
- &mut self,
- id: &'static str,
- params: WorktreeRemoveParams,
- ) -> Option<String> {
- self.dispatch_deferred_runtime_mutation(id, Method::WorktreeRemove(params))
- }
-}