Skip to content

Incorrect Rate Limit error for inactive "Primary" profile while using Z.AI API #1903

@thefergi

Description

@thefergi

Checklist

  • I searched existing issues and this hasn't been reported

Area

Backend

Operating System

Windows

Version

2.7.6

What happened?

I am using a profile configured with a Z.AI API key (unlimited subscription) to avoid login issues with the "Primary" profile. However, periodically I get a pop-up window interrupting my work with the message: "Claude Code Rate Limit Task Execution was interrupted due to usage limits. (Profile: Primary)".

The application incorrectly reports that the "Primary" profile has hit a rate limit, even though I am actively using a different profile (Z.AI) which is unlimited. It seems the app checks the wrong profile for limits.

Steps to reproduce

  1. Create a new profile in the app.
  2. Configure it with a Z.AI API key (unlimited subscription).
  3. Switch to this new profile and use the application.
  4. After some time, a rate limit error appears referencing the inactive "Primary" profile instead of the active Z.AI profile.

Expected behavior

The application should recognize the active profile's status (Z.AI unlimited) and should not trigger rate limit errors for the inactive "Primary" profile. No usage limits should apply since the active profile has an unlimited subscription.

Logs / Screenshots

Error message text:
"Claude Code Rate Limit Task Execution was interrupted due to usage limits. (Profile: Primary) Rate limit reached The operation was stopped because Primary reached its usage limit..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/backendThis is backend onlybugSomething isn't workingneeds-triageNew issue, maintainer review neededstale

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions