Skip to content

CLI session preemptively locks tool execution before credit exhaustion #4897

Description

@vlk-cmd

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions