@@ -35,7 +35,7 @@ describe("streamChatResponse - Mode Switch During Streaming", () => {
3535
3636 // Should include write tools in normal mode
3737 expect ( toolNames ) . toContain ( "Write" ) ;
38- expect ( toolNames ) . toContain ( "Edit " ) ;
38+ expect ( toolNames ) . toContain ( "MultiEdit " ) ;
3939
4040 // Switch to plan mode (simulating Shift+Tab during streaming)
4141 toolPermissionService . switchMode ( "plan" ) ;
@@ -50,7 +50,7 @@ describe("streamChatResponse - Mode Switch During Streaming", () => {
5050
5151 // Should exclude write tools in plan mode
5252 expect ( toolNames ) . not . toContain ( "Write" ) ;
53- expect ( toolNames ) . not . toContain ( "Edit " ) ;
53+ expect ( toolNames ) . not . toContain ( "MultiEdit " ) ;
5454
5555 // Should still include read-only tools
5656 expect ( toolNames ) . toContain ( "Read" ) ;
@@ -83,7 +83,7 @@ describe("streamChatResponse - Mode Switch During Streaming", () => {
8383 // getAllTools should immediately reflect auto mode (all tools allowed)
8484 tools = await getAllTools ( ) ;
8585 expect ( tools . map ( ( t ) => t . function . name ) ) . toContain ( "Write" ) ;
86- expect ( tools . map ( ( t ) => t . function . name ) ) . toContain ( "Edit " ) ;
86+ expect ( tools . map ( ( t ) => t . function . name ) ) . toContain ( "MultiEdit " ) ;
8787 expect ( tools . map ( ( t ) => t . function . name ) ) . toContain ( "Read" ) ;
8888 } ) ;
8989
0 commit comments