[PR #4221] [CLOSED] [GUI] /?q= links fill in the question instead of sending it with the saved API key and MCP tools #4956

Closed
opened 2026-11-07 16:31:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4221
Author: @schmittcn
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: pr/web-q-no-autosend


📝 Commits (1)

  • 52fddef Web page: /?q=... only fills in the question; the user sends it. Sent by itself, a link from any page ran a request with this browser's saved API key and its MCP tools

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 serve/web/app.js (+4 -2)

📄 Description

Problem and result

serve/web/app.js (main 4b9e05a2, lines 1102-1104): opening /?q=<text> put the text into the input and called
send() on load. Any page can link to http://127.0.0.1:<port>/?q=...; the request then goes out with the API key
saved in that browser and the MCP tools turned on there, so a link could make the model act with the owner's tools
without the owner pressing Send. Now the shortcut only fills in the input and focuses it; the user sends it.

Raised in the review of a third-party Omarchy plugin that starts Strata (omacom/omarchy-plugin-marketplace#12853),
where it is already public.

Approach

One line: send() replaced by $("input").focus(), and the comment says why. No other code in the repository
builds ?q= links (checked strata_cli, strata_control, apps, serve, tools).

Validation

Passed: node --check serve/web/app.js.
Not run: a browser click-through.

Limits

The shortcut still works as a prefill; a confirmation dialog would be an alternative if auto-send is wanted for
links from Strata's own apps.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4221 **Author:** [@schmittcn](https://github.com/schmittcn) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/web-q-no-autosend` --- ### 📝 Commits (1) - [`52fddef`](https://github.com/Niko1221/Strata/commit/52fddef38c3eb5d1031d0f63da3012362a240212) Web page: /?q=... only fills in the question; the user sends it. Sent by itself, a link from any page ran a request with this browser's saved API key and its MCP tools ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `serve/web/app.js` (+4 -2) </details> ### 📄 Description ## Problem and result `serve/web/app.js` (main 4b9e05a2, lines 1102-1104): opening `/?q=<text>` put the text into the input and called `send()` on load. Any page can link to `http://127.0.0.1:<port>/?q=...`; the request then goes out with the API key saved in that browser and the MCP tools turned on there, so a link could make the model act with the owner's tools without the owner pressing Send. Now the shortcut only fills in the input and focuses it; the user sends it. ## Related discussion Raised in the review of a third-party Omarchy plugin that starts Strata (omacom/omarchy-plugin-marketplace#12853), where it is already public. ## Approach One line: `send()` replaced by `$("input").focus()`, and the comment says why. No other code in the repository builds `?q=` links (checked strata_cli, strata_control, apps, serve, tools). ## Validation **Passed:** `node --check serve/web/app.js`. **Not run:** a browser click-through. ## Limits The shortcut still works as a prefill; a confirmation dialog would be an alternative if auto-send is wanted for links from Strata's own apps. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:31:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4956
No description provided.