mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3363] [CLOSED] [GUI] Forward Composer Effort To Supported API Models #4591
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#4591
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/3363
Author: @medking82
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:codex/upstream-api-reasoning-effort📝 Commits (3)
e02f218[GUI] Forward Composer Effort To Reasoning API Modelsab57c5dUse Existing OpenRouter Effort Mapping In Direct Chatfe764fa[Docs] Record App0.2.2 API effort validation📊 Changes
6 files changed (+725 additions, -7 deletions)
View changed files
📝
apps/host/server/index.mjs(+5 -4)📝
apps/host/server/model-providers.mjs(+9 -2)➕
apps/host/tests/api-reasoning-effort.test.mjs(+96 -0)📝
apps/host/tests/mock-model-api.mjs(+2 -1)➕
docs/api-reasoning-effort/README.md(+72 -0)➕
docs/api-reasoning-effort/validation-2026-10-22.json(+541 -0)📄 Description
Problem and result
Manual chat with a saved reasoning API model displays the composer's selected effort, but
runRemoteTurndrops it before constructing the outgoing request. The official Off/Low/Medium/High/Max choice now reaches supported OpenAI-chat models. Models with false or unknown reasoning support retain the provider default.Related discussion
None required for this focused host bug fix. Existing reasoning checks cover native/agent paths; this change covers direct saved-API chat.
Approach
Carry
thinkingthrough the direct-chat path and use saved capability metadata or the host's cached server probe. Ignore capability claims supplied in a client selection. OpenAI-compatible requests map Off tononeand Max tohigh; OpenRouter reuses the existing officialOPENROUTER_EFFORTSmapping andreasoning: { effort }format, including Max toxhigh. No new UI levels are introduced. Authentication, history and cancellation remain in the existing request path.Validation
Windows x64, Node v24.12.0, measured 2026-10-22. Current head
fe764fa1ab87ad76f5afec5839d4dd8e347ce0d8adds documentation only; runtime and test inputs remain identical to the exact head below. Source-bound report and JSON receipt include full commands, dependency/input hashes, setup resolutions and limits.Passed:
ab57c5da90b76983fd44b79130acc17d5a735508:node --test tests/api-reasoning-effort.test.mjs(7) andnode --test tests/model-providers.test.mjs tests/openrouter-reasoning.test.mjs tests/thinking-direct.test.mjs(14), fromapps/host.011c9e600a93bbc9fd451c563501b5831c32bbcaplus #3361 and #3363 implementation patches, passed 68 unique checks, typecheck and Vite build. That is one shared result across both reports, not an extra result per PR or the source submitted individually. Compared installed Host source matches that unpatched base after CRLF normalization.git diff --checkpassed. No product or test-source workaround was needed.Failed:
Not run:
Native App window, packaged installer, model download/preparation, live GPU/model or cloud-provider inference, and cross-platform execution. Component tests render actual React components; Host/Harness are real disposable processes with scripted model replies. The staged Harness is pinned at
571902028a75c64c1d767f4ae5fd099485f0ddf0/ 0.2.1-alpha.3 and includes the separate #3684 v2 packaging patch, explicitly recorded in the receipt; this PR does not submit that patch. Installed application files and production configuration were unchanged.Limits
This applies to OpenAI-chat connections whose saved or probed metadata declares reasoning support. Responses and Anthropic keep their current defaults. Thinking budgets are not added to external API requests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.