Skip to content

[Bug]: Compact idle threads "Never" triggers compaction #26799

Closed as not planned

Description

@smonev

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

Set "Compact idle threads" to Never.

Image

Expected behavior

A new message in an idle thread should not triggers a compaction.

Actual behavior

Context compacted after being idle 341K11.2K tokens

Image

Impact

Minor bug or occasional failure

Version or commit

No response

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

  1. added
    bug
    needs-triage
    on Oct 29, 2026
  2. juliusmarminge commented on Oct 29, 2026

    @juliusmarminge
    Member

    Tried this on current main (fe219c4) with the web client against a local server:

    • Claude Sonnet 5.5 thread with 458K tokens in context, then the global Compact idle threads set to Never (Settings → Providers → Advanced; settings.json shows "idleCompaction": "off").
    • Moved past the prompt cache window and sent a new message: no /compact ran, the message went straight through, and context stayed at 458K.
    • Control: switching the same setting to When you return brought back the "Compact 458k / Compact and send" button. Switching back to Never removed it again.

    The "Context compacted after being idle" row in your screenshot comes from that compact-before-sending path, which is skipped when the setting resolves to Never. To narrow down why it didn't resolve to Never for you, could you share:

    1. The T3 Code version (Settings → About), and whether you use the desktop app, npx t3, or app.t3.codes, plus whether the thread is on a remote environment.
    2. The Claude provider the thread uses. If it's not the default one, what that provider's own Compact idle threads setting shows (Settings → Providers → that Claude provider). It overrides the global default.
    3. Whether you changed the setting to Never before or after the message that compacted, and whether that message was queued behind a running turn.
  3. added
    needs more info
    on Oct 29, 2026
  4. removed
    needs more info
    on Oct 29, 2026
  5. juliusmarminge commented on Nov 12, 2026

    @juliusmarminge
    Member

    @smonev Which T3 Code version and surface are you on (desktop, npx t3, or app.t3.codes), and in Settings → Providers, does the Claude provider this thread uses show its own 'Compact idle threads' value other than 'Use default'?

  6. added
    needs more info
    on Nov 19, 2026
  7. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    Closing: no reply in 7 days after we asked for more information. Comment with the missing details and we will reopen.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds more infoneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions