github / github/copilot-sdk

Bug: SDK crashes when using special characters in prompt

オープン
#2,303 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
10.5k
フォーク
1.5k
平均マージ
1日 11時間
マージ済み PR(30日)
128

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
62/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。