> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codecobra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Fix Ci Intent

> Set or clear the one-shot 'fix CI when checks finish failing' latch.

Flipped from the activity-strip's pending-state button when the user
wants to walk away and have the agent escalate as soon as CI resolves
to a non-empty failing list. The watcher (started at app boot) picks
up the latch, composes the fix-CI prompt, and starts an agent turn
server-side — no live frontend needed.



## OpenAPI

````yaml /openapi.json patch /api/tasks/{task_id}/prs/{pr_id}/fix-ci-intent
openapi: 3.1.0
info:
  description: >-
    Public CodeCobra API. Authenticate by sending a personal API key in the
    `Authorization: Bearer <key>` header. Generate keys from Settings → API keys
    in the CodeCobra dashboard.
  title: CodeCobra Public API
  version: 1.0.0
servers: []
security: []
paths:
  /api/tasks/{task_id}/prs/{pr_id}/fix-ci-intent:
    patch:
      tags:
        - public
      summary: Set Fix Ci Intent
      description: |-
        Set or clear the one-shot 'fix CI when checks finish failing' latch.

        Flipped from the activity-strip's pending-state button when the user
        wants to walk away and have the agent escalate as soon as CI resolves
        to a non-empty failing list. The watcher (started at app boot) picks
        up the latch, composes the fix-CI prompt, and starts an agent turn
        server-side — no live frontend needed.
      operationId: set_fix_ci_intent_api_tasks__task_id__prs__pr_id__fix_ci_intent_patch
      parameters:
        - in: path
          name: task_id
          required: true
          schema:
            format: uuid
            title: Task Id
            type: string
        - in: path
          name: pr_id
          required: true
          schema:
            format: uuid
            title: Pr Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FixCiIntentRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    FixCiIntentRequest:
      description: Toggle the per-PR 'fix CI when checks finish failing' latch.
      properties:
        enabled:
          title: Enabled
          type: boolean
      required:
        - enabled
      title: FixCiIntentRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````