Skip to content

Context Denial of service by long git status output #1190

@MintOcha

Description

@MintOcha

ISSUE: Project with long git status instantly takes up usage

Steps to reproduce:

  1. Create a new project
  2. Delete a large folder like node_modules
  3. All 200k tokens from the deletion is inserted into user_info, jamming up token space

Suggested fix: Cap git status output to x characters

●  Context Usage
   v-rail: gpt-5.5 · Compaction meter available after the first model response

   █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

   Estimated usage by category · 14.7K/250K tokens (5.9%)
     ██ System prompt  2.7K tokens (1.1%)
     ██ System tools  11.9K tokens (4.8%)
     ██ Custom agents  144 tokens (<0.1%)
     ░░ Estimated Free Space  235.3K tokens (94.1%)

   Note: The compaction meter uses provider-reported usage; category totals are estimates.

   Custom agents · /agents

   User
   └ worker: 55 tokens
   └ user-testing-flow-validator: 50 tokens
   └ scrutiny-feature-reviewer: 40 tokens

   fix the current dir, im changing it from a python package to a project folder where u can directly run     
      main.py with the arguments - this means you need to change the test cases too                                                              

●  The model produced several consecutive responses with no visible output and no tool calls, so the agent stopped to avoid consuming the 
   session without making progress. Send a new message to continue.

●  Context Usage
   v-rail: gpt-5.5 · Compaction meter available after the first model response

   ██████████████████████████████████████████████████████████████████████

   Estimated usage by category · 279.1K/250K tokens (111.6%)
     ██ System prompt  2.7K tokens (1.1%)
     ██ System tools  11.9K tokens (4.8%)
     ██ User info  263K tokens (105.2%)
     ██ Custom agents  144 tokens (<0.1%)
     ██ Skills  1.3K tokens (0.5%)
     ██ Messages  110 tokens (<0.1%)
     ░░ Estimated Free Space  0 tokens (0.0%)

   Note: The compaction meter uses provider-reported usage; category totals are estimates.

Bug report id: 348471a1-93fd-461f-b401-d42eea347adb

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions