From 2ff34954a0fc887f8a6ec242f03497cea6472faf Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 5 Oct 2026 08:24:37 +0000 Subject: [PATCH] Fix a flaky terminal test (#65160) CI example: https://github.com/zed-industries/zed/actions/runs/37274127321/job/111647574180?pr=65158 `true` could exit before the test checked for active PTY resources. The ACP completion task releases those resources immediately after exit, so correct cleanup could fail the assertion. Release Notes: - N/A --- crates/agent/src/agent.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/agent/src/agent.rs b/crates/agent/src/agent.rs index a3d072cfd04..68969025489 100644 --- a/crates/agent/src/agent.rs +++ b/crates/agent/src/agent.rs @@ -4070,7 +4070,7 @@ mod internal_tests { let task = cx.update(|cx| { tool.run( ToolInput::resolved(SandboxedTerminalToolInput { - command: "true".to_string(), + command: "read -r line