the runtime your coding agents live on
Rust agentagent-orchestrationaiai-agentsclaude-codeclicodexcoding-agentsdeveloper-toolsdevtoolsmultiplexerrustterminalterminal-multiplexerterminal-uitmuxtuiworkspace-manager
ci: fix windows checks (pin windows-2022, worktree remove race) (#6093)
Can Celik33bc163856d0
diff --git a/.github/workflows/build-artifacts-manual.yml b/.github/workflows/build-artifacts-manual.ymlindex a42d38ba3..0fe327125 100644--- a/.github/workflows/build-artifacts-manual.yml+++ b/.github/workflows/build-artifacts-manual.yml@@ -190,7 +190,7 @@ jobs:build-windows:if: ${{ inputs.build_group == 'windows' || inputs.build_group == 'all' }}- runs-on: windows-latest+ runs-on: windows-2022env:LIBGHOSTTY_VT_OPTIMIZE: ${{ inputs.libghostty_optimize }}LIBGHOSTTY_VT_SIMD: ${{ inputs.libghostty_simd }}diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 065572a10..f24e6e054 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -60,7 +60,7 @@ jobs:- os: macos-latestkind: unixnextest_filter: not binary(live_handoff)- - os: windows-latest+ - os: windows-2022kind: windowsruns-on: ${{ matrix.os }}timeout-minutes: 15diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.ymlindex f07f83bde..1890390fd 100644--- a/.github/workflows/preview.yml+++ b/.github/workflows/preview.yml@@ -154,7 +154,7 @@ jobs:os: macos-latestname: herdr-macos-aarch64- target: x86_64-pc-windows-msvc- os: windows-latest+ os: windows-2022name: herdr-windows-x86_64.zipruns-on: ${{ matrix.os }}env:diff --git a/scripts/release-workflows.test.ts b/scripts/release-workflows.test.tsindex edeff2323..770642c83 100644--- a/scripts/release-workflows.test.ts+++ b/scripts/release-workflows.test.ts@@ -21,7 +21,7 @@ describe("official publishing workflow boundaries", () => {expect(checks.run.trim().split("\n")).toEqual(["just ci", "just docs-contract-test"]);expect(preview.jobs.build.strategy.matrix.include).toContainEqual({target: "x86_64-pc-windows-msvc",- os: "windows-latest",+ os: "windows-2022",name: "herdr-windows-x86_64.zip",});expect(preview.jobs.publish.needs).toContain("build");diff --git a/src/app/api/worktrees/deferred.rs b/src/app/api/worktrees/deferred.rsindex c20aaec4c..d08961ae7 100644--- a/src/app/api/worktrees/deferred.rs+++ b/src/app/api/worktrees/deferred.rs@@ -291,27 +291,6 @@ impl App {return;}- #[cfg(windows)]- {- if !params.force- && crate::worktree::checkout_has_dirty_files(- &space.checkout_path,- params.trust_repository,- )- .unwrap_or(false)- {- Self::send_api_response(- respond_to,- encode_error(- id,- "dirty_worktree_requires_force",- crate::worktree::worktree_dirty_remove_message(&space.checkout_path),- ),- );- return;- }- }-let workspace_internal_id = self.state.workspaces[ws_idx].id.clone();let checkout_key = crate::worktree::canonical_or_original(&space.checkout_path);if self@@ -343,6 +322,28 @@ impl App {return;}+ // After the in-flight check: a running removal makes the checkout look dirty.+ #[cfg(windows)]+ {+ if !params.force+ && crate::worktree::checkout_has_dirty_files(+ &space.checkout_path,+ params.trust_repository,+ )+ .unwrap_or(false)+ {+ Self::send_api_response(+ respond_to,+ encode_error(+ id,+ "dirty_worktree_requires_force",+ crate::worktree::worktree_dirty_remove_message(&space.checkout_path),+ ),+ );+ return;+ }+ }+let shutdown_panes =if Self::should_shutdown_workspace_terminal_runtimes_for_worktree_remove(params.force) {self.shutdown_workspace_terminal_runtimes_for_worktree_remove(ws_idx)