Draft
Conversation
- Add queryUrl and autoSubmit fields to AiService type - Update ai-services.json with queryUrl for ChatGPT, Claude, Perplexity - Update normalizeServices to allow entries with queryUrl without requiring selectors - Update action/aiPrompt.ts to use URL query when queryUrl is present - Add unit tests for new behavior Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/e86cfbca-0afe-4e5e-884f-a8400da9d40e Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/e86cfbca-0afe-4e5e-884f-a8400da9d40e Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Change AiPrompt input method to URL query
feat: AiPromptコマンドの入力方法をDOM操作からURLクエリへ変更
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
対応サービス(ChatGPT・Claude・Perplexity)のAiPromptコマンドで、プロンプト入力をDOM操作ではなくURLクエリパラメータ経由で行うよう変更。Perplexityはページ遷移と同時に処理されるため submit クリック不要。
変更内容
型・データ定義
AiService型にqueryUrl?: string(%sプレースホルダー付きURLテンプレート)とautoSubmit?: booleanを追加ai-services.jsonに各サービスのqueryUrlを追加:https://chatgpt.com/?prompt=%s(autoSubmit: false)https://claude.ai/new?q=%s(autoSubmit: false)https://www.perplexity.ai/search/new?q=%s(autoSubmit: true)normalizeServicesの緩和queryUrlが存在する場合、inputSelectors/submitSelectorsを必須としないよう変更。action/aiPrompt.tsのロジック変更SidePanelモードでも、
pending.urlに展開済みURLを使用することで正しく動作する。