chore: bump Claude Code identity to 2.1.158 + sync anthropic-beta flags from live captures (#3010)

Integrated into release/v3.8.8 — free_tier_exhausted error rule (identity/beta-flags already in release). Thanks @Tentoxa!
This commit is contained in:
Tentoxa
2026-06-01 12:57:55 +02:00
committed by GitHub
parent c34285f676
commit aa8033dae9
3 changed files with 15 additions and 0 deletions

View File

@@ -244,6 +244,14 @@
- **mcp:** move `enforceScopes` guard before `MCP_TOOL_MAP` lookup, add inline `scopes` parameter to `withScopeEnforcement()`, and declare scopes on all 24 dynamic tool definitions (memory, skills, plugins, gamification, compression) to fix scope enforcement for dynamic MCP tool groups (#2958)
### ✨ New Features
- **notion:** add Notion as an MCP context source — 6 tools (`notion_search`, `notion_list_databases`, `notion_get_database`, `notion_query_database`, `notion_read`, `notion_append_blocks`) scoped under `read:notion` / `write:notion`, with dashboard "Context Sources" tab, settings API, and token persistence in `key_value` table (#2959)
### 🔧 Bug Fixes
- **mcp:** move `enforceScopes` guard before `MCP_TOOL_MAP` lookup, add inline `scopes` parameter to `withScopeEnforcement()`, and declare scopes on all 24 dynamic tool definitions (memory, skills, plugins, gamification, compression) to fix scope enforcement for dynamic MCP tool groups (#2958)
---
## [3.8.7] — 2026-05-29

View File

@@ -141,6 +141,12 @@ export const ERROR_RULES: ErrorRule[] = [
backoff: true,
reason: "quota_exhausted",
},
{
id: "free_tier_exhausted",
text: "free tier of the model has been exhausted",
backoff: true,
reason: "quota_exhausted",
},
{ id: "capacity", text: "capacity", backoff: true, reason: "model_capacity" },
{ id: "overloaded", text: "overloaded", backoff: true, reason: "model_capacity" },
{ id: "status_401", status: 401, cooldownMs: 0, reason: "auth_error" },

View File

@@ -126,6 +126,7 @@ export const CREDITS_EXHAUSTED_SIGNALS = [
"resource has been exhausted",
"resource_exhausted",
"check quota",
"free tier of the model has been exhausted",
];
// T11: Signals that indicate OAuth token is invalid/expired (not permanent deactivation)