VS Code extension crashes when trying to paste string
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?
- Open Codex extension
- 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
}
]
}
- 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_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗