github / github/copilot-sdk

Bug: SDK crashes when using special characters in prompt

未关闭
#2,303 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
10.5k
派生
1.5k
平均合并
1 天 14 小时
30 天内合并 PR
129

描述

## 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

贡献指南

打开贡献指南

调研方向

未指定源文件或测试。首先使用一个最小脚本和包含 Unicode 字符的提示,在 Node.js 22.x 上通过 copilot-sdk v1.0.60 重现崩溃,然后跟踪提示处理入口点。完成的标准是同一个提示不再产生未处理的 TypeError,并且有一个回归测试覆盖该问题。

由索引模型根据 Issue 内容生成。

评估

技术栈
node.js
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
62/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。