From 8c075de147bdb738e06296ab792a60266a9bf587 Mon Sep 17 00:00:00 2001 From: Hare Date: Wed, 26 Aug 2026 05:13:21 +0900 Subject: [PATCH] fix: allow remote runtime workdir creation --- crates/workspace-server/src/hosts.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/workspace-server/src/hosts.rs b/crates/workspace-server/src/hosts.rs index 87cf4261..6fc63c67 100644 --- a/crates/workspace-server/src/hosts.rs +++ b/crates/workspace-server/src/hosts.rs @@ -4138,7 +4138,7 @@ fn remote_runtime_capabilities( has_workspace_fs: false, has_shell: false, has_git: false, - supports_worktrees: false, + supports_worktrees: true, supports_backend_internal_tools: false, workspace_scope: "remote_runtime_backend_private".to_string(), max_workers: limit, @@ -5534,6 +5534,12 @@ mod tests { assert!(browser_payload.contains("worker_id")); } + #[test] + fn remote_runtime_projection_allows_workdir_creation() { + let capabilities = remote_runtime_capabilities(8, true, true, "linux", "x86_64"); + assert!(capabilities.supports_worktrees); + } + #[test] fn remote_runtime_projection_uses_canonical_worker_status_for_stop_capability() { let worker_ids = (1..=4)