Skip to content

fix(gateway): rate limit Gastown free models by user#3648

Merged
evanjacobson merged 1 commit into
mainfrom
fix/gastown-free-rate-limiting-by-user
Jun 1, 2026
Merged

fix(gateway): rate limit Gastown free models by user#3648
evanjacobson merged 1 commit into
mainfrom
fix/gastown-free-rate-limiting-by-user

Conversation

@evanjacobson
Copy link
Copy Markdown
Contributor

@evanjacobson evanjacobson commented Jun 1, 2026

Summary

Gastown free-model usage should not be throttled by a shared infrastructure IP, because one active user can otherwise exhaust the bucket for unrelated users. This change adds Gastown to the existing set of server-side features that use per-user free-model rate limiting, following the same pattern as cloud-agent, code-review, and app-builder.

Verification

No manual UI verification; this is a non-visual gateway attribution change.

Visual Changes

N/A

Reviewer Notes

@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Jun 1, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

The PR adds 'gastown' to the USER_RATE_LIMITED_FEATURES set and the corresponding test assertion, correctly following the established pattern used by cloud-agent, code-review, and app-builder.

Files Reviewed (2 files)
  • apps/web/src/lib/feature-detection.ts
  • apps/web/src/lib/feature-detection.test.ts

Fix these issues in Kilo Cloud


Reviewed by claude-sonnet-4.6 · 451,726 tokens

Review guidance: REVIEW.md from base branch main

@evanjacobson evanjacobson merged commit d182db7 into main Jun 1, 2026
13 checks passed
@evanjacobson evanjacobson deleted the fix/gastown-free-rate-limiting-by-user branch June 1, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants