fix(lightspeed): disable model selector when chat session is active #7491
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fullsend shim workflow (per-repo installation mode) | |
| # Routes events to agent workflows via reusable-dispatch.yml. | |
| # | |
| # Agents enabled: triage, coder, review, fix | |
| # Review auto-triggers on PRs touching workspaces/boost/ or workspaces/scorecard/. | |
| # All other agents are reachable via /fs-* slash commands. | |
| # | |
| # Auth gate: slash commands are restricted to org members/collaborators. | |
| # rhdh-plugins is a public repo — without this gate, any external user | |
| # could trigger Vertex AI inference via /fs-* comments. | |
| # | |
| # Security: pull_request_target runs the BASE branch version of this workflow, | |
| # preventing PRs from modifying it to exfiltrate credentials. | |
| name: fullsend | |
| permissions: | |
| actions: write | |
| id-token: write | |
| contents: write | |
| issues: write | |
| packages: read | |
| pull-requests: write | |
| on: | |
| issues: | |
| types: [opened, edited, labeled] | |
| issue_comment: | |
| types: [created] | |
| pull_request_target: | |
| types: [opened, synchronize, ready_for_review, closed] | |
| paths: | |
| - "workspaces/boost/**" | |
| - "workspaces/scorecard/**" | |
| pull_request_review: | |
| types: [submitted] | |
| jobs: | |
| dispatch: | |
| concurrency: | |
| group: fullsend-dispatch-${{ github.event.issue.number || github.event.pull_request.number }} | |
| cancel-in-progress: false | |
| if: >- | |
| github.event_name != 'issue_comment' | |
| || ( | |
| github.event.comment.user.type != 'Bot' | |
| && ( | |
| github.event.comment.author_association == 'OWNER' | |
| || github.event.comment.author_association == 'MEMBER' | |
| || github.event.comment.author_association == 'COLLABORATOR' | |
| ) | |
| ) | |
| uses: fullsend-ai/fullsend/.github/workflows/reusable-dispatch.yml@32f73a4f93301493d2c31be3970aa4c51a26acc7 # v0 | |
| with: | |
| event_action: ${{ github.event.action }} | |
| install_mode: per-repo | |
| mint_url: ${{ vars.FULLSEND_MINT_URL }} | |
| gcp_region: ${{ vars.FULLSEND_GCP_REGION }} | |
| fullsend_ai_ref: v0 | |
| secrets: | |
| FULLSEND_GCP_WIF_PROVIDER: ${{ secrets.FULLSEND_GCP_WIF_PROVIDER }} | |
| FULLSEND_GCP_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }} | |
| stop-fix: | |
| if: >- | |
| github.event_name == 'issue_comment' | |
| && github.event.issue.pull_request | |
| && github.event.comment.user.type != 'Bot' | |
| && github.event.comment.body == '/fs-fix-stop' | |
| && ( | |
| github.event.comment.author_association == 'OWNER' | |
| || github.event.comment.author_association == 'MEMBER' | |
| || github.event.comment.author_association == 'COLLABORATOR' | |
| || github.event.comment.author_association == 'CONTRIBUTOR' | |
| || github.event.comment.user.login == github.event.issue.user.login | |
| ) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Add fullsend-no-fix label and notify | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| PR_NUMBER: ${{ github.event.issue.number }} | |
| REPO: ${{ github.repository }} | |
| run: | | |
| set -euo pipefail | |
| gh label create "fullsend-no-fix" --repo "$REPO" \ | |
| --description "Skip bot-triggered fix agent runs" --color "FBCA04" \ | |
| --force 2>/dev/null || true | |
| gh pr edit "$PR_NUMBER" --repo "$REPO" \ | |
| --add-label "fullsend-no-fix" | |
| gh pr comment "$PR_NUMBER" --repo "$REPO" \ | |
| --body "Fix agent disabled for this PR. Remove the \`fullsend-no-fix\` label or use \`/fs-fix\` to re-engage." |