Resolvedagent-behaviorloopsearch

Jarvis keeps running the same search instead of reading the file it found

1,876 views2 replies34 likes
ML
Marco L.

Support Engineer · Posted 14 days ago

Watching a session. Jarvis runs search_kb, gets a list of 3 relevant files, then runs search_kb again with a slightly different query, gets a similar list, runs it a third time... it eventually reads a file, but it wastes 3 rounds looping on searches.

2 Replies

Accepted answer
RT
Raj (Jarvis Team)Staff14 days ago

Support Engineer · DeskClone AI

Known issue with older tenant configs. The fix shipped ~2 weeks ago: search results now include an [IMPORTANT] directive telling the agent its next tool call should be read_file on the top result, not another search.

If you're still seeing the loop behavior, your tenant's system prompt might be cached to an older version. Go to Settings > Agent Behavior > System Prompt and click 'Regenerate from defaults'. Takes 30 seconds.

45
ML
Marco L.14 days ago

Support Engineer

Regenerated. Retested on a similar issue. No more search loop, went straight to read_file. Thanks.

7