github / github/copilot-sdk

Bug: SDK crashes when using special characters in prompt

Ouverte
#2,303 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
10.5k
Forks
1.5k
Merge moyen
1 j 11 h
PR mergées (30 j)
128

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
node.js
Domaine
api
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
62/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.