Skip to content

Bug: The warning threshold for budgeting is not working #1450

Closed

Description

@MohRamadan24

What happened?

When the admin is applied a budget rules to a user and set the warning threshold for 50%, when the max request is two and used 1, the warning is not appearing.

Steps to reproduce

  1. Login to tale
  2. Navigate to the setting page
  3. Open "Governance" Tabs
  4. Open "Budgets" sub tab
  5. Create new budget rule
  6. Set the max request for 2, and the warning threshold for 50%
  7. Submit the form
  8. Login to the user that applied to the budget rule earlier.
  9. Navigate to the Chat with AI, send 1 message.

Expected behavior

When the warning threshold is 50% and one of the rules's limit is already 50% or more, the warning should be appears.

Affected service

Platform

Version or commit

0.2.26

Browser and OS

No response

Relevant log output

Screenshots or recordings

Image (Screeshot of the budget rule list, showing the max request applied) Image (Screeshot of the chat with ai page, showing that the user already using 1 ai request and already reached the warning threshold)

Before submitting

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

Activity

  1. self-assigned this
    on Apr 12, 2026
  2. larryro commented on Apr 12, 2026

    @larryro
    Contributor

    @MohRamadan24 The budget warning message is intentionally shown only on the default Chat page (the landing page) — displaying it across all chat interfaces felt like overkill. If you click the + button in the top-left corner to start a new chat, you should be able to see the warning there.

  3. MohRamadan24 commented on Apr 12, 2026

    @MohRamadan24
    Author

    @MohRamadan24 The budget warning message is intentionally shown only on the default Chat page (the landing page) — displaying it across all chat interfaces felt like overkill. If you click the + button in the top-left corner to start a new chat, you should be able to see the warning there.

    while showing the warning on all chat interfaces will make it overkill, i suggest to track the user action in order to display the warning. For example when the user is typing or clicking the input field of the Chat with Ai, a popup will be displayed showing a warning.

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

Metadata

Metadata

Assignees

Labels

bugservice: platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions