From af7952bde8a48ca0d1259d0281111a76549bd4c6 Mon Sep 17 00:00:00 2001 From: Leo Li Date: Thu, 15 Oct 2026 03:02:16 -0700 Subject: [PATCH] Gallery: the composer-context play finds the computer by its new name #20791 put the machine in the computer button's accessible name ("Computer: This Mac"), so the computer-menu play's exact "Computer" match found nothing and composer-type-scale failed on feat-cmux-next. Co-Authored-By: Claude Opus 5.5 --- webviews/src/agent-session/acpmux/ComposerContext.gallery.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webviews/src/agent-session/acpmux/ComposerContext.gallery.tsx b/webviews/src/agent-session/acpmux/ComposerContext.gallery.tsx index 2b9a33433e2d..78bbd9217427 100644 --- a/webviews/src/agent-session/acpmux/ComposerContext.gallery.tsx +++ b/webviews/src/agent-session/acpmux/ComposerContext.gallery.tsx @@ -68,7 +68,8 @@ const worktreeProps = { }; const openComputer: Play = async (ctx) => { - await ctx.click({ role: "button", name: "Computer" }); + // The button's name carries the machine ("Computer: This Mac", #20791): a narrow strip shows its icon alone. + await ctx.click({ role: "button", name: /^Computer\b/ }); await ctx.waitFor(() => ctx.document.querySelector('[role="menu"] [role="menuitemradio"]')); };