github / github/copilot-sdk

Bug: SDK crashes when using special characters in prompt

Aperta
#2,303 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
10.5k
Fork
1.5k
Merge medio
1g 11h
PR unite (30g)
127

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
node.js
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
62/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.