summaryrefslogtreecommitdiff
path: root/src/api/server.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/api/server.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/api/server.rs')
-rw-r--r--src/api/server.rs18
1 files changed, 10 insertions, 8 deletions
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<ServerCapabilities>,
-) -> std::io::Result<ServerHandle> {
- start_server_inner(api_tx, event_hub, capabilities, None)
-}
-
fn default_capabilities() -> Option<ServerCapabilities> {
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",