github / github/copilot-sdk

Bug: SDK crashes when using special characters in prompt

Đang mở
#2,303 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.