codex - 💡(How to fix) Fix VS Code extension crashes when trying to paste string

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

{
  "manager_id": "tc2_apple-homekit",
  "action": "scan",
  "things": [
    {
      "id": "tc2_homekit_setup_31_1e_54_5a_24_54",
      "description": "{\"name\":\"Qingping Air Monitor Lite\",\"device_id\":\"31:1e:54:5a:24:54\",\"model\":\"CGDN1\",\"category\":\"10\",\"transport\":\"ip\",\"paired\":true,\"pairable\":false,\"status_flags\":0,\"config_num\":1,\"state_num\":8,\"address\":\"192.168.0.39\",\"addresses\":[\"192.168.0.39\"],\"port\":80,\"protocol_version\":\"1.1\",\"setup_hash\":null}",
      "location": null,
      "manager_id": "tc2_apple-homekit",
      "nick_name": "Qingping Air Monitor Lite",
      "skills": [],
      "functions": [],
      "values": [],
      "predefined_tags": [
        "tc2_homekit_setup_31_1e_54_5a_24_54",
        "tc2_apple-homekit"
      ],
      "tags": [
        "AppleHomeKit",
        "platform__AppleHomeKit",
        "HomeKitSetup",
        "CGDN1",
        "ip"
      ],
      "state": "scanned",
      "url": "homekit://31:1e:54:5a:24:54",
      "primary_skill": null
    }
  ]
}

---

"description": "{\"name\":\"Qingping Air Monitor Lite\",\"device_id\":\"31:1e:54:5a:24:54\",\"model\":\"CGDN1\",\"category\":\"10\",\"transport\":\"ip\",\"paired\":true,\"pairable\":false,\"status_flags\":0,\"config_num\":1,\"state_num\":8,\"address\":\"192.168.0.39\",\"addresses\":[\"192.168.0.39\"],\"port\":80,\"protocol_version\":\"1.1\",\"setup_hash\":null}",

---

{
  "manager_id": "tc2_apple-homekit",
  "action": "scan",
  "things": [
    {
      "id": "tc2_homekit_setup_31_1e_54_5a_24_54",
      "location": null,
      "manager_id": "tc2_apple-homekit",
      "nick_name": "Qingping Air Monitor Lite",
      "skills": [],
      "functions": [],
      "values": [],
      "predefined_tags": [
        "tc2_homekit_setup_31_1e_54_5a_24_54",
        "tc2_apple-homekit"
      ],
      "tags": [
        "AppleHomeKit",
        "platform__AppleHomeKit",
        "HomeKitSetup",
        "CGDN1",
        "ip"
      ],
      "state": "scanned",
      "url": "homekit://31:1e:54:5a:24:54",
      "primary_skill": null
    }
  ]
}

---

{
  "manager_id": "tc2_apple-homekit",
  "action": "scan",
  "things": [
    {
      "id": "tc2_homekit_setup_31_1e_54_5a_24_54",
      "description": "{\"name\":\"Qingping Air Monitor Lite\",\"device_id\":\"31:1e:54:5a:24:54\",\"model\":\"CGDN1\",\"category\":\"10\",\"transport\":\"ip\",\"paired\":true,\"pairable\":false,\"status_flags\":0,\"config_num\":1,\"state_num\":8,\"address\":\"192.168.0.39\",\"addresses\":[\"192.168.0.39\"],\"port\":80,\"protocol_version\":\"1.1\",\"setup_hash\":null}",
      "location": null,
      "manager_id": "tc2_apple-homekit",
      "nick_name": "Qingping Air Monitor Lite",
      "skills": [],
      "functions": [],
      "values": [],
      "predefined_tags": [
        "tc2_homekit_setup_31_1e_54_5a_24_54",
        "tc2_apple-homekit"
      ],
      "tags": [
        "AppleHomeKit",
        "platform__AppleHomeKit",
        "HomeKitSetup",
        "CGDN1",
        "ip"
      ],
      "state": "scanned",
      "url": "homekit://31:1e:54:5a:24:54",
      "primary_skill": null
    }
  ]
}
RAW_BUFFERClick to expand / collapse

What version of the IDE extension are you using?

26.602.30954

What subscription do you have?

Pro

Which IDE are you using?

VS Code

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

When trying to paste the following string to the extension text field, the extension becomes unresponsive, and VS Code shows a warning popup The window is not responding.

{
  "manager_id": "tc2_apple-homekit",
  "action": "scan",
  "things": [
    {
      "id": "tc2_homekit_setup_31_1e_54_5a_24_54",
      "description": "{\"name\":\"Qingping Air Monitor Lite\",\"device_id\":\"31:1e:54:5a:24:54\",\"model\":\"CGDN1\",\"category\":\"10\",\"transport\":\"ip\",\"paired\":true,\"pairable\":false,\"status_flags\":0,\"config_num\":1,\"state_num\":8,\"address\":\"192.168.0.39\",\"addresses\":[\"192.168.0.39\"],\"port\":80,\"protocol_version\":\"1.1\",\"setup_hash\":null}",
      "location": null,
      "manager_id": "tc2_apple-homekit",
      "nick_name": "Qingping Air Monitor Lite",
      "skills": [],
      "functions": [],
      "values": [],
      "predefined_tags": [
        "tc2_homekit_setup_31_1e_54_5a_24_54",
        "tc2_apple-homekit"
      ],
      "tags": [
        "AppleHomeKit",
        "platform__AppleHomeKit",
        "HomeKitSetup",
        "CGDN1",
        "ip"
      ],
      "state": "scanned",
      "url": "homekit://31:1e:54:5a:24:54",
      "primary_skill": null
    }
  ]
}

I originally suspected it might be an escape sequence issue or an string length issue, and indeed, description field is the culprit here. However, this issue is only reproduced when trying to paste the above string as a whole. Neither of the following (description only OR everything except description) does not reproduce the issue.

"description": "{\"name\":\"Qingping Air Monitor Lite\",\"device_id\":\"31:1e:54:5a:24:54\",\"model\":\"CGDN1\",\"category\":\"10\",\"transport\":\"ip\",\"paired\":true,\"pairable\":false,\"status_flags\":0,\"config_num\":1,\"state_num\":8,\"address\":\"192.168.0.39\",\"addresses\":[\"192.168.0.39\"],\"port\":80,\"protocol_version\":\"1.1\",\"setup_hash\":null}",
{
  "manager_id": "tc2_apple-homekit",
  "action": "scan",
  "things": [
    {
      "id": "tc2_homekit_setup_31_1e_54_5a_24_54",
      "location": null,
      "manager_id": "tc2_apple-homekit",
      "nick_name": "Qingping Air Monitor Lite",
      "skills": [],
      "functions": [],
      "values": [],
      "predefined_tags": [
        "tc2_homekit_setup_31_1e_54_5a_24_54",
        "tc2_apple-homekit"
      ],
      "tags": [
        "AppleHomeKit",
        "platform__AppleHomeKit",
        "HomeKitSetup",
        "CGDN1",
        "ip"
      ],
      "state": "scanned",
      "url": "homekit://31:1e:54:5a:24:54",
      "primary_skill": null
    }
  ]
}

What steps can reproduce the bug?

  1. Open Codex extension
  2. Paste the following string
{
  "manager_id": "tc2_apple-homekit",
  "action": "scan",
  "things": [
    {
      "id": "tc2_homekit_setup_31_1e_54_5a_24_54",
      "description": "{\"name\":\"Qingping Air Monitor Lite\",\"device_id\":\"31:1e:54:5a:24:54\",\"model\":\"CGDN1\",\"category\":\"10\",\"transport\":\"ip\",\"paired\":true,\"pairable\":false,\"status_flags\":0,\"config_num\":1,\"state_num\":8,\"address\":\"192.168.0.39\",\"addresses\":[\"192.168.0.39\"],\"port\":80,\"protocol_version\":\"1.1\",\"setup_hash\":null}",
      "location": null,
      "manager_id": "tc2_apple-homekit",
      "nick_name": "Qingping Air Monitor Lite",
      "skills": [],
      "functions": [],
      "values": [],
      "predefined_tags": [
        "tc2_homekit_setup_31_1e_54_5a_24_54",
        "tc2_apple-homekit"
      ],
      "tags": [
        "AppleHomeKit",
        "platform__AppleHomeKit",
        "HomeKitSetup",
        "CGDN1",
        "ip"
      ],
      "state": "scanned",
      "url": "homekit://31:1e:54:5a:24:54",
      "primary_skill": null
    }
  ]
}
  1. Codex VS Code extension crashes

What is the expected behavior?

Pasting the string should populate the string in the text field instead of crashing the whole extension, obviously.

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING