Skip to content

[Bug]: An invalid "Auto-compact after" value takes the Claude provider offline #35041

Closed

Description

@only21mil

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

  1. Open Settings > Providers and select Claude (it shows Authenticated and lists its models).
  2. Type 300k into "Auto-compact after" and press Enter.

Expected behavior

The field tells me the value is not valid and does not save it. Claude stays available.

Actual behavior

The value saves with no message next to the field. Claude then shows as Disabled with "Invalid config for instance 'claudeAgent': Expected a string matching the RegExp ...", and its model list drops to "0 models" with "No models reported for this provider yet." 50000 does the same. Claude comes back only after I find the field and clear it.

Impact

Major degradation or frequent failure

Version or commit

main, commit b68aedf

Environment

Linux, web client in Chromium, dev server from source with a fresh home, Node 26.12.1. Claude Code CLI 2.1.322.

Logs or stack traces

Status
Disabled
· Invalid config for instance 'claudeAgent': Expected a string matching the RegExp ^(?:|[1-9]\d{5}|1000000)$ at ["autoCompactWindow"]

Screenshots, recordings, or supporting files

main b68aedf: with 300k saved in "Auto-compact after", Claude shows Disabled with an invalid config message
main b68aedf: with 300k saved in "Auto-compact after", Claude shows Disabled with an invalid config message

Workaround

Clear "Auto-compact after" and press Enter. Claude shows Authenticated again and lists its models.

A fix is in #32614.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions