Skip to content

[Secret Browser Commands] add ChatGPT Atlas, etc - #22348

Merged
raycastbot merged 13 commits into
raycast:mainfrom
chrismessina:secret-browser-commands/sync-20251022-1dad2ae
Oct 28, 2025
Merged

raycastbot merged 13 commits into
raycast:mainfrom
chrismessina:secret-browser-commands/sync-20251022-1dad2ae

Conversation

@chrismessina

Copy link
Copy Markdown
Contributor
  • Feature: Add support for ChatGPT Atlas
  • Enhancement: Update dependencies
    • Updated @raycast/api from 1.99.2 to 1.103.4 for latest features
    • Updated @raycast/utils from 1.17.0 to 2.2.1
    • Upgraded @raycast/eslint-config to 2.1.1 for improved linting## Description
  • Enhancement: Add browser compatibility for each URL
  • Enhancement: Allow selecting browser from dropdown menu to filter list of compatible URLs
  • Enhancement: Add details sidebar for each path, including description, browser and platform compatibility, stability, and whether it's a debug URL
  • Enhancement: Add actions to pin/unpin paths and ship with the most useful paths Starred by default
  • Documentation: Expand README with compatible browsers list and Chromium source references

Screenshots

screenshot-1 screenshot-2 screenshot-3

Checklist

- Added ChatGPT Atlas as a new browser option in the preferences menu
- Updated @raycast/api from 1.99.2 to 1.103.4 for latest features
- Updated @raycast/utils from 1.17.0 to 2.2.1
- Upgraded @raycast/eslint-config to 2.1.1 for improved linting
- Added browser compatibility tracking for each URL in the dataset
- Implemented browser dropdown filter to show only compatible URLs
- Created new task for details sidebar feature that will show URL descriptions, compatibility info, and debug status
- Removed legacy paths.ts file in preparation for new data structure
- Updated TODO list to reflect completed browser compatibility features and new sidebar task
- Added 30+ new browser debug URLs including actor internals, autofill ML, color pipeline, and WebRTC diagnostics
- Added platform-specific filtering with new excludedPlatforms and platforms properties for URLs
- Added chrome-untrusted:// URLs for secure context debugging (compose, print, privacy sandbox)
- Added comprehensive set of debug/crash testing commands with detailed descriptions
- Added comprehensive browser compatibility list to README with URL scheme details
- Implemented URL scheme handling to support both internal and display schemes (e.g. atlas:// vs chrome://)
- Added detailed metadata panel showing browser compatibility, platform support, and URL type
- Implemented starring system with default starred paths for quick access
- Fixed URL opening to preserve special schemes like chrome-untrusted://
- Improved indentation and line breaks in filteredCommands chain for better readability
- Split long ternary expression for icon configuration across multiple lines
- Fixed alignment in platform display name ternary expression
- Maintained consistent code style throughout the file
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: secret-browser-commands Issues related to the secret-browser-commands extension platform: macOS platform: Windows OP is author The OP of the PR is the author of the extension labels Oct 22, 2025
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@chrismessina

Copy link
Copy Markdown
Contributor Author

@greptile could you take a look?

@greptile-apps greptile-apps Bot 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

Summary

This PR adds ChatGPT Atlas browser support and significantly enhances the extension with browser filtering, URL metadata, and starring functionality. The changes move away from a global preference for browser selection to a dynamic dropdown menu in the UI, providing better UX.

Major Changes:

  • Added ChatGPT Atlas browser with proper scheme handling (atlas:// display, chrome:// for opening)
  • Replaced global preferences with in-UI browser dropdown using useLocalStorage
  • Added extensive browser commands (~100+ new URLs) with platform/browser compatibility metadata
  • Implemented starring/pinning functionality with 5 default starred commands
  • Enhanced UI with detail sidebar showing URL metadata, compatibility, and debug status
  • Updated dependencies (@raycast/api to 1.103.4, @raycast/utils to 2.2.1)

Critical Issues Found:

  • openUrlInBrowser.ts references a showConfirmationHUD preference that no longer exists in package.json
  • Custom Preferences interface violates Raycast guidelines (should be auto-generated)
  • Non-null assertions on optional appName fields without safety checks
  • README still references deleted preferences setup section

Confidence Score: 2/5

  • This PR has critical runtime issues that will cause the extension to fail or behave unexpectedly
  • Score reflects multiple logical errors: (1) code attempts to read a non-existent preference which will fail, (2) unsafe use of non-null assertions on optional fields that could pass undefined to functions, (3) incorrect Preferences interface implementation violating Raycast guidelines, and (4) documentation inconsistencies
  • Pay close attention to src/utils/openUrlInBrowser.ts and src/components/OpenInActions.tsx - both have critical bugs that need fixing before merge

Important Files Changed

File Analysis

Filename Score Overview
extensions/secret-browser-commands/README.md 2/5 Updated with browser list and sources, but Setup section references non-existent preferences
extensions/secret-browser-commands/src/utils/openUrlInBrowser.ts 1/5 References non-existent preference and defines Preferences interface incorrectly
extensions/secret-browser-commands/src/components/OpenInActions.tsx 2/5 Uses non-null assertions on optional appName field without safety checks
extensions/secret-browser-commands/src/listCommands.tsx 4/5 Added browser dropdown, filtering, and starring functionality - well implemented with proper safety checks
extensions/secret-browser-commands/src/types/browsers.ts 5/5 Added ChatGPT Atlas and proper browser definitions with schemes

13 files reviewed, 5 comments

Edit Code Review Agent Settings | Greptile

@chrismessina
chrismessina marked this pull request as draft October 22, 2025 22:48
- Removed preferred browser selection from preferences and setup instructions
- Updated OpenInBrowserSubmenu to only show browsers that have a defined appName
- Simplified URL opening logic by removing preference check for confirmation HUD
- Modified README to reflect that URLs can be opened in any supported Chromium browser
- Added type safety by explicitly casting browser.appName as string when defined
- Improved browser filtering
@chrismessina

Copy link
Copy Markdown
Contributor Author

@greptile could you take another look?

@greptile-apps greptile-apps Bot 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.

I'll review the PR more carefully.

Looking at the changes, this is a significant enhancement to the Secret Browser Commands extension:

Key Improvements

  1. ChatGPT Atlas Support: Added support for a new Chromium-based browser with proper scheme handling (atlas:// for display, chrome:// for opening)

  2. Browser Compatibility System:

    • Added supportedBrowsers array to each command
    • Filters commands based on selected browser
    • Much more user-friendly than showing all commands regardless of compatibility
  3. Platform Detection:

    • Added platform compatibility filtering (Windows, macOS, Linux)
    • Commands now respect platforms and excludedPlatforms properties
  4. Starring System:

    • Users can star frequently-used commands
    • Starred commands appear at the top of the list
    • Good default starred commands chosen (extensions, bookmarks, downloads, etc.)
  5. Enhanced Metadata:

    • Detail sidebar now shows browser compatibility
    • Platform compatibility information
    • Type (Standard vs Debug/Internal)
    • Starred status
  6. Better UX:

    • Removed global preferences in favor of per-session browser selection
    • Browser dropdown in search bar for quick switching
    • More intuitive command filtering

Potential Issues

  1. Data Duplication: In src/data/paths.ts, you've kept all the old command definitions AND added new ones. This could lead to maintenance issues. Consider if some of these are truly duplicates.

  2. Large Diff: The package-lock.json changes are massive due to dependency updates. These look fine but are hard to review thoroughly.

  3. Chrome-untrusted URLs: These new URLs (like chrome-untrusted://compose) are interesting additions but might confuse users who don't understand the security implications. The descriptions could be more clear.

  4. Debug Commands: The crash/hang commands (badcastcrash, gpucrash, etc.) are now included. While marked as debug-only, having easily-accessible commands that crash the browser could be problematic. Consider if these should be behind an additional toggle.

Suggestions

Could you clarify if the debug/crash commands (like `chrome://crash`, `chrome://gpucrash`) should be hidden by default? These could disrupt the user experience if triggered accidentally.

Also, consider adding a note in the README about what "chrome-untrusted" URLs mean, as these are security-isolated contexts that users might not understand.

Overall, this is a solid enhancement that makes the extension much more useful! The browser-specific filtering and starring system are particularly nice additions.

- Added new preferences to hide potentially dangerous debug URLs and chrome-untrusted:// URLs by default
- Updated README with detailed warnings about risks of debug commands (crashes, hangs) and untrusted URLs
- Enhanced chrome-untrusted:// URL descriptions to explain their security context and limitations
- Removed raw paths.md data file in favor of structured TypeScript definitions
- Added isUntrusted flag to browser commands for filtering
@chrismessina

Copy link
Copy Markdown
Contributor Author

@greptile good calls! can you look at commit 49ed4d939760a4dc14926af0f0cd356327052b42?

@greptile-apps greptile-apps Bot 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.

I'll search for information about that specific commit.I can't find that specific commit directly through search. However, I can help you analyze it if you can share what that commit contains or what changes it introduces. From the context of this PR, it looks like you're working on the Secret Browser Commands extension.

Based on the PR diff I can see, the main changes in this PR include:

  1. Added ChatGPT Atlas browser support with a smart scheme handling (uses chrome:// internally but displays as atlas://)
  2. Enhanced browser compatibility system with platform detection (Windows/macOS/Linux)
  3. Added starred/pinned commands feature with sensible defaults
  4. Added debug and untrusted URL filtering (both hidden by default for safety)
  5. Comprehensive browser command metadata including platform compatibility, browser support, and safety warnings
  6. Improved UI with browser dropdown filter and detailed command metadata sidebar

These are all solid additions! The safety warnings for debug/crash commands and untrusted URLs are particularly important. Is there something specific about commit 49ed4d93 you'd like me to review or provide feedback on? If you can describe what that commit does, I can give you more targeted feedback!

@chrismessina

chrismessina commented Oct 23, 2025 •

Copy link
Copy Markdown
Contributor Author

These are all solid additions! The safety warnings for debug/crash commands and untrusted URLs are particularly important. Is there something specific about commit 49ed4d93 you'd like me to review or provide feedback on? If you can describe what that commit does, I can give you more targeted feedback!

@greptile Yes — I took all your feedback and to hide debug and untrusted URLs by default, and also updated the README.

Perhaps you can access this?

f08fb94 (#22348)

@greptile-apps greptile-apps Bot 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.

I don't have access to that specific commit link, but based on the PR diff you've shared, I can see the excellent implementation! Here's my feedback on the changes:

✅ Excellent Implementation

1. Safety by Default - Perfect approach:

{
  name: "hideDebugUrls",
  type: "checkbox",
  default: true,  // ✅ Hiding dangerous commands by default
  title: "Hide Debug URLs",
  label: "Hide debug/crash commands",
  description: "Hide potentially dangerous debug commands..."
}

2. Clear Warning Labels - Great UX:

  • The README warnings with ⚠️ emoji are very visible
  • "DEBUG ONLY" and "ADVANCED" prefixes in descriptions are clear
  • The distinction between debug commands and untrusted URLs is well explained

3. Comprehensive Coverage:

  • Added all the debug/crash commands (badcastcrash, gpucrash, kill, etc.)
  • Added chrome-untrusted:// URLs with proper context
  • Proper filtering in the UI based on preferences

4. Documentation - Excellent additions:

  • Sources section with Chromium links
  • Compatible browsers list
  • Platform-specific notes
  • Clear explanation of debug vs untrusted URLs

🎯 Minor Suggestions

1. The preference descriptions could be slightly more concise:

// Current
"Hide potentially dangerous debug commands that can crash or hang the browser. These are intended for developers testing crash reporting and browser stability."

// Suggestion (shorter, still clear)
"Hide debug commands that can crash/hang the browser (intended for testing only)"

2. Consider grouping in the UI (if not already done):
If starred items are at the top, you might also want visual separators:

  • ⭐ Starred
  • 🌐 Standard Commands
  • 🐛 Debug Commands (if shown)
  • ⚠️ Untrusted URLs (if shown)

3. README could mention the preferences:

## Safety Features

This extension hides potentially dangerous commands by default:
- **Debug/Crash commands** - Hidden by default (can be shown in preferences)
- **Untrusted URLs** - Hidden by default (can be shown in preferences)

Access these settings in Raycast → Extensions → Secret Browser Commands → Preferences

🎉 Overall Assessment

This is production-ready! The implementation prioritizes user safety while still allowing advanced users to access everything. The warnings are clear, the defaults are safe, and the documentation is thorough.

Great job incorporating all the feedback! 🚀

@chrismessina
chrismessina marked this pull request as ready for review October 23, 2025 23:45

@greptile-apps greptile-apps Bot 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 enhances the Secret Browser Commands extension by adding ChatGPT Atlas support, implementing browser/platform filtering, and adding comprehensive safety controls for debug and untrusted URLs.

Key Changes

  • Browser Support: Added ChatGPT Atlas with proper displayScheme handling (atlas:// display, chrome:// internally)
  • Enhanced Filtering: Browser dropdown to filter compatible URLs, platform-based filtering (macOS/Windows/Linux)
  • Safety Features: Two new preferences to hide debug URLs (crash/hang commands) and chrome-untrusted:// URLs, both hidden by default
  • User Experience: Star/unstar functionality for favorite commands, detail sidebar with compatibility info, default starred commands
  • Dependencies: Updated @raycast/api (1.99.2 → 1.103.4), @raycast/utils (1.17.0 → 2.2.1), @raycast/eslint-config (2.1.1)
  • Documentation: Comprehensive README warnings about dangerous debug commands, source attribution to Chromium codebase

Issues Found

  • Manual Preferences interface definition in listCommands.tsx should be removed (autogenerated by Raycast)

Confidence Score: 4/5

  • This PR is safe to merge after fixing the manual Preferences interface definition.
  • The PR is well-implemented with thoughtful safety controls and comprehensive documentation. One syntax issue needs fixing: the manual Preferences interface should be removed since it's autogenerated. The dependency updates are appropriate, the new features are well-tested (as indicated by the PR author), and the code follows best practices.
  • Pay attention to extensions/secret-browser-commands/src/listCommands.tsx - remove the manual Preferences interface definition.

Important Files Changed

File Analysis

Filename Score Overview
extensions/secret-browser-commands/src/listCommands.tsx 4/5 Main component with proper filtering logic, preferences handling, and browser selection. Defines Preferences interface that should be auto-generated.
extensions/secret-browser-commands/package.json 5/5 Proper dependency updates, platform restrictions, and well-structured preferences with appropriate defaults.
extensions/secret-browser-commands/src/types/browsers.ts 5/5 Well-structured browser definitions with support for Atlas and Comet, properly using displayScheme for correct URL presentation.
extensions/secret-browser-commands/README.md 5/5 Comprehensive documentation with clear warnings about debug URLs and proper source attribution.
extensions/secret-browser-commands/src/data/paths.ts 5/5 Extensive browser command data with proper categorization, browser compatibility, and safety flags.

13 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@chrismessina

Copy link
Copy Markdown
Contributor Author

I've removed the unnecessary preferences definition!

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown