Skip to content

feat(chatgpt-search): Make query parameters configurable, simplify extension - #22677

Merged
raycastbot merged 3 commits into
raycast:mainfrom
kopach:feat/chatgpt-search
Nov 6, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
kopach:feat/chatgpt-search

Conversation

@kopach

@kopach kopach commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor
  • remove form submit, keep only query submit for simplicity
  • Allow users to add custom query parameters to the ChatGPT Search URL.

Screencast

image

Checklist

Ihor added 2 commits November 5, 2025 15:28
Allow users to add custom query parameters to the ChatGPT Search URL.
The `customQueryParam` preference now accepts a comma-separated list of key-value pairs.
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: chatgpt-search Issues related to the chatgpt-search extension platform: macOS OP is author The OP of the PR is the author of the extension labels Nov 5, 2025
@raycastbot

ghost commented Nov 5, 2025

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@kopach
kopach marked this pull request as ready for review November 5, 2025 14:30
@kopach

ghost commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer, do you know, is there any way to have "alternative submit" (e.g. with Shift+Enter) from main Raycast view? I searched but could find only modifiers for form submit from within extension detailed view. I would like to have "shift" modifier here
image

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 significantly simplifies the ChatGPT Search extension by removing the interactive form UI and converting it to a no-view command pattern. The main changes include eliminating the Form component and useState hooks in favor of direct argument-based execution, removing the form validation hook entirely, and making the query argument required in package.json. The extension now executes searches immediately when provided with query arguments rather than requiring user interaction within Raycast.

Additionally, the PR introduces configurable query parameters through a new extraQueryParams preference that accepts comma-separated key-value pairs, replacing hardcoded URL parameters. The temporary chat preference has been renamed from useTemporaryChat to isTemporaryChat for better clarity, and the ChatGPT app opening option has been removed in favor of always using the default browser.

Important Files Changed

Filename Score Overview
extensions/chatgpt-search/src/chatgpt-search.tsx 3/5 Completely refactored from interactive Form component to simple no-view command that executes search directly from arguments
extensions/chatgpt-search/src/useChatGptSearchForm.ts 5/5 File completely removed as part of form simplification effort
extensions/chatgpt-search/src/executeSearchToOpen.ts 4/5 Enhanced with configurable query parameters support and cleaned up hardcoded values
extensions/chatgpt-search/package.json 4/5 Updated command configuration with required query argument and new extraQueryParams preference
extensions/chatgpt-search/CHANGELOG.md 5/5 Properly documented new features with correct formatting and template string

Confidence score: 3/5

  • This PR introduces significant architectural changes that could impact user experience by removing interactive UI elements
  • Score reflects concerns about the removal of form validation and the shift from interactive to argument-only command execution which may confuse existing users
  • Pay close attention to the main command file (chatgpt-search.tsx) as it completely changes the user interaction pattern from form-based to argument-based execution

5 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@pernielsentikaer

ghost commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

That's currently not possible @kopach

@pernielsentikaer

ghost commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Did you check review from Greptile, do you want to address any of that before merging?

@kopach

ghost commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer got it, thanks. As for review from Greptile, yes, I've checked that. It's good to merge. thanks

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 68d4260 into raycast:main Nov 6, 2025
@github-actions

ghost commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 6, 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

extension: chatgpt-search Issues related to the chatgpt-search extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants