@@ -65,7 +65,9 @@ function withCurrent(
6565 base : ReadonlyArray < EffectAcpSchema . SessionConfigOption > = recordedConfigOptions ,
6666) : ReadonlyArray < EffectAcpSchema . SessionConfigOption > {
6767 return base . map ( ( option ) =>
68- option . id === configId && option . type === "select" ? { ...option , currentValue : value } : option ,
68+ option . id === configId && option . type === "select"
69+ ? { ...option , currentValue : value }
70+ : option ,
6971 ) ;
7072}
7173
@@ -229,7 +231,11 @@ describe("FxAdapterV2", () => {
229231 value : "medium" ,
230232 } ) ,
231233 answer ( "session/set_config_option" , {
232- configOptions : withCurrent ( "effort" , "medium" , withCurrent ( "model" , "anthropic/claude-sonnet-5.5" ) ) ,
234+ configOptions : withCurrent (
235+ "effort" ,
236+ "medium" ,
237+ withCurrent ( "model" , "anthropic/claude-sonnet-5.5" ) ,
238+ ) ,
233239 } ) ,
234240 outbound ( "session/set_config_option" , {
235241 sessionId : "fx-session" ,
@@ -261,7 +267,11 @@ describe("FxAdapterV2", () => {
261267 value : "anthropic/claude-sonnet-5.5" ,
262268 } ) ,
263269 answer ( "session/set_config_option" , {
264- configOptions : withCurrent ( "model" , "anthropic/claude-sonnet-5.5" , withCurrent ( "effort" , "medium" ) ) ,
270+ configOptions : withCurrent (
271+ "model" ,
272+ "anthropic/claude-sonnet-5.5" ,
273+ withCurrent ( "effort" , "medium" ) ,
274+ ) ,
265275 } ) ,
266276 outbound ( "session/set_config_option" , {
267277 sessionId : "fx-session" ,
@@ -298,7 +308,11 @@ describe("FxAdapterV2", () => {
298308 value : "medium" ,
299309 } ) ,
300310 answer ( "session/set_config_option" , {
301- configOptions : withCurrent ( "effort" , "medium" , withCurrent ( "model" , "anthropic/claude-sonnet-5.5" ) ) ,
311+ configOptions : withCurrent (
312+ "effort" ,
313+ "medium" ,
314+ withCurrent ( "model" , "anthropic/claude-sonnet-5.5" ) ,
315+ ) ,
302316 } ) ,
303317 outbound ( "session/set_config_option" , {
304318 sessionId : "fx-session" ,
@@ -331,7 +345,11 @@ describe("FxAdapterV2", () => {
331345 value : "anthropic/claude-sonnet-5.5" ,
332346 } ) ,
333347 answer ( "session/set_config_option" , {
334- configOptions : withCurrent ( "model" , "anthropic/claude-sonnet-5.5" , withCurrent ( "effort" , "high" ) ) ,
348+ configOptions : withCurrent (
349+ "model" ,
350+ "anthropic/claude-sonnet-5.5" ,
351+ withCurrent ( "effort" , "high" ) ,
352+ ) ,
335353 } ) ,
336354 outbound ( "session/set_config_option" , {
337355 sessionId : "fx-session" ,
@@ -449,7 +467,11 @@ describe("FxAdapterV2", () => {
449467 value : "anthropic/claude-sonnet-5.5" ,
450468 } ) ,
451469 answer ( "session/set_config_option" , {
452- configOptions : withCurrent ( "model" , "anthropic/claude-sonnet-5.5" , withCurrent ( "effort" , "medium" ) ) ,
470+ configOptions : withCurrent (
471+ "model" ,
472+ "anthropic/claude-sonnet-5.5" ,
473+ withCurrent ( "effort" , "medium" ) ,
474+ ) ,
453475 } ) ,
454476 outbound ( "session/set_config_option" , {
455477 sessionId : "fx-session" ,
@@ -511,7 +533,11 @@ describe("FxAdapterV2", () => {
511533 outbound ( "session/new" ) ,
512534 answer ( "session/new" , {
513535 sessionId : "fx-session" ,
514- configOptions : withModeAdvertisement ( "auto" , post1189ModeValues , withCurrent ( "effort" , "medium" ) ) ,
536+ configOptions : withModeAdvertisement (
537+ "auto" ,
538+ post1189ModeValues ,
539+ withCurrent ( "effort" , "medium" ) ,
540+ ) ,
515541 } ) ,
516542 outbound ( "session/set_config_option" , {
517543 sessionId : "fx-session" ,
0 commit comments