Repository navigation
feat(web): configure thinking levels and align settings pages - #864
Merged
Merged
Conversation
testikun
force-pushed
the
codex/independent-dev-20261015
branch
from
October 23, 2026 01:45
a8c26fb to
59271b2
Compare
tt-a1i
force-pushed
the
codex/independent-dev-20261015
branch
from
October 23, 2026 02:27
59271b2 to
5fe948b
Compare
This was referenced Oct 23, 2026
This was referenced Nov 9, 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.
Problem
Custom models can enable reasoning in Web settings but cannot declare which thinking levels the provider accepts. The conversation and Configuration pickers need to reflect those model capabilities after a save. Settings pages also use inconsistent widths, headings, nested sidebars and control styles.
Closes #866.
Value
Users can configure supported thinking levels without editing Pi's model file manually, and use the updated capabilities immediately in the current Session. A consistent settings layout makes configuration easier to scan on desktop and mobile.
Approach
thinkingLevelMapin each model's advanced parameters. Validate supported keys and nonempty choices, retain provider-specific mappings, and use an explicit reset to remove the override. Project built-in defaults separately so automatic mode reflects Pi's catalog.mainatadcc7901, preserving its tooltips, active-provider label and follow-up controls. Keep the thinking-level documentation under the current USAGE structure and rebuild Web assets from the merged source.Validation
adcc7901; retained current provider identity labels, theme behavior, styled selects, and focus/touch controls. Reviewed the source range-diff and regenerated Web assets.5fe948ba: corrected the suggestion switch row selector so controls retain card padding. The browser regression failed before the fix (0 px inset) and passes afterward at desktop, window, and mobile widths.bun run check: passed.VITEST_MAX_WORKERS=2 bun run test: passed, 2,377 Node tests / 8 existing skips and 1,610 UI tests in 104 files.5fe948baddc2934db90ec4848340e4a9086cda68. Merged as31fc7ffbwith explicit user authorization for administrator merge after normal merge was rejected for the required independent approval.Impact
thinkingLevelMapinmodels.json; reset removes that override. No OpenPI-owned setting, migration or credential-format change.max. Older callers that omit the field retain existing mappings. Provider acceptance remains dependent on the user's selected model and mapping.