fix(tui): bind provider as model alias

This commit is contained in:
Brooklyn Nicholson
2026-04-25 13:58:59 -05:00
parent e48a497d16
commit 5e52011de3
5 changed files with 19 additions and 13 deletions

View File

@@ -17,6 +17,14 @@ describe('createSlashHandler', () => {
expect(getOverlayState().picker).toBe(true)
})
it('treats /provider as a local /model alias', () => {
const ctx = buildCtx()
expect(createSlashHandler(ctx)('/provider')).toBe(true)
expect(getOverlayState().modelPicker).toBe(true)
expect(ctx.gateway.gw.request).not.toHaveBeenCalled()
})
it('opens the skills hub locally for bare /skills', () => {
const ctx = buildCtx()