• Will Chen's avatar
    Stop agent loop on add_integration tool call (#2242) · e655e5e4
    Will Chen 提交于
    Use the AI SDK's hasToolCall() function to stop the agent loop when the
    add_integration tool is invoked, allowing the user to set up the
    integration before the agent continues.
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Stop the local agent loop when the add_integration tool is called,
    pausing the run so the user can finish setup. Adds
    hasToolCall('add_integration') to stopWhen and keeps the 25-step cap.
    
    <sup>Written for commit b5826e0563b4b0925715733a86e02707f9387e45.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > Adds an early stop condition to pause the local agent when integration
    setup is triggered.
    > 
    > - Imports `hasToolCall` and `addIntegrationTool`
    > - Updates `stopWhen` to `[stepCountIs(25),
    hasToolCall(addIntegrationTool.name)]` to halt on `add_integration` tool
    invocation
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    b5826e0563b4b0925715733a86e02707f9387e45. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    ---------
    Co-authored-by: 's avatarClaude <noreply@anthropic.com>
    Co-authored-by: 's avatargemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
    e655e5e4
名称
最后提交
最后更新
..
processors 正在载入提交数据...
tools 正在载入提交数据...
agent_tool_handlers.ts 正在载入提交数据...
ai_messages_cleanup.ts 正在载入提交数据...
local_agent_handler.ts 正在载入提交数据...
prepare_step_utils.ts 正在载入提交数据...
tool_definitions.ts 正在载入提交数据...
xml_tool_translator.ts 正在载入提交数据...