mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4221] [CLOSED] [GUI] /?q= links fill in the question instead of sending it with the saved API key and MCP tools #4956
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4956
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
52fddefWeb 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(main4b9e05a2, lines 1102-1104): opening/?q=<text>put the text into the input and calledsend()on load. Any page can link tohttp://127.0.0.1:<port>/?q=...; the request then goes out with the API keysaved 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 repositorybuilds
?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.