Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extensions/arc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Arc Changelog

## [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).

## [Security Fix] - 2026-03-17

- Bump lodash/lodash-es to fix prototype pollution vulnerability (CVE-2025-13465)
Expand Down
11 changes: 10 additions & 1 deletion extensions/arc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"gdsmith",
"tama_harrison",
"pavelas",
"mchoun"
"mchoun",
"yoann_aubineau"
],
"pastContributors": [
"pomdtr",
Expand Down Expand Up @@ -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": [
Expand Down
35 changes: 35 additions & 0 deletions extensions/arc/src/reset-space-tabs.ts
Original file line number Diff line number Diff line change
@@ -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",
});
}
}