feat(frontend): improve model selection experience (#237)

* chore: remove dead code and unused exports

* fix: preserve model form during config refresh

Signed-off-by: mehmet turac <mehmetturac@gmail.com>

* loop: model-select-fix completed after 11 iterations

* fix(frontend): show provider prefix for duplicate models in quick select dropdown

When the same model exists under multiple providers, show the provider name
for both entries so users can distinguish them. Detects duplicates by modelID
across all favorites and recents.

* refactor(frontend): replace useTallScrollContent with scroll visibility hook

* fix: harden mirror push rollback

* Remove Load button from skill cards, clicking card loads skill

* feat(backend): add plugin installation support and schema updates

* refactor(frontend): remove unused useHeaderScrollVisibility hook

* refactor(frontend): replace model dropdown with bottom sheet selector

Replace DropdownMenu-based ModelQuickSelect with a bottom sheet
implementation featuring favorites, recents, provider browsing, and
search. Remove onShowModelsDialog prop from PromptInput and
SessionDetail, using data attribute trigger instead. Fix ZodIssueCode
deprecation, input text color, and portal rendering for bottom sheet.

* fix(frontend): simplify session model restore and fix mobile swipe reset

* loop: single-source-models completed after 10 iterations

* refactor(frontend): add desktop sidebar layout to model quick select

* refactor(frontend): improve model selector with connected providers, favorites, and recent management

* fix(frontend): constrain model name width to prevent overflow in prompt input

* fix(frontend): adjust padding and styling in model quick select

* fix(frontend): add optimistic removal with rollback for recent models

---------
This commit is contained in:
Chris Scott authored and GitHub committed 2026-05-25 09:47:59 -04:00
1 parent f492faa84b
commit 03bd3dac95
45 files changed
+1728 -1148

No files matched your search

@@ -172,6 +172,29 @@ describe('OpenCodeModelDialog', () => {
expect(screen.getByText(/must use only letters, numbers/i)).toBeInTheDocument()
})
})
it('should preserve create form values when provider props refresh', async () => {
const { OpenCodeModelDialog } = await import('./OpenCodeModelDialog')
const props = {
...defaultProps,
availableProviders: ['openai'],
existingProviders: { openai: { name: 'OpenAI' } },
}
const { rerender } = render(<OpenCodeModelDialog {...props} />)
const modelIdInput = document.querySelector('input[name="modelId"]') as HTMLInputElement
fireEvent.change(modelIdInput, { target: { value: 'gpt-5' } })
rerender(
<OpenCodeModelDialog
{...props}
availableProviders={['openai']}
existingProviders={{ openai: { name: 'OpenAI' } }}
/>
)
expect(modelIdInput).toHaveValue('gpt-5')
})
})
describe('form submission', () => {