From 207be3c771d281baae6e5fa0fb74be9a056e97a2 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Tue, 1 Sep 2026 15:48:22 +0300 Subject: 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 --- src/api/server.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/api/server.rs') diff --git a/src/api/server.rs b/src/api/server.rs index 3c42d699..ff0b6fdf 100644 --- a/src/api/server.rs +++ b/src/api/server.rs @@ -64,14 +64,6 @@ pub(crate) fn start_server_with_stop_control( start_server_inner(api_tx, event_hub, default_capabilities(), Some(server_stop)) } -pub fn start_server_with_capabilities( - api_tx: ApiRequestSender, - event_hub: EventHub, - capabilities: Option, -) -> std::io::Result { - start_server_inner(api_tx, event_hub, capabilities, None) -} - fn default_capabilities() -> Option { Some(ServerCapabilities { live_handoff: crate::platform::capabilities().live_handoff, @@ -388,6 +380,9 @@ fn api_method_name(method: &Method) -> &'static str { Method::ServerAgentManifests(_) => "server.agent_manifests", Method::ServerReloadAgentManifests(_) => "server.reload_agent_manifests", Method::NotificationShow(_) => "notification.show", + Method::ProductAnnouncementDismiss(_) => "product_announcement.dismiss", + Method::ReleaseNotesDismiss(_) => "release_notes.dismiss", + Method::CommandInvoke(_) => "command.invoke", Method::ClientWindowTitleSet(_) => "client.window_title.set", Method::ClientWindowTitleClear(_) => "client.window_title.clear", Method::SessionSnapshot(_) => "session.snapshot", @@ -436,11 +431,17 @@ fn api_method_name(method: &Method) -> &'static str { Method::PaneEdges(_) => "pane.edges", Method::PaneFocusDirection(_) => "pane.focus_direction", Method::PaneResize(_) => "pane.resize", + Method::PaneScroll(_) => "pane.scroll", + Method::PaneEditScrollback(_) => "pane.edit_scrollback", + Method::PaneSelectionRead(_) => "pane.selection.read", + Method::PaneCopyMotion(_) => "pane.copy_motion", + Method::PaneCopySearch(_) => "pane.copy_search", Method::PaneList(_) => "pane.list", Method::PaneCurrent(_) => "pane.current", Method::PaneGet(_) => "pane.get", Method::PaneFocus(_) => "pane.focus", Method::PaneInputSet(_) => "pane.input.set", + Method::PaneLinkActivate(_) => "pane.link.activate", Method::PaneRename(_) => "pane.rename", Method::PaneSendText(_) => "pane.send_text", Method::PaneSendKeys(_) => "pane.send_keys", @@ -464,6 +465,7 @@ fn api_method_name(method: &Method) -> &'static str { Method::EventsSubscribe(_) => "events.subscribe", Method::EventsWait(_) => "events.wait", Method::PaneWaitForOutput(_) => "pane.wait_for_output", + Method::IntegrationList(_) => "integration.list", Method::IntegrationInstall(_) => "integration.install", Method::IntegrationUninstall(_) => "integration.uninstall", Method::PluginLink(_) => "plugin.link", -- cgit v1.2.3