Skip to content

[AI Reviewer] Fix file content exceeds maximum allowed tokens #74192

Description

@kacper-mikolajczak

Problem

The AI reviewer is trying to ingest big files which results in tool usage error:

File content (89479 tokens) exceeds maximum allowed tokens (25000).

Initial error report findings

  • Total occurrences: 13
  • Affected files: big ones like src/CONST/index.ts (89k tokens), src/libs/actions/Policy/Policy.ts (70k tokens)
  • Root cause: Agents were trying to read entire files, exceeding the 25k token read limit

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions