Okay, the current script is only fetching data up to which date? How can I also get the November data? Right now, it has all projects cached, and I want to avoid the following:
1. Re-running the script from scratch (it takes days)
2. Losing any historic data (I fetched the last 12 months, but I would like to keep all that data and, from now on, only fetch the missing recent data).
Don’t start working on anything yet — instead, create a plan with ideas that I can refine with you first.
Describe the bug
Bug: Copilot CLI crashes with
RangeError: Invalid string lengthwhen scanning large filesDescribe the bug
Problem
When asking GitHub Copilot CLI to create a plan (no code changes requested), the CLI begins scanning project context and appears to attempt reading a very large
.jsonfile (~500+ MB).During this scan, Copilot enters a failure loop and repeatedly prints:
The command never completes and the terminal becomes partially unresponsive due to the continuous error spam.
Actual Behavior
RangeError: Invalid string length.Affected version
0.0.365 Commit: 76d0881
Steps to reproduce the behavior
Steps to Reproduce
Run a Copilot CLI request similar to:
Copilot starts collecting context:
Copilot attempts to read a very large JSON file (>500 MB).
The CLI enters a repeated error loop:
Expected behavior
Expected Behavior
or
or
Additional context
Additional Context
.jsonfile is not relevant to the AI task but lives in a project subdirectory.Copilot CLI Version
Environment
cache/directory containing large JSON files.json