Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

CLI session preemptively locks tool execution before credit exhaustion

Open
#4,897 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
shell
Domain
cli

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/copilot-cli

All issues in github/copilot-cli

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.