Skip to content

feat(web): configure thinking levels and align settings pages - #864

Merged
tt-a1i merged 4 commits into
openpi-dev:mainfrom
testikun:codex/independent-dev-20261015
Oct 23, 2026
Merged

tt-a1i merged 4 commits into
openpi-dev:mainfrom
testikun:codex/independent-dev-20261015

Conversation

@testikun

@testikun testikun commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Edit Pi's native thinkingLevelMap in 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.
  • Reuse the existing native model refresh after saving; the conversation and Configuration selectors continue to read Pi's available levels and native adjustment of an unsupported current effort. Discard a stale slider preview when capabilities change.
  • Align all ten settings pages with the Browser page's content column, title, spacing, neutral grouped rows and controls. Replace nested subagent/resource sidebars with the shared page layout while retaining existing setup entry points and draft behavior.
  • Rebase onto main at adcc7901, 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.
  • Resolve the native model schema and TUI from the selected Pi Host for standalone installs without Pi peers. Reuse the existing Windows isolated-process group for the post-edit lifecycle fixture without changing its deadline or ordering assertions.

Validation

  • Rebased onto main adcc7901; retained current provider identity labels, theme behavior, styled selects, and focus/touch controls. Reviewed the source range-diff and regenerated Web assets.
  • Final integration repair 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.
  • Settings parity and appearance browser suites: 11 passed.
  • Native Host/provider browser suite: 3 passed, including thinking-level persistence and provider request mapping. Uses a loopback provider; does not certify external provider capabilities.
  • Manual browser inspection of the actual isolated Web Host confirmed the repaired control layout. Isolated server provenance reports exactly this review checkout; user Pi package settings were not changed.
  • All 18 GitHub checks passed on final head 5fe948baddc2934db90ec4848340e4a9086cda68. Merged as 31fc7ffb with explicit user authorization for administrator merge after normal merge was rejected for the required independent approval.

Impact

  • User-visible behavior: per-model thinking-level selection and reset; consistent settings pages at desktop and mobile sizes.
  • Model-visible context/tools: none added or changed.
  • Runtime/lifecycle: uses the existing Pi model reload and Session refresh; Pi remains the source of truth for supported and active thinking levels. Standalone imports bind to the selected Host dependencies.
  • Persisted config/data: writes the native per-model thinkingLevelMap in models.json; reset removes that override. No OpenPI-owned setting, migration or credential-format change.
  • Compatibility/risk: preserves existing provider mappings and validates the native effort vocabulary through max. Older callers that omit the field retain existing mappings. Provider acceptance remains dependent on the user's selected model and mapping.

@github-actions github-actions Bot added documentation Improvements or additions to documentation area:setup OpenPI setup, configuration, or setup documentation labels Oct 16, 2026
@testikun
testikun force-pushed the codex/independent-dev-20261015 branch from a8c26fb to 59271b2 Compare October 23, 2026 01:45
@tt-a1i
tt-a1i force-pushed the codex/independent-dev-20261015 branch from 59271b2 to 5fe948b Compare October 23, 2026 02:27
@tt-a1i
tt-a1i merged commit 31fc7ff into openpi-dev:main Oct 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:setup OpenPI setup, configuration, or setup documentation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(web): configure native thinking levels and align settings pages

2 participants