Skip to content

GPT5 incorrect context counting #1714

Closed

Description

@asafyish

Just used GPT5 and halfway the context window I got the attached error. It was all a long session. no compaction run before. The session was open for many hours (worked on it on and off).

Image Image Image

Activity

  1. asafyish commented on Aug 8, 2025

    @asafyish
    Author

    According to https://simonwillison.net/2025/Aug/7/gpt-5/:
    "The models have an input limit of 272,000 tokens" which is pretty close to where it stopped working for me.
    it's a bit odd since on https://platform.openai.com/docs/models/gpt-5 it says:
    "400,000 context window".

    I did use tools (edit, read, grep) and mcp (context7).

  2. self-assigned this
    on Aug 11, 2025
  3. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  4. Eisermann commented on Mar 20, 2026

    @Eisermann

    Why this is closed? Bug still exists and affects users.

  5. ar27111994 commented on Apr 4, 2026

    @ar27111994

    +1

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions