diff --git a/CHANGELOG.md b/CHANGELOG.md index 881d674dd..1ab09aa0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Only write entries that are worth mentioning to users. ## Unreleased +- Shell: Fix misleading "Quota exceeded" prefix shown on every 403 error + ## 1.44.0 (2026-05-13) - Shell: Add slash command alias resolution — aliases such as `/h`, `?`, and `status` now resolve to their canonical commands (`/help`, `/usage`); the completer and help output display alias matches as `/name (alias)` for clarity diff --git a/docs/en/release-notes/changelog.md b/docs/en/release-notes/changelog.md index b1a0e670a..310b36ca0 100644 --- a/docs/en/release-notes/changelog.md +++ b/docs/en/release-notes/changelog.md @@ -4,6 +4,8 @@ This page documents the changes in each Kimi Code CLI release. ## Unreleased +- Shell: Fix misleading "Quota exceeded" prefix shown on every 403 error + ## 1.44.0 (2026-05-13) - Shell: Add slash command alias resolution — aliases such as `/h`, `?`, and `status` now resolve to their canonical commands (`/help`, `/usage`); the completer and help output display alias matches as `/name (alias)` for clarity diff --git a/docs/zh/release-notes/changelog.md b/docs/zh/release-notes/changelog.md index 731435225..0248b37ba 100644 --- a/docs/zh/release-notes/changelog.md +++ b/docs/zh/release-notes/changelog.md @@ -4,6 +4,8 @@ ## 未发布 +- Shell:修复 403 响应一律显示 "Quota exceeded" 前缀的问题 + ## 1.44.0 (2026-05-13) - Shell:新增斜杠命令别名解析——别名(如 `/h`、`?`、`status`)现在能正确解析到对应的正式命令(`/help`、`/usage`);补全器和帮助输出会将别名匹配项显示为 `/name (alias)`,方便识别 diff --git a/src/kimi_cli/ui/shell/__init__.py b/src/kimi_cli/ui/shell/__init__.py index 3700b5b6b..e029eaaac 100644 --- a/src/kimi_cli/ui/shell/__init__.py +++ b/src/kimi_cli/ui/shell/__init__.py @@ -971,10 +971,7 @@ def _on_view_ready(view: Any) -> None: f"[red]Membership expired, please renew your plan[/red]\n[dim]Server: {e}[/dim]" ) elif isinstance(e, APIStatusError) and e.status_code == 403: - console.print( - "[red]Quota exceeded, please upgrade your plan or retry later[/red]\n" - f"[dim]Server: {e}[/dim]" - ) + console.print(f"[red]Server: {e}[/red]") elif isinstance(e, APIConnectionError): console.print( f"[red]Network connection failed: {e}[/red]\n"