extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Arc] Search Tabs

Open jasenwar opened this issue 1 year ago β€’ 13 comments

Extension

https://www.raycast.com/the-browser-company/arc

Raycast Version

1.101.1

macOS Version

15.5

Description

When searching tabs, it finds the tabs, but when I click on the tab in the search it does not direct me to that tab in Arc.

Steps To Reproduce

simply search tabs and hit enter on one of the tabs found and it will not direct to that tab in the arc browser

Current Behaviour

No response

Expected Behaviour

No response

jasenwar avatar Jul 23 '25 13:07 jasenwar

Thank you for opening this issue!

πŸ”” @thomaspaulmann @zach-fuller @ankitchouhan1020 @pernielsentikaer @danpalmer @rgrunberg @tleo19 @loris @bdsqqq @xilopaint @jayeshbhole @hinzed1127 @omar-salama @underscoregeb @ridemountainpig @nebbles @alanxmay @gdsmith @EasyKey5 you might want to have a look.

πŸ’‘ Author and Contributors commands

The author and contributors of the-browser-company/arc can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Jul 23 '25 13:07 raycastbot

Similar issue on Chrome.

karolre avatar Aug 05 '25 12:08 karolre

+1 on this issue

viv96 avatar Sep 10 '25 23:09 viv96

+1 - This is a major productivity killer

This bug significantly impacts daily workflow efficiency. The whole value proposition of the Arc + Raycast integration is seamless keyboard-driven tab switching without breaking focus.

Current broken workflow:

  1. ⌘+Space β†’ Type tab name β†’ Hit Enter β†’ Nothing happens
  2. Now forced to manually activate Arc's search (⌘+T)
  3. Re-type the same search query
  4. Navigate to tab

Expected workflow:

  1. ⌘+Space β†’ Type tab name β†’ Hit Enter β†’ Instantly switch to tab

This adds 2-3 extra steps and cognitive overhead to what should be a sub-second operation. When you're doing this dozens of times per day, the productivity loss compounds significantly.

Impact:

  • Forces users to abandon efficient keyboard shortcuts for slower mouse navigation
  • Breaks flow state with unnecessary context switching
  • Makes the Raycast Arc extension essentially useless for its primary function

This seems like a core functionality regression that should be prioritized. Many users have built their entire browser workflow around this integration.

Environment:

  • Affecting multiple users across different macOS versions
  • Reproducible on both Arc and Chrome extensions (per @karolre's comment)

Would love to see this get some developer attention soon! πŸ™

valeedmalik avatar Oct 05 '25 22:10 valeedmalik

I was able to look through the source and I found the following in actions.tsx.

function runAppleScriptActionOnTab(tabId: string, action: string, activate = false) {
  return runAppleScript(`
    tell application "Arc"
    if (count of windows) is 0 then
    make new window
  end if
      set tabIndex to 1
      repeat with aTab in every tab of first window
        if id of aTab is "${tabId}" then
          tell tab tabIndex of window 1 to ${action}
          ${activate ? "activate" : ""}
          return tabIndex
        end if
        set tabIndex to tabIndex + 1
      end repeat
    end tell
  `);
}

I was then able to console log the action script and then paste it into Mac Script Editor.

Running the action script in Script Editor worked perfectly.

I believe there is an issue with how raycast it running the script.

This is beyond me now.

philipmclifton avatar Oct 06 '25 19:10 philipmclifton

I came to the conclusion that it was something to do with permissions, aka ray cast not having the permissions to run the apple script.

My solution was to completely uninstall raycast (easier said then done) but AI helped me

Perfect! I've successfully uninstalled Raycast and removed all its support files from your Mac. Here's a summary of what was removed:

Core Raycast Files Removed:
β€’  βœ… Raycast application (was not found in Applications folder)
β€’  βœ… Application support files (~/Library/Application Support/com.raycast.macos)
β€’  βœ… Shared application support (~/Library/Application Support/com.raycast.shared)
β€’  βœ… WebKit data (~/Library/WebKit/com.raycast.macos)
β€’  βœ… Preferences file (~/Library/Preferences/com.raycast.macos.plist)
β€’  βœ… Cache files (~/Library/Caches/com.raycast.macos)
β€’  βœ… HTTP storage (~/Library/HTTPStorages/com.raycast.macos.binarycookies)
β€’  βœ… Application Scripts (~/Library/Application Scripts/SY64MV22J9.com.raycast.macos.shared)
β€’  βœ… Group Containers (~/Library/Group Containers/SY64MV22J9.com.raycast.macos.shared)
β€’  βœ… App Intent containers (~/Library/Containers/com.raycast.macos.RaycastAppIntents)
β€’  βœ… Crash logs (~/Library/Caches/SentryCrash/Raycast)
β€’  βœ… Biome shortcuts data
β€’  βœ… Homebrew cache file

It seams to be working. I don't know for sure, but I think i might have installed raycast originally with Brew. I didn't do this time around. I downloaded from the website.

philipmclifton avatar Oct 06 '25 20:10 philipmclifton

Scratch that, it stopped working again....

philipmclifton avatar Oct 06 '25 20:10 philipmclifton

Sorry about the noise.

I have finally found the issue.

I realised that reload tab, and close tab both run the same action script. There are three values passed in, close, select or reload.

Noting that reload and close worked. I realised it must just be the way the method is called.

function OpenInArcAction(props: { tabOrUrl: Tab | string }) {
  async function handleAction() {
    try {
      if (typeof props.tabOrUrl === "string") {
        await open(props.tabOrUrl, "company.thebrowser.Browser");
      } else {
        try {
          await selectTab(props.tabOrUrl);
          await closeMainWindow(); // THIS LINE IS MOVED
        } catch (e) {
          if (props.tabOrUrl.url) {
            await open(props.tabOrUrl.url, "company.thebrowser.Browser");
          } else {
            throw e;
          }
        }
      }
    } catch (e) {
      console.error(e);
      await showFailureToast(e, { title: "Failed opening in Arc" });
    }
  }

  return <Action icon={Icon.Globe} title="Open in Arc" onAction={handleAction} />;
}

Note:

          await closeMainWindow(); // THIS LINE IS MOVED

Moving this line (from above a few lines) to below the select tab function call will make the problen go away.

Fork extension, run dev commands. Move line. and enjoy.

philipmclifton avatar Oct 06 '25 21:10 philipmclifton

Wow, this great development - @philipmclifto with the root cause and solution! So if I understand correctly

// Current (broken):
await selectTab(props.tabOrUrl);
await closeMainWindow(); // Closes before selectTab completes

// Should be:
await selectTab(props.tabOrUrl);
await closeMainWindow(); // Move this after selectTab finishes

Can we get this merged ASAP? This has been broken since July 2024 and the fix is literally moving one line. The productivity impact for Arc users is significant and the solution is now clearly identified. @thomaspaulmann @zach-fuller @ankitchouhan1020 - would love to see this prioritized given we now have both the root cause and solution! πŸ™

valeedmalik avatar Oct 07 '25 02:10 valeedmalik

Sorry, Β the way I wrote it was Β confused. The correct way round is to open the tab before closing the main window.Sent from my iPhoneOn 7 Oct 2025, at 03:16, Valeed Malik @.***> wrote:ο»Ώvaleedmalik left a comment (raycast/extensions#20607) Wow, this great development - @philipmclifto with the root cause and solution! So if I understand correctly // Current (broken): await selectTab(props.tabOrUrl); await closeMainWindow(); // Closes before selectTab completes

// Should be: await selectTab(props.tabOrUrl); await closeMainWindow(); // Move this after selectTab finishes Can we get this merged ASAP? This has been broken since July 2024 and the fix is literally moving one line. The productivity impact for Arc users is significant and the solution is now clearly identified. @thomaspaulmann @zach-fuller @ankitchouhan1020 - would love to see this prioritized given we now have both the root cause and solution! πŸ™

β€”Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

philipmclifton avatar Oct 07 '25 05:10 philipmclifton

Any updates on this?

nklswbr avatar Oct 24 '25 08:10 nklswbr

It stopped working for me yesterday again :(

alesmartan avatar Dec 06 '25 02:12 alesmartan

I found weird behavior here:

If I click the "Search Tabs" command (⌘+K) and select "Reload Tab", and then immediately hit "Enter", the tab gets opened. However, if I don't run "Reload Tab" beforehand, it doesn't work.

Could someone help here please?

alesmartan avatar Dec 06 '25 02:12 alesmartan