Skip to content

fix(agents-runtime): avoid stack overflow on large live batches #719

fix(agents-runtime): avoid stack overflow on large live batches

fix(agents-runtime): avoid stack overflow on large live batches #719

name: Agents Desktop PR
on:
pull_request:
paths:
- 'packages/agents-desktop/**'
- 'packages/agents-server-ui/**'
- 'packages/agents/**'
- 'packages/agents-mcp/**'
- 'packages/agents-runtime/**'
- '.github/workflows/agents_desktop_*.yml'
- 'scripts/ci/desktop-affected.mjs'
- '.npmrc'
- '.tool-versions'
- 'package.json'
- 'patches/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'tsconfig.base.json'
- 'tsconfig.build.json'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
issues: write
pull-requests: write
jobs:
detect:
name: Detect desktop impact
runs-on: ubuntu-latest
outputs:
should_build: ${{ steps.detect.outputs.should_build }}
reason: ${{ steps.detect.outputs.reason }}
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.tool-versions'
- name: Detect desktop impact
id: detect
env:
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
run: node scripts/ci/desktop-affected.mjs
build:
needs: detect
if: ${{ needs.detect.outputs.should_build == 'true' }}
uses: ./.github/workflows/agents_desktop_build.yml
with:
channel: pr
version: pr-${{ github.event.pull_request.number || github.run_number }}-${{ github.sha }}
git_ref: ${{ github.event.pull_request.head.sha || github.sha }}
publish: false
sign: false