File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,14 +149,12 @@ describe('startSearchExtraToolsPrefetch', () => {
149149} )
150150
151151describe ( 'getTurnZeroSearchExtraToolsPrefetch' , ( ) => {
152- beforeEach ( ( ) => {
152+ // Turn-zero user-input tool recommendations are disabled to avoid frequent
153+ // popups. All cases return null regardless of input/match state.
154+ test ( 'returns null (feature disabled)' , async ( ) => {
153155 mockGetToolIndex . mockResolvedValue ( [
154156 { name : 'index-entry' , tokens : [ 'test' ] , tfVector : new Map ( ) } ,
155157 ] as never )
156- mockSearchTools . mockReturnValue ( [ ] )
157- } )
158-
159- test ( 'returns non-null attachment for matching tools' , async ( ) => {
160158 mockSearchTools . mockReturnValue ( [
161159 {
162160 name : 'CronCreateTool' ,
@@ -173,9 +171,7 @@ describe('getTurnZeroSearchExtraToolsPrefetch', () => {
173171 'schedule cron job' ,
174172 [ ] ,
175173 )
176- expect ( result ) . not . toBeNull ( )
177- expect ( result ! . type ) . toBe ( 'tool_discovery' )
178- expect ( ( result as Record < string , unknown > ) . trigger ) . toBe ( 'user_input' )
174+ expect ( result ) . toBeNull ( )
179175 } )
180176
181177 test ( 'returns null for empty input' , async ( ) => {
You can’t perform that action at this time.
0 commit comments