Non-viewable, non-deletable chat session

I have managed to create an non-viewable, non-deletable chat session. It sits there in my chat history with “New chat” title, and if I try to open it, I get this error screen:

Screenshot from 2023-06-05 19-10-08

I might try to reverse-engineer how the ChatGPT UI carries out it’s chat session deletions, and try to issue manually made request to it’s API. But it might be interesting to understand what’s the reason behind this problem.

Here’s this session’s JSON from the export data:

  {
    "title": "New chat",
    "create_time": 1685965848.906235,
    "update_time": 1685965861,
    "mapping": {
      "dc590c7c-a061-47ea-b450-30a5ac3f4cc6": {
        "id": "dc590c7c-a061-47ea-b450-30a5ac3f4cc6",
        "message": {
          "id": "dc590c7c-a061-47ea-b450-30a5ac3f4cc6",
          "author": {
            "role": "system",
            "name": null,
            "metadata": {}
          },
          "create_time": 1685965850.773645,
          "update_time": null,
          "content": {
            "content_type": "text",
            "parts": [
              ""
            ]
          },
          "status": "finished_successfully",
          "end_turn": true,
          "weight": 1,
          "metadata": {},
          "recipient": "all"
        },
        "parent": "aaa118e8-2a88-4a15-8436-b3b01507fa51",
        "children": [
          "aaa2e8eb-f8bc-4673-a4a7-2a75cecb09b3"
        ]
      },
      "aaa118e8-2a88-4a15-8436-b3b01507fa51": {
        "id": "aaa118e8-2a88-4a15-8436-b3b01507fa51",
        "message": null,
        "parent": null,
        "children": [
          "dc590c7c-a061-47ea-b450-30a5ac3f4cc6"
        ]
      },
      "aaa2e8eb-f8bc-4673-a4a7-2a75cecb09b3": {
        "id": "aaa2e8eb-f8bc-4673-a4a7-2a75cecb09b3",
        "message": {
          "id": "aaa2e8eb-f8bc-4673-a4a7-2a75cecb09b3",
          "author": {
            "role": "user",
            "name": null,
            "metadata": {}
          },
          "create_time": 1685965851.763361,
          "update_time": null,
          "content": {
            "content_type": "text",
            "parts": [
              "Imagine a 3x3 matrix that has all elements described using lowercase letter \"a\" and respective indexes in subscript. Display it using Wolfram. "
            ]
          },
          "status": "finished_successfully",
          "end_turn": null,
          "weight": 1,
          "metadata": {
            "timestamp_": "absolute",
            "message_type": null
          },
          "recipient": "all"
        },
        "parent": "dc590c7c-a061-47ea-b450-30a5ac3f4cc6",
        "children": [
          "c0ecab59-4824-4bdd-9c84-4dcc31cdb1db"
        ]
      },
      "c0ecab59-4824-4bdd-9c84-4dcc31cdb1db": {
        "id": "c0ecab59-4824-4bdd-9c84-4dcc31cdb1db",
        "message": {
          "id": "c0ecab59-4824-4bdd-9c84-4dcc31cdb1db",
          "author": {
            "role": "assistant",
            "name": null,
            "metadata": {}
          },
          "create_time": 1685965861.863289,
          "update_time": null,
          "content": {
            "content_type": "text",
            "parts": [
              "{\n  \"input\": \"matrix = Array[Subscript[a, ##] &, {3, 3}]; matrix // MatrixForm\"\n}"
            ]
          },
          "status": "finished_successfully",
          "end_turn": false,
          "weight": 1,
          "metadata": {
            "message_type": null,
            "model_slug": "gpt-4-plugins",
            "finish_details": {
              "type": "stop",
              "stop": "<|im_end|>"
            },
            "timestamp_": "absolute"
          },
          "recipient": "Wolfram.getWolframCloudResults"
        },
        "parent": "aaa2e8eb-f8bc-4673-a4a7-2a75cecb09b3",
        "children": [
          "ee5e7bb9-7293-451b-8cd5-ba95c48b8cef"
        ]
      },
      "ee5e7bb9-7293-451b-8cd5-ba95c48b8cef": {
        "id": "ee5e7bb9-7293-451b-8cd5-ba95c48b8cef",
        "message": {
          "id": "ee5e7bb9-7293-451b-8cd5-ba95c48b8cef",
          "author": {
            "role": "tool",
            "name": "Wolfram.getWolframCloudResults",
            "metadata": {}
          },
          "create_time": 1685965861.863591,
          "update_time": 1685965858.4200938,
          "content": {
            "content_type": "text",
            "parts": [
              "\"MatrixForm[{{Subscript[a, 1, 1], Subscript[a, 1, 2], Subscript[a, 1, 3]}, {Subscript[a, 2, 1], Subscript[a, 2, 2], Subscript[a, 2, 3]}, {Subscript[a, 3, 1], Subscript[a, 3, 2], Subscript[a, 3, 3]}}]\""
            ]
          },
          "status": "finished_successfully",
          "end_turn": null,
          "weight": 1,
          "metadata": {
            "invoked_plugin": {
              "type": "remote",
              "namespace": "Wolfram",
              "plugin_id": "plugin-d1d6eb04-3375-40aa-940a-c2fc57ce0f51",
              "http_response_status": 200
            },
            "message_type": null,
            "model_slug": "gpt-4-plugins",
            "timestamp_": "absolute"
          },
          "recipient": "all"
        },
        "parent": "c0ecab59-4824-4bdd-9c84-4dcc31cdb1db",
        "children": [
          "a104cdfe-933a-4a7d-8b36-d216ee72dd45"
        ]
      },
      "a104cdfe-933a-4a7d-8b36-d216ee72dd45": {
        "id": "a104cdfe-933a-4a7d-8b36-d216ee72dd45",
        "message": {
          "id": "a104cdfe-933a-4a7d-8b36-d216ee72dd45",
          "author": {
            "role": "assistant",
            "name": null,
            "metadata": {}
          },
          "create_time": 1685965861.863914,
          "update_time": null,
          "content": {
            "content_type": "text",
            "parts": [
              "The 3x3 matrix with elements described using lowercase letter \"a\" and respective indexes in subscript is:\n\n$$\n\\begin{{bmatrix}}\na_{1,1} &"
            ]
          },
          "status": "in_progress",
          "end_turn": null,
          "weight": 1,
          "metadata": {
            "message_type": null,
            "model_slug": "gpt-4-plugins",
            "finish_details": {
              "type": "interrupted"
            },
            "timestamp_": "absolute"
          },
          "recipient": "all"
        },
        "parent": "ee5e7bb9-7293-451b-8cd5-ba95c48b8cef",
        "children": []
      }
    },
    "moderation_results": [],
    "current_node": "a104cdfe-933a-4a7d-8b36-d216ee72dd45",
    "plugin_ids": [
      "plugin-44655cb9-a74a-4ae3-88a3-adec2c3fd282",
      "plugin-6ca313e8-9035-4bde-8542-7d107a1fb316",
      "plugin-d1d6eb04-3375-40aa-940a-c2fc57ce0f51"
    ],
    "id": "b3a5c25c-ad31-4464-ac0d-d47c99ad6294"
  }

The one element to suspect there is this one:

      "aaa118e8-2a88-4a15-8436-b3b01507fa51": {
        "id": "aaa118e8-2a88-4a15-8436-b3b01507fa51",
        "message": null,
        "parent": null,
        "children": [
          "dc590c7c-a061-47ea-b450-30a5ac3f4cc6"
        ]
      },

that is the only item with message == null.