CLI session preemptively locks tool execution before credit exhaustion

Offen
#4,897 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
shell
Bereich
cli

Rechercherichtung

Start by reproducing the behavior in Copilot CLI 1.0.85 with a 1000-credit limit, using Gemini 3.8 Flash and attempting a tool call after about 940 credits are used. Trace the session credit handling and tool-execution decision; done means non-destructive tool calls remain available until the 999-credit boundary instead of forcing a summary early.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

triage
Describe the bug

The Copilot CLI runtime forcefully revokes tool execution capability when remaining session credits drop below a conservative threshold (~100-150 credits), even though the session still has sufficient credit capacity (e.g., 57.1 AI credits remaining) to perform individual tool calls. The runtime injects Final model call for this session: do not call tools; summarize progress, state what remains, and stop, completely preventing final non-destructive operations (such as copying a file).

Affected version

Current Version: GitHub Copilot CLI 1.0.85

Steps to reproduce the behavior

Configure 1000 AI credits limit
Create session and reach 940 credits used
Try to do one tool call
Copilot keeping return summary session and prevent tool calling
Image

Expected behavior

Tools should be executed until 999 ai credits reached

Additional context

model Gemini 3.8 Flash

Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-cli

Alle Issues in github/copilot-cli

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

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