@@ -657,7 +657,7 @@ describe("executeSlashCommand directives", () => {
657657 ) ;
658658
659659 expect ( status . content ) . toBe (
660- "Current thinking level: off .\nOptions: default, off, minimal, low, medium, high, xhigh, max." ,
660+ "Current thinking level: low .\nOptions: default, off, minimal, low, medium, high, xhigh, max." ,
661661 ) ;
662662 expect ( setMax . content ) . toBe ( "Thinking level set to **max**." ) ;
663663 } ) ;
@@ -709,7 +709,44 @@ describe("executeSlashCommand directives", () => {
709709 ) ;
710710
711711 expect ( status . content ) . toBe (
712- "Current thinking level: high.\nOptions: default, off, minimal, low, medium, high." ,
712+ "Current thinking level: low.\nOptions: default, off, minimal, low, medium, high." ,
713+ ) ;
714+ } ) ;
715+
716+ it ( "does not report global thinkingDefault for a session with a different model" , async ( ) => {
717+ const request = vi . fn ( async ( method : string , _payload ?: unknown ) => {
718+ if ( method === "sessions.list" ) {
719+ return {
720+ defaults : {
721+ modelProvider : "minimax" ,
722+ model : "MiniMax-M2.7" ,
723+ thinkingDefault : "off" ,
724+ } ,
725+ sessions : [
726+ row ( "agent:main:main" , {
727+ modelProvider : "deepseek" ,
728+ model : "deepseek-v4-flash" ,
729+ } ) ,
730+ ] ,
731+ } ;
732+ }
733+ if ( method === "models.list" ) {
734+ return {
735+ models : [ { id : "deepseek-v4-flash" , provider : "deepseek" , reasoning : true } ] ,
736+ } ;
737+ }
738+ throw new Error ( `unexpected method: ${ method } ` ) ;
739+ } ) ;
740+
741+ const status = await executeSlashCommand (
742+ { request } as unknown as GatewayBrowserClient ,
743+ "agent:main:main" ,
744+ "think" ,
745+ "" ,
746+ ) ;
747+
748+ expect ( status . content ) . toBe (
749+ "Current thinking level: low.\nOptions: default, off, minimal, low, medium, high." ,
713750 ) ;
714751 } ) ;
715752
0 commit comments