Problem type

Disconnecting the last active agent risks lockout

HTTP 409 ยท agent_lockout_risk

What it means

The API answers with HTTP 409 Conflict and the application/problem+json document below when the condition is Disconnecting the last active agent risks lockout. The document's type member is https://screenrig.ai/problems/agent-lockout-risk, the address of this page, and its code member is agent_lockout_risk.

What to do

This is the project's last active agent. Disconnect only if the user confirms, with the explicit override (screenrig agent disconnect --yes --allow-lockout).

Should you retry?

The retryable member appears only on HTTP 5xx problems, so this one has none. Follow the steps under What to do before sending the request again.

Example response

Most routes answer with the error in the first entry of errors, and the document members instance and request_id beside it. The type, code, title and status of this problem type are fixed; detail varies per request, and hint is the registry default unless the handler sets a more specific one.

http
HTTP/1.1 409 Conflict
Content-Type: application/problem+json

{
  "errors": [
    {
      "status": 409,
      "code": "agent_lockout_risk",
      "type": "https://screenrig.ai/problems/agent-lockout-risk",
      "title": "Disconnecting the last active agent risks lockout",
      "detail": "What went wrong in this request.",
      "hint": "This is the project's last active agent. Disconnect only if the user confirms, with the explicit override (screenrig agent disconnect --yes --allow-lockout)."
    }
  ],
  "instance": "INSTANCE",
  "request_id": "REQUEST_ID",
  "server_time": "2026-01-01T00:00:00Z"
}

In the API contract

The OpenAPI contract describes this problem in these words:

Revokes only the calling project membership and its project token, preserving the global identity, other memberships, project and content. Repeating with the same cryptographically valid revoked bearer is a no-op success. Disconnecting the last active agent returns agent_lockout_risk unless allow_last_agent is explicit.

Operations that name this problem

These operations name this problem in the API reference:

Player action

This problem defines no Player action class. It belongs to a project, pairing or account flow that an agent or the dashboard drives.

Reference

Codeagent_lockout_risk
HTTP status409 Conflict
Typehttps://screenrig.ai/problems/agent-lockout-risk
Player actionnone