github / github/copilot-language-server-release

Offline mode not working in LSP or ACP mode

Offen
#49 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
290
Forks
24
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

While offline mode is working fine in Copilot CLI it is not working in ACP or LSP mode, even when all necessary env variables are set.
There seem to be hardcoded credential checks f.e. in "session/new".

Example:
$env:COPILOT_OFFLINE="true"
$env:COPILOT_PROVIDER_BASE_URL="http://localhost:10010/v1"
$env:COPILOT_PROVIDER_API_KEY="sk-dummy-key"
$env:COPILOT_MODEL="qwen36"
copilot --acp
{"jsonrpc": "2.0", "id": 2, "method": "session/new", "params": {"cwd": "C:/path/to/some/project", "mcpServers": []}}
{"jsonrpc":"2.0","id":2,"error":{"code":-32000,"message":"Authentication required"}}

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by tracing the ACP and LSP handling for the session/new JSON-RPC request, especially its authentication checks, and compare that path with the working Copilot CLI offline mode. The example is complete when session/new works with COPILOT_OFFLINE=true and the provided local provider variables without returning Authentication required.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
62/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.