{
  "initial": {
    "t3_thread_list_includeSubagents_true": {
      "projectId": null,
      "currentThreadId": null,
      "threads": [
        {
          "threadId": "thread:subagent:e726ada4e1ba0511",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Nested branch",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Asubagent%3Ae726ada4e1ba0511",
          "createdBy": "agent",
          "creationSource": "provider",
          "status": "idle",
          "latestRunId": null,
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "itemCount": 3,
          "createdAt": "2026-11-13T07:17:58.863Z",
          "updatedAt": "2026-11-13T07:28:16.768Z"
        },
        {
          "threadId": "thread:subagent:87038368289cf519",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Reply OK child",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Asubagent%3A87038368289cf519",
          "createdBy": "agent",
          "creationSource": "provider",
          "status": "idle",
          "latestRunId": null,
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "itemCount": 3,
          "createdAt": "2026-11-13T07:14:41.024Z",
          "updatedAt": "2026-11-13T07:28:16.768Z"
        },
        {
          "threadId": "thread:subagent:0db9325c997f89ac",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Deep leaf",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Asubagent%3A0db9325c997f89ac",
          "createdBy": "agent",
          "creationSource": "provider",
          "status": "idle",
          "latestRunId": null,
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "relationshipToParent": "subagent",
          "itemCount": 2,
          "createdAt": "2026-11-13T07:19:00.334Z",
          "updatedAt": "2026-11-13T07:28:16.768Z"
        },
        {
          "threadId": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Reply OK grandchild",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Adelegated-task%3Acommand%253Amcp%253A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%253Adelegate-task%253Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "createdBy": "agent",
          "creationSource": "mcp",
          "status": "completed",
          "latestRunId": "run:thread:thread%3Adelegated-task%3Acommand%253Amcp%253A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%253Adelegate-task%253Afa31e724-f120-4a8f-9c03-cc45a47757b5:ordinal:2",
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "itemCount": 7,
          "createdAt": "2026-11-13T07:14:45.552Z",
          "updatedAt": "2026-11-13T07:28:16.768Z"
        },
        {
          "threadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Parent archive demonstration",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/mcp%3A1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "createdBy": "agent",
          "creationSource": "mcp",
          "status": "completed",
          "latestRunId": "run:thread:mcp%3A1c38c0db-c7a4-40b0-8733-b1b3338914f6:ordinal:3",
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": null,
          "relationshipToParent": null,
          "itemCount": 15,
          "createdAt": "2026-11-13T07:14:33.480Z",
          "updatedAt": "2026-11-13T07:28:16.768Z"
        }
      ],
      "nextCursor": null,
      "total": 5
    },
    "persistedThreadState": [
      {
        "id": "thread:subagent:0db9325c997f89ac",
        "title": "Deep leaf",
        "lineage": {
          "parentThreadId": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "provider"
      },
      {
        "id": "thread:subagent:bd8e8b8ded44a799",
        "title": "Keep archived child",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:19:34.910Z",
        "creationSource": "provider"
      },
      {
        "id": "thread:subagent:e726ada4e1ba0511",
        "title": "Nested branch",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "provider"
      },
      {
        "id": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
        "title": "Parent archive demonstration",
        "lineage": {
          "parentThreadId": null,
          "relationshipToParent": null,
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "mcp"
      },
      {
        "id": "thread:subagent:87038368289cf519",
        "title": "Reply OK child",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "provider"
      },
      {
        "id": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
        "title": "Reply OK grandchild",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "mcp"
      }
    ]
  },
  "archived": {
    "t3_thread_list_includeSubagents_true": {
      "projectId": null,
      "currentThreadId": null,
      "threads": [],
      "nextCursor": null,
      "total": 0
    },
    "persistedThreadState": [
      {
        "id": "thread:subagent:0db9325c997f89ac",
        "title": "Deep leaf",
        "lineage": {
          "parentThreadId": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:30:43.196Z",
        "creationSource": "provider"
      },
      {
        "id": "thread:subagent:bd8e8b8ded44a799",
        "title": "Keep archived child",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:19:34.910Z",
        "creationSource": "provider"
      },
      {
        "id": "thread:subagent:e726ada4e1ba0511",
        "title": "Nested branch",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:30:43.196Z",
        "creationSource": "provider"
      },
      {
        "id": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
        "title": "Parent archive demonstration",
        "lineage": {
          "parentThreadId": null,
          "relationshipToParent": null,
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:30:43.196Z",
        "creationSource": "mcp"
      },
      {
        "id": "thread:subagent:87038368289cf519",
        "title": "Reply OK child",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:30:43.196Z",
        "creationSource": "provider"
      },
      {
        "id": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
        "title": "Reply OK grandchild",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:30:43.196Z",
        "creationSource": "mcp"
      }
    ]
  },
  "restored": {
    "t3_thread_list_includeSubagents_true": {
      "projectId": null,
      "currentThreadId": null,
      "threads": [
        {
          "threadId": "thread:subagent:e726ada4e1ba0511",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Nested branch",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Asubagent%3Ae726ada4e1ba0511",
          "createdBy": "agent",
          "creationSource": "provider",
          "status": "idle",
          "latestRunId": null,
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "itemCount": 3,
          "createdAt": "2026-11-13T07:17:58.863Z",
          "updatedAt": "2026-11-13T07:30:51.229Z"
        },
        {
          "threadId": "thread:subagent:87038368289cf519",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Reply OK child",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Asubagent%3A87038368289cf519",
          "createdBy": "agent",
          "creationSource": "provider",
          "status": "idle",
          "latestRunId": null,
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "itemCount": 3,
          "createdAt": "2026-11-13T07:14:41.024Z",
          "updatedAt": "2026-11-13T07:30:51.229Z"
        },
        {
          "threadId": "thread:subagent:0db9325c997f89ac",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Deep leaf",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Asubagent%3A0db9325c997f89ac",
          "createdBy": "agent",
          "creationSource": "provider",
          "status": "idle",
          "latestRunId": null,
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "relationshipToParent": "subagent",
          "itemCount": 2,
          "createdAt": "2026-11-13T07:19:00.334Z",
          "updatedAt": "2026-11-13T07:30:51.229Z"
        },
        {
          "threadId": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Reply OK grandchild",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/thread%3Adelegated-task%3Acommand%253Amcp%253A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%253Adelegate-task%253Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "createdBy": "agent",
          "creationSource": "mcp",
          "status": "completed",
          "latestRunId": "run:thread:thread%3Adelegated-task%3Acommand%253Amcp%253A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%253Adelegate-task%253Afa31e724-f120-4a8f-9c03-cc45a47757b5:ordinal:2",
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "itemCount": 7,
          "createdAt": "2026-11-13T07:14:45.552Z",
          "updatedAt": "2026-11-13T07:30:51.229Z"
        },
        {
          "threadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "projectId": "a0c979aa-aa15-4c44-a29c-870edf2a1775",
          "title": "Parent archive demonstration",
          "link": "https://app.t3.codes/threads/bcac2e6a-7891-49a5-a3a9-8fe02e084a05/mcp%3A1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "createdBy": "agent",
          "creationSource": "mcp",
          "status": "completed",
          "latestRunId": "run:thread:mcp%3A1c38c0db-c7a4-40b0-8733-b1b3338914f6:ordinal:3",
          "providerInstanceId": "opencode",
          "model": "openai/gpt-6-luna",
          "runtimeMode": "full-access",
          "interactionMode": "default",
          "linkedPullRequest": null,
          "pullRequests": [],
          "pullRequestCount": 0,
          "settled": false,
          "settledAt": null,
          "snoozed": false,
          "snoozedUntil": null,
          "blockedOnThreadWait": false,
          "pendingBackgroundTasks": [],
          "parentThreadId": null,
          "relationshipToParent": null,
          "itemCount": 15,
          "createdAt": "2026-11-13T07:14:33.480Z",
          "updatedAt": "2026-11-13T07:30:51.229Z"
        }
      ],
      "nextCursor": null,
      "total": 5
    },
    "persistedThreadState": [
      {
        "id": "thread:subagent:0db9325c997f89ac",
        "title": "Deep leaf",
        "lineage": {
          "parentThreadId": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "provider"
      },
      {
        "id": "thread:subagent:bd8e8b8ded44a799",
        "title": "Keep archived child",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": "2026-11-13T07:19:34.910Z",
        "creationSource": "provider"
      },
      {
        "id": "thread:subagent:e726ada4e1ba0511",
        "title": "Nested branch",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "provider"
      },
      {
        "id": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
        "title": "Parent archive demonstration",
        "lineage": {
          "parentThreadId": null,
          "relationshipToParent": null,
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "mcp"
      },
      {
        "id": "thread:subagent:87038368289cf519",
        "title": "Reply OK child",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "provider"
      },
      {
        "id": "thread:delegated-task:command%3Amcp%3A3ecb0eb7-2a8b-4e0d-8bef-dc2510981461%3Adelegate-task%3Afa31e724-f120-4a8f-9c03-cc45a47757b5",
        "title": "Reply OK grandchild",
        "lineage": {
          "parentThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6",
          "relationshipToParent": "subagent",
          "rootThreadId": "mcp:1c38c0db-c7a4-40b0-8733-b1b3338914f6"
        },
        "archivedAt": null,
        "creationSource": "mcp"
      }
    ]
  }
}