fix(platform): consistent header icon sizing, halve rate limits

- Add size="icon" to SidebarTrigger for uniform h-9 w-9 button sizing
- Remove extra positioning wrappers (relative left-1, left-5) around header icons
- Halve daily token limit to 2.5M and weekly to 12.5M for more reasonable defaults
This commit is contained in:
Zamil Majdy
2026-03-13 15:55:18 +07:00
parent 2b0c9ba703
commit 5446c7f18f
3 changed files with 6 additions and 7 deletions

View File

@@ -72,13 +72,13 @@ class ChatConfig(BaseSettings):
# Rate limiting — token-based limits per day and per week.
# Each CoPilot turn consumes ~10-15K tokens (system prompt + tool schemas + response),
# so 5M daily allows ~350-500 turns/day which is generous for normal use.
# so 2.5M daily allows ~170-250 turns/day which is reasonable for normal use.
daily_token_limit: int = Field(
default=5_000_000,
default=2_500_000,
description="Max tokens per day, resets at midnight UTC (0 = unlimited)",
)
weekly_token_limit: int = Field(
default=25_000_000,
default=12_500_000,
description="Max tokens per week, resets Monday 00:00 UTC (0 = unlimited)",
)

View File

@@ -257,12 +257,10 @@ export function ChatSidebar() {
<Text variant="h3" size="body-medium">
Your chats
</Text>
<div className="relative left-5 flex items-center gap-1">
<div className="flex items-center">
<UsageLimits />
<NotificationToggle />
<div className="relative left-1">
<SidebarTrigger />
</div>
<SidebarTrigger />
</div>
</div>
{sessionId ? (

View File

@@ -288,6 +288,7 @@ const SidebarTrigger = React.forwardRef<
ref={ref}
data-sidebar="trigger"
variant="ghost"
size="icon"
onClick={(event) => {
onClick?.(event);
toggleSidebar();