From f7096ce84f01365a38396445d9d61ec630379e00 Mon Sep 17 00:00:00 2001 From: Yoann Aubineau Date: Mon, 20 Apr 2026 14:20:01 +0200 Subject: [PATCH 1/3] [Arc] Add command to reset all tabs in current space --- extensions/arc/CHANGELOG.md | 4 +++ extensions/arc/package.json | 11 +++++++- extensions/arc/src/reset-space-tabs.ts | 35 ++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 extensions/arc/src/reset-space-tabs.ts diff --git a/extensions/arc/CHANGELOG.md b/extensions/arc/CHANGELOG.md index 65a24c1663f..e50d2b8a885 100644 --- a/extensions/arc/CHANGELOG.md +++ b/extensions/arc/CHANGELOG.md @@ -1,5 +1,9 @@ # Arc Changelog +## [New Features] - 2026-04-20 + +- Added `Reset all tabs in current space` command to reset all tabs in the currently active space (disabled by default). + ## [Security Fix] - 2026-03-17 - Bump lodash/lodash-es to fix prototype pollution vulnerability (CVE-2025-13465) diff --git a/extensions/arc/package.json b/extensions/arc/package.json index 7c328391140..357f5580eb4 100644 --- a/extensions/arc/package.json +++ b/extensions/arc/package.json @@ -43,7 +43,8 @@ "gdsmith", "tama_harrison", "pavelas", - "mchoun" + "mchoun", + "yoann_aubineau" ], "pastContributors": [ "pomdtr", @@ -484,6 +485,14 @@ "description": "Open a new easel", "mode": "no-view", "disabledByDefault": true + }, + { + "name": "reset-space-tabs", + "title": "Reset All Tabs in Current Space", + "subtitle": "Arc", + "description": "Reset all tabs in the currently active space", + "mode": "no-view", + "disabledByDefault": true } ], "tools": [ diff --git a/extensions/arc/src/reset-space-tabs.ts b/extensions/arc/src/reset-space-tabs.ts new file mode 100644 index 00000000000..5d6164f81f5 --- /dev/null +++ b/extensions/arc/src/reset-space-tabs.ts @@ -0,0 +1,35 @@ +import { closeMainWindow, showToast, Toast } from "@raycast/api"; +import { runAppleScript } from "@raycast/utils"; + +function runAppleScriptAction() { + return runAppleScript(` + tell application "Arc" + if (count of windows) is 0 then + make new window + end if + activate + end tell + delay (0.5) + tell application "Arc" + activate + end tell + + tell application "System Events" + tell process "Arc" + click menu item "Reset all tabs in this Space" of menu "Tabs" of menu bar 1 + end tell + end tell + `); +} + +export default async function command() { + try { + await runAppleScriptAction(); + } catch { + await closeMainWindow(); + await showToast({ + style: Toast.Style.Failure, + title: "Failed to reset tabs in current space", + }); + } +} From 3c677138a18a388b9f9920e61d2c47f6b49c6d55 Mon Sep 17 00:00:00 2001 From: Yoann Aubineau <304520+YoannAubineau@users.noreply.github.com> Date: Mon, 20 Apr 2026 14:25:56 +0200 Subject: [PATCH 2/3] Replace hard coded date with {PR_MERGE_DATE} Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- extensions/arc/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/arc/CHANGELOG.md b/extensions/arc/CHANGELOG.md index e50d2b8a885..035630e855c 100644 --- a/extensions/arc/CHANGELOG.md +++ b/extensions/arc/CHANGELOG.md @@ -1,6 +1,6 @@ # Arc Changelog -## [New Features] - 2026-04-20 +## [New Features] - {PR_MERGE_DATE} - Added `Reset all tabs in current space` command to reset all tabs in the currently active space (disabled by default). From 3ba6248510486f3ff29a1120fc4daaeac5b4f2e9 Mon Sep 17 00:00:00 2001 From: raycastbot Date: Fri, 24 Apr 2026 10:53:08 +0000 Subject: [PATCH 3/3] Update CHANGELOG.md --- extensions/arc/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/arc/CHANGELOG.md b/extensions/arc/CHANGELOG.md index 035630e855c..a012aee52aa 100644 --- a/extensions/arc/CHANGELOG.md +++ b/extensions/arc/CHANGELOG.md @@ -1,6 +1,6 @@ # Arc Changelog -## [New Features] - {PR_MERGE_DATE} +## [New Features] - 2026-04-24 - Added `Reset all tabs in current space` command to reset all tabs in the currently active space (disabled by default).