Repository navigation
feat(ai): simplify model selection and add turn usage metrics - #3281
Merged
Merged
Conversation
added 3 commits
October 6, 2026 09:25
Keep model and reasoning selection in one card with provider context, guarded async saves, and a reasoning intensity slider. Add turn token/cache/output-rate metrics, hover-aware footers, and shared click-open tooltips that dismiss on scrolling.
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
Model selection and model setup now keep the controls and model context together, and completed chat turns expose their reported usage.
Type and Areas
Type: Feature, UI/UX, compatibility, tests.
Areas: Web UI, shared design system, Design Lab, AI adapters, shared AI DTOs, Remote Connect catalog fixture.
Motivation / Impact
Users can configure and find models in one pool, adjust thinking without leaving the selector, and inspect actual turn usage. Existing provider/model/account identity, model defaults, saved reasoning IDs, and request semantics remain compatible.
Verification
PR CI passed all 11 applicable checks; 2 jobs were skipped by the existing impact rules. Full Web UI testing passed 942 files and 10,448 tests.
Passed locally:
pnpm.cmd run check:web(type checking, Appearance, typography, all-surface color audits, and theme contracts).pnpm.cmd run i18n:audit,pnpm.cmd run motion:audit, andpnpm.cmd --dir src/web-ui run icons:check.pnpm.cmd --dir src/web-ui exec vitest run --maxWorkers=50% src/flow_chat/components/FlowChatTypographyRoles.test.ts(6 tests covering shared menu/metric typography and accessible completion details).pnpm.cmd --dir design-system/apps/design-lab run buildand focused preview/i18n contracts (49 passing tests).cargo test --locked -p openbitfun-ai-adapters --lib models_dev::tests(32 tests).cargo test --locked -p openbitfun-core-types --lib remote_model_routing_compatibility(2 legacy/current payload tests).cargo test --locked -p openbitfun-core --no-default-features --features ai-adapter-runtime --lib infrastructure::ai::reasoning_catalog(11 tests).cargo test --locked -p openbitfun-services-integrations --no-default-features --features remote-connect --test remote_connect_contracts remote_connect_model_catalog_builder_preserves_config_shape(1 test).Reviewer Notes
Windows desktop library tests hit the existing upstream Tauri test-loader limitation before execution. The workflow accepted its exact documented loader signature; Windows compilation, CLI, and the other platform contracts passed. Linux and macOS desktop library tests passed.
AI-assisted; focused automated testing completed. No browser automation, mock visual acceptance, native/device visual validation, or live-provider inference was performed.
Remote workspace, Remote control, Peer Device Mode, and Detached Dispatch were not exercised live. Target-owned/external selector behavior, optional-field wire compatibility, and the Remote Connect catalog shape have automated coverage; these checks do not establish live remote behavior.
Checklist