Repository navigation
Conversation
Add GET /api/quota/status returning the authenticated user's effective daily limit, used count, remaining, and next UTC-midnight reset_at. Add a SaaS-only settings page at /settings/quota showing a progress bar and a live HH:MM:SS countdown to the next reset. Includes focused tests for the quota status service covering unlimited, partial, exhausted, and no-usage-today cases. Stacked on feat/daily-conversation-limit (PR #180). Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Return undefined explicitly from the countdown effect's no-op branch (consistent-return alongside the interval cleanup return), apply Prettier formatting to the SaaS-only message and countdown span, and swap the unsupported pt-BR translations of the quota keys for the required Catalan (ca) entries.
Sort the quota router imports, drop the unused AsyncSession and patch imports. These were previously masked in CI because the enterprise lint job failed to build its mypy environment before ruff could report.
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
`UserActions` renders `UserContextMenu`, which calls `useSettingsNavItems()`. This branch added a `useQuotaStatus` query there with `refetchInterval: 60_000` and `enabled: isSaasMode`. The suite mocks config as saas, so the interval was live and each test's `await vi.runAllTimersAsync()` could never drain it - vitest aborted with "Aborting after running 10000 timers, assuming an infinite loop!". These tests never assert on quota, so stub the hook with a settled value. Co-authored-by: openhands <openhands@all-hands.dev>
Retargeted to main and merged it in: the previous base branch (PR #199) was already squash-merged into main, and main has since flattened enterprise/ to the repo root, so every conflict was stale base-PR content that main already contains. Took main's side throughout; the only remaining delta is the user-actions test mock. Co-authored-by: openhands <openhands@all-hands.dev>
neubig
requested review from
all-hands-bot
and removed request for
all-hands-bot
September 29, 2026 19:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
npx vitest run __tests__/hooks/use-settings-nav-items.test.tsxnpm run typecheckThis pull request was created by an AI agent (OpenHands) on behalf of the user.
Enterprise server image for this PR: