Skip to content

fix(extension): fix zen-browser opening new tab in private window in windows - #22767

Merged
raycastbot merged 4 commits into
raycast:mainfrom
Diwanshumidha:main
Nov 10, 2025
Merged

raycastbot merged 4 commits into
raycast:mainfrom
Diwanshumidha:main

Conversation

@Diwanshumidha

Copy link
Copy Markdown
Contributor

Description

Fix: #22436

In windows zen-browser opens new tab in private window instead of default profile.

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: zen-browser Issues related to the zen-browser extension AI Extension platform: macOS labels Nov 9, 2025
@raycastbot

ghost commented Nov 9, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your first contribution! 🎉

🔔 @Keyruu @theherk @walker-tx @Jimmy-b36 @sdaza @elliothco @ridemountainpig @Davidferl @sjasct @pernielsentikaer @Zheckan you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.

ghost left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This PR fixes a Windows-specific issue in the Zen Browser Raycast extension where new tabs were incorrectly opening in private/troubleshoot mode instead of the normal profile. The solution implements platform detection to use PowerShell's Start-Process command on Windows while maintaining the existing Action.Open behavior on macOS. The fix affects the NewTabAction and HistoryItemAction components in ZenActions.tsx, replacing the Raycast Action.Open with custom onAction handlers that detect the platform and execute the appropriate command. This ensures that Zen Browser launches correctly on Windows with the user's default profile and extensions loaded. The PR also adds a contributor acknowledgment and updates the changelog following the repository's standard format.

Important Files Changed

Filename Score Overview
extensions/zen-browser/package.json 5/5 Added new contributor "Diwanshumidha" to acknowledge contribution to the Windows fix
extensions/zen-browser/src/components/ZenActions.tsx 4/5 Implemented platform-specific logic to fix Windows private mode issue using PowerShell commands
extensions/zen-browser/CHANGELOG.md 4/5 Added changelog entry documenting the Windows fix with proper merge date templating

Confidence score: 4/5

  • This PR addresses a specific Windows compatibility issue with a targeted platform-specific solution that maintains backward compatibility
  • Score reflects well-structured implementation but complexity of platform-specific logic introduces some risk of edge cases or environment-specific issues
  • Pay close attention to the ZenActions.tsx file which contains the core platform detection and PowerShell execution logic

Additional Comments (1)

  1. extensions/zen-browser/CHANGELOG.md, line 29 (link)

    style: Empty changelog entry title should be removed

3 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@pernielsentikaer

ghost commented Nov 9, 2025

Copy link
Copy Markdown
Contributor

Hi @Diwanshumidha👋

Thanks for your contribution 🔥

@Keyruu what do you think here?

@pernielsentikaer pernielsentikaer self-assigned this Nov 9, 2025

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 61c928e into raycast:main Nov 10, 2025
@github-actions

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension extension fix / improvement Label for PRs with extension's fix improvements extension: zen-browser Issues related to the zen-browser extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Zen Browser] Opens in Private Mode on Windows

3 participants