Repository navigation
Fix MCP send_http_request ignoring environmentId - #654
Merged
Merged
Conversation
|
Thanks for the PR. This appears to match Yaak's contribution policy and is awaiting review by @gschier. This only means the PR is in scope for review. It does not mean the change has been reviewed or accepted for merge. |
|
gschier
approved these changes
Sep 15, 2026
gschier
left a comment
Member
There was a problem hiding this comment.
Nice, thanks for catching this!
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.
Summary
The MCP
send_http_requesttool advertisesenvironmentIdbut discards it, so an explicit environment does not take precedence over the active selection. Forward the ID through the plugin API to the desktop and CLI hosts, validate it before sending, and preserve the current fallback when omitted. The override applies only to that send and does not change the active selection.Submission
CONTRIBUTING.md.Explicit permission feedback item (required if not a bug fix): Not applicable — fixes an already-advertised parameter.
No UI is changed; screenshots are not required for this change.
Validation
ev_staging; the fixed handler forwards it. Both preserve an omitted ID. Regression tests also cover concurrent overrides, a missing request and host errors.X-Environment: b, omission sendsa, and the base environment sendsglobal. Invalid IDs produce no additional request or response history.cargo check -p yaak-cli -p yaak-app-client --features yaak-app-client/wry, the API/runtime/MCP builds, MCP typecheck and repository lint pass. Six focused JS tests pass; the earlier full JS run passed 626 tests.The desktop interaction scenario and complete Rust workspace suite have not been run. An extra standalone runtime
tsccheck reports errors in unchanged files/configuration; its production build and executable regression test pass.Release coordination: older hosts ignore this new plugin API field. Align the MCP plugin's minimum supported Yaak version with the host release that includes the fix; version numbers are unchanged here.
Related
No issue linked. This fixes the existing per-request argument; environment listing and changing the window's selected environment are separate features.