@@ -1292,7 +1292,7 @@ describe("Discord model picker recents view", () => {
12921292 } ) ;
12931293 expect ( rows ) . toHaveLength ( 4 ) ;
12941294
1295- // First row: default model button (slot 1) .
1295+ // First row: default model button.
12961296 const defaultBtn = requireValue (
12971297 rows [ 0 ] ?. components ?. [ 0 ] ,
12981298 "recents view should render a default model button" ,
@@ -1304,9 +1304,10 @@ describe("Discord model picker recents view", () => {
13041304 ) ;
13051305 expect ( defaultState . action ) . toBe ( "submit" ) ;
13061306 expect ( defaultState . view ) . toBe ( "recents" ) ;
1307- expect ( defaultState . recentSlot ) . toBe ( 1 ) ;
1307+ expect ( defaultState . recentSlot ) . toBeUndefined ( ) ;
1308+ expect ( defaultState . modelToken ) . toBe ( createDiscordModelPickerModelToken ( "openai" , "gpt-4.1" ) ) ;
13081309
1309- // Second row: first recent (slot 2) .
1310+ // Second row: first recent.
13101311 const recentBtn1 = requireValue (
13111312 rows [ 1 ] ?. components ?. [ 0 ] ,
13121313 "recents view should render first recent button" ,
@@ -1315,9 +1316,10 @@ describe("Discord model picker recents view", () => {
13151316 parseDiscordModelPickerCustomId ( recentBtn1 . custom_id ?? "" ) ,
13161317 "first recent custom id should parse" ,
13171318 ) ;
1318- expect ( recentState1 . recentSlot ) . toBe ( 2 ) ;
1319+ expect ( recentState1 . recentSlot ) . toBeUndefined ( ) ;
1320+ expect ( recentState1 . modelToken ) . toBe ( createDiscordModelPickerModelToken ( "openai" , "gpt-4o" ) ) ;
13191321
1320- // Third row: second recent (slot 3) .
1322+ // Third row: second recent.
13211323 const recentBtn2 = requireValue (
13221324 rows [ 2 ] ?. components ?. [ 0 ] ,
13231325 "recents view should render second recent button" ,
@@ -1326,7 +1328,10 @@ describe("Discord model picker recents view", () => {
13261328 parseDiscordModelPickerCustomId ( recentBtn2 . custom_id ?? "" ) ,
13271329 "second recent custom id should parse" ,
13281330 ) ;
1329- expect ( recentState2 . recentSlot ) . toBe ( 3 ) ;
1331+ expect ( recentState2 . recentSlot ) . toBeUndefined ( ) ;
1332+ expect ( recentState2 . modelToken ) . toBe (
1333+ createDiscordModelPickerModelToken ( "anthropic" , "claude-sonnet-4-5" ) ,
1334+ ) ;
13301335
13311336 // Fourth row (after divider): Back button.
13321337 const backBtn = requireValue (
0 commit comments