Skip to content

Restore Accounts cooldown recovery and synchronize upstream - #2

Merged
matsvarn merged 158 commits into
customfrom
fix/accounts-cooldown-upstream-20261010
Oct 10, 2026
Merged

matsvarn merged 158 commits into
customfrom
fix/accounts-cooldown-upstream-20261010

Conversation

@matsvarn

Copy link
Copy Markdown
Owner

Accounts now shows a labelled Clear cooldown action whenever a credential has a known cooldown, with expandable server details below the row. A restored upstream quota can be used immediately by clearing the proxy's stale cooldown through the existing confirmation and reset endpoint.

Synchronizes proxy upstream v8.0.23 and management UI upstream 390718e, preserving the fork's concise, sponsorship-free Accounts and configuration presentation. Includes upstream OAuth and configuration migrations, responsive account actions, and readable labels.

Validation: 1,624 UI tests, TypeScript, ESLint, full Go tests and build. Regression coverage exercises visible recovery, unavailable state and disabled actions. Browser interactions verify cancellation, pending state, failed reset and successful reset with the exact credential index. Chromium and WebKit checked at desktop and phone widths in both themes.

yaanlaan and others added 30 commits September 24, 2026 22:28
- Add `MethodHostRoutingResetCooldown` RPC callback to plugin ABI and host dispatcher
- Introduce `HostRoutingResetCooldownRequest` and `HostRoutingResetCooldownResponse` in plugin API
- Reset credential quota and cooldown routing state in memory without persisting to token files

Closes: router-for-me#6274
- Retain `freeform` apply_patch tool type for native template models when `enable-apply-patch` is false
- Update client configuration documentation for `client.codex.enable-apply-patch`

Closes: router-for-me#6286
…ache invalidation

- Pin local date to continuity context on the first request of a session
- Reuse pinned session date during cloaked date injection across execute and stream flows
- Prevent midnight calendar date flips from invalidating conversation prompt cache prefixes

Closes: router-for-me#6282
- Synthesize and populate live `auth_index` attributes into V8 `api-keys` responses
- Strip transient `auth_index` and `auth-index` fields from incoming update payloads and root nodes before persistence
- Ensure `auth_index` keys are omitted during V8 config transformations

Closes: router-for-me#6287
…fresh retry

- Avoid retrying Claude token refresh on ambiguous transport or decoding errors to protect single-use tokens
- Block selection and unschedule refresh for credentials when both access token is rejected and refresh encounters `invalid_grant`
- Prevent in-flight request completions or cooldown clears from reviving terminal unauthorized credentials
- Allow manual force refresh to bypass terminal unauthorized checks

Closes: router-for-me#6288
- Map Claude `pause_turn` stop reason to incomplete status with null incomplete details
- Switch stop reason evaluation to normalized lowercase matching

Closes: router-for-me#6250
- Retain `web_search_call.action.sources` alongside `reasoning.encrypted_content` in Codex request include field
- Avoid payload re-encoding when include array is already normalized

Closes: router-for-me#6251
- Add ASCII pre-filter to skip expensive gjson traversals for title helper and 1h TTL checks
- Check raw bytes for target keywords before initiating full JSON walks
- Fall back to full inspection when printable ASCII Unicode escapes are detected

Closes: router-for-me#6291
- Map `http.StatusRequestTimeout` (408) to Claude `timeout_error` response type

Closes: router-for-me#6298
- Snapshot scheduler auth copy while holding mutex lock to prevent concurrent mutation race with `MarkResult`

Closes: router-for-me#6300
…atures

- Allow early content streaming for OpenAI formats while preserving ordering behind queued tools
- Defer thought step termination and accumulate signature fragments for OpenAI Responses format
- Flush deferred reasoning step stops when closing open stream steps

Closes: router-for-me#6306
- Emit `response.reasoning_summary_part.added` event on reasoning item initialization
- Include `item_id` and `summary_index` in reasoning summary text delta events
- Emit summary text done and part done events upon thought step completion
- Consolidate reasoning summaries into a single completed summary block

Closes router-for-me#6309
- Publish primary model usage prior to image tool usage during response execution

Closes: router-for-me#6311
…tool is present

- Include `web_search_call.action.sources` in Codex request `include` field when Claude web search tools are detected

Closes: router-for-me#6312
- Add integer field paths for memories, history, notes, web, and collaboration tool schemas
- Support nested property paths and union types in parameter schema normalization

Closes: router-for-me#6255
…vity-caqs-signature-replay

feat(antigravity): support Claude 5.5 CAQS thinking signature replay
- Map local shell tool declarations and tool choice to synthetic function calls
- Normalize shell call and output history items into chat completion tool messages
- Convert upstream tool calls back to `shell_call` output items in stream and non-stream responses
- Validate shell action arguments and handle invalid input errors

Closes: router-for-me#4812
…ation

- Add `ClaudeMessagesJSONToSSE` adapter to convert native Claude message JSON payloads into synthetic SSE events
- Support non-stream Claude JSON responses in OpenAI chat completions and responses translators
- Preserve authoritative model from native responses in OpenAI responses format

Closes: router-for-me#4815
Isolate account entitlement caches and add retry backoff, auth-change cancellation, and publication fencing.

Decouple refresh scheduling from startup and config updates, bound native and plugin probe concurrency, and cancel background probes on shutdown.

Preserve cooldown state and projection generation watermarks during conditional model replacement, with regression coverage.
Invalidate runtime auths before unregistering models to fence concurrent refreshes. Publish cached catalogs through state-preserving conditional replacement and add lifecycle regression tests.
Check plugin model declarations without executing discovery. Share one per-account refresh worker across registration and periodic triggers, retaining one latest queued snapshot with its publication epoch. Add ownership, coalescing, and stale-publication regression tests.
luispater and others added 29 commits October 9, 2026 17:43
…m insertion

- Skip directive-only system turns when locating the insertion point for mid-conversation system messages
- Prevent system blocks from being prematurely placed before subsequent user turns when effort directives are present

Closes: router-for-me#6477
…ompat-stream-ttft

fix(openai-compat): measure streaming TTFT on effective token frames
- Normalize tool use and tool result IDs in Claude message payloads to adhere to character constraints
- Encode non-portable tool call IDs in Devin executor responses and restore original IDs before request construction

Closes: router-for-me#6478
fix(auth): skip local filtering for home dispatch
… flow dialog

- Replace the full-width card list with a compact tile grid; tiles show live
  login status (waiting / added / failed) while the dialog is closed
- Clicking a tile starts the login and opens a step-based dialog: auth link
  with highlighted host and inline copy feedback, device code, optional
  manual callback with inline validation, and a live status bar
- Keep success visible until the dialog closes; skip duplicate toasts while
  the provider's dialog already shows the result
- Move Vertex JSON import into the same tile + dialog pattern with drag-and-drop
- Move the page into src/features/oauth and extract the flow state machine
  into useOAuthFlows without changing attempt/cancellation semantics
- Fix xAI callback parsing treating "code: xyz" as an absolute URL
- Add the new keys to all six locales, fill missing zh-TW keys, and drop
  keys orphaned by the redesign
- Clear terminal error state when configuring a replacement xAI websocket connection to prevent stale error propagation

Closes: router-for-me#6480
- Track terminal response IDs per connection to idempotently handle late interrupts targeting completed turns
- Prevent late interrupts from contaminating subsequent requests or returning false errors on idle retained connections
- Add thread-safe diagnostic logging of sanitized interrupt outcomes in the Responses websocket handler

Closes: router-for-me#6483
- Use `isValidClaudeCacheControl` when inspecting `cache_control` fields across system prompts, tools, and message contents
- Prevent null or non-object cache control entries from counting against limits or interfering with TTL normalization and injection logic

Closes: router-for-me#6491
- Truncate and hash tool call IDs exceeding 64 characters to comply with Codex limits
- Handle collisions with existing call IDs to ensure deterministic and unique tool call mappings

Closes: router-for-me#6501
- Record credential and model cooldowns when stream execution encounters an upstream error despite context cancellation
- Prioritize reading ready stream chunks before handling context cancellation in conductor
- Defer Codex websocket disconnect notifications until error frames are delivered to the stream

Closes: router-for-me#6503
…anced section

- Deleted the SectionQuota component and its associated tests, fields, and constants.
- Moved the quotaAntigravityCredits field to the SectionAdvanced component.
- Updated related constants and translations to reflect the removal of the quota section.
- Adjusted tests to ensure consistency with the new configuration structure.
- Ensured that deprecated quota switches are no longer present in the visual config and YAML parsing logic.
- Avoid seeding `message_start` with full-input token estimates in Devin streaming
- Rely on authoritative cache-aware token usage reported in response frames

Closes: router-for-me#6505
…ge records

- Inject API key, access provider, and native key flags into the request context during authentication
- Add `IsNativeKey` and `AccessProvider` fields to usage records, plugin API types, and redis queue payloads
- Provide context helper functions and automatic fallback resolution in the usage manager and reporter

Closes: router-for-me#6509
- Remove `"tool_calls": null` from the OpenAI chunk template so `tool_calls` is omitted when absent

Closes: router-for-me#6514
- Remove Aiberm sponsor sections from English, Chinese, and Japanese README files
- Delete obsolete Aiberm logo asset
Credentials for providers with a built-in quota card (e.g. Codex) were
routed to the generic plugin quota card whenever a plugin advertised
quota support for the same provider, which then failed with 404 on v8
backends. Built-in cards now take precedence; the plugin card is only
used for providers without one.

Refs router-for-me#491
The generic plugin quota card posted to /quota/fetch, which v8 backends
no longer serve, so every plugin quota failed with 404. Resolve the
quota plugin from GET /plugins (shared per connection) and call
POST /plugins/:id/quota instead. Declarative quota_probe credentials
have no v8 route yet and now show an explicit unsupported message.

Refs router-for-me#491
@matsvarn
matsvarn merged commit 8244b3b into custom Oct 10, 2026
3 checks passed
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.