Bug: SDK crashes when using special characters in prompt
- Ngôn ngữ chính
- Java
- Star
- 10.5k
- Fork
- 1.5k
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 128
Mô tả
## Description
When using the Copilot SDK with special characters in the prompt, the SDK throws an unhandled exception.
## Steps to Reproduce
1. Install copilot-sdk v1.0.60
2. Create a simple test script
3. Pass a prompt containing unicode characters
## Expected Behavior
The SDK should handle special characters gracefully.
## Actual Behavior
Crashes with `TypeError: Cannot read properties of undefined`
## Environment
- OS: Ubuntu 22.04
- Node.js: 22.x
- SDK Version: 1.0.60
Hướng dẫn đóng góp
Hướng nghiên cứu
No source file or test is named. Start by reproducing the crash with copilot-sdk v1.0.60 on Node.js 22.x using a minimal script and a prompt containing unicode characters, then trace the prompt-handling entry point. Done means the same prompt no longer produces the unhandled TypeError and a regression test covers it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- node.js
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 62/100