Skip to content

Conversation

@atihkin
Copy link
Contributor

@atihkin atihkin commented Feb 12, 2026

Sort key now uses 'x.type or ""' so models with type=None no longer cause TypeError when compared with str during sort.


Note

Low Risk
Small, localized change to CLI display sorting; behavior only differs when .type is missing, where it now avoids a runtime error.

Overview
Fixes together models list sorting to tolerate missing model types by using x.type or "" as the sort key, preventing crashes when the API returns None/empty .type values.

Written by Cursor Bugbot for commit 94bd7cc. This will update automatically on new commits. Configure here.

@blainekasten blainekasten changed the base branch from main to next February 12, 2026 00:45
Sort key now uses 'x.type or ""' so models with type=None no longer
cause TypeError when compared with str during sort.

Co-authored-by: Cursor <[email protected]>
@blainekasten blainekasten force-pushed the fix/models-list-none-type-sort branch from 469c54c to 94bd7cc Compare February 12, 2026 00:47
@blainekasten blainekasten merged commit 9c17a0c into next Feb 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants