Repository navigation
Sync upstream v8.0.70 with Pinable desktop runtime compatibility - #9
Merged
Merged
Conversation
…-availability docs(readme): add SWE-2 Flash to Devin models
…ting - Accept refresh=true or refresh=1 on the plugin store listing endpoint to bypass the 1-hour latest-release cache TTL for installed plugins. - Track last check timestamps on release cache entries with a 10-second per-key refresh floor while preserving GitHub rate-limit cooldowns and in-flight coalescing. - Add unit tests and update v8 management API documentation for the refresh query parameter. Closes: router-for-me#7333
- Parse expires_in with finite/range checks to prevent duration overflow. - Introduce ErrSIWCRefreshDeferred sentinel and add macOS pmset deferral diagnostics. - Expand regression tests and reduce SIWC renewal completion log noise.
- Rewrite standalone function_call_output and custom_tool_call_output items without call_id into user messages while preserving paired tool outputs and multimodal content parts. - Apply orphan tool output sanitization in both Codex Responses request translation and the Responses HTTP/compact handlers while keeping codex_app delegation compatibility intact. - Add regression tests covering orphan Companion Page outputs, multimodal array outputs, paired tool calls, and HTTP/compact endpoints. Closes: router-for-me#7341
- Add the "never" option for routing.session-affinity-rebind-on to preserve established session bindings across all credential failures and refuse cross-credential failover across primary, fallback-key, and Merkle LCP paths. - Scope retry rounds and Antigravity credits fallback to the bound credential under "never" mode, returning 503 session_auth_retry on transient unavailability and 429 or upstream errors on quota/auth blocks. - Add unit and end-to-end regression tests covering selector refusal, retry rounds, empty candidate sets, Antigravity credits fallback, and runtime config reload. Closes: router-for-me#7348
- Extend pluginapi.UsageDetail with optional modality token counters matching core usage.Detail. - Forward independent pointer copies of modality counters in usageAdapter.HandleUsage so plugins receive full breakdown details. - Add adapter, SDK, and RPC regression tests covering populated, explicit zero, and absent modality counters. Closes: router-for-me#7352
docs(readme): mention cpa-status in Hermes entry
…t-stream draining - Revert post-message_stop response body draining and detachable request context from Claude streaming execution so completed streams close immediately instead of returning connections to the idle pool. - Set MaxIdleConnsPerHost to -1 on the default Claude Code uTLS transport to disable idle connection reuse for OAuth and unpooled credentials while preserving the Connection: keep-alive wire header and explicit connection-pool opt-in. - Add regression tests verifying short-lived default Claude Code connections, explicit per-key pool reuse, and non-reused streaming connections. Closes: router-for-me#7357
…gin executors - Add optional credential_scoped metadata and documented routing/cooldown error code constants to pluginabi.Error so plugin executors can report account-wide 429 limits. - Preserve credential-scoped classification on rpcError across synchronous RPC envelopes and streaming error callbacks while prioritizing credential quota scope over model-only or cooldown-skipping error codes. - Recognize credential_quota error codes in core auth cooldown classification and cover whole-credential cooldown propagation and error events with regression tests. Closes: router-for-me#7359
…spellings - Normalize model state, scheduler shard, and cooldown lookups case-insensitively while preserving stored model key casing. - Atomically migrate route-alias cooldowns to the resolved upstream model key when OAuth model aliases or credentials are updated. - Add regression tests covering mixed-case alias targets, pre-existing alias cooldown migration, and concurrent persistence windows. Closes: router-for-me#7360
…ractions protocols
Map IsFork metadata to X-Node-Kind: fork when dispatching to Home so forked sessions keep their lineage kind alongside explicit kinds such as compaction. Clone dispatch headers before adding the Home-only header to avoid mutating caller headers, and cover fork, compaction, and ordinary children with session hierarchy tests.
Charge session-affinity hits, parent inheritance, LCP matches, and pinned requests against the eligible weighted pool without moving existing bindings, so new sessions favor under-served credentials and request ratios stay approximately weighted. Scope settled credits per eligible credential set, capped at +/-32 pool rounds, with in-flight reservations that commit on local selection success and release on failure.
Replace string pool keys and map-based credit state with SHA-256 digest keys and sorted slice members holding weight, current, and pending credits in a single allocation. Reservations now retain only the member index instead of a weights map and auth ID. Verify full pool identity on digest hits and chain collisions so unrelated candidate pools never share credits or weights. Update tests to access pool credits through test helpers.
Route the CLI OAuth flow through a chosen proxy and persist it as the new credential's proxy_url, matching the management API's session proxy behavior.
Devin reports the prompt in three disjoint parts: uncached (field 2), cache write (field 4) and cache read (field 5). The executor summed only uncached + cache read, so a cache miss on the GPT route (almost all cache write) reported ~3 input tokens for a full prompt, and the Claude route lost the written part on every first request. CPA's own token accounting expects the total to include writes and marked those responses inconsistent; the Claude-format translator already subtracts read + write from the total. Live: GPT-6.1 Sol miss was 3 uncached + 6103 written, reported as 3 input; the next request read 6103 of 6106. Updates the router-for-me#5910 regression test.
feat(auth): compensate weighted routing for sticky sessions
…ode-user-agent-extensions fix(claude): preserve native Claude Code requests with UA extensions
Extend weighted pinned accounting beyond session affinity so pinned and ordinary requests share the same credits even when affinity is disabled. Route scheduler, legacy, mixed, and bare selector picks through the shared weighted pool, exclude zero-weight credentials before priority selection, and preserve single-provider transport preference for mixed requests.
- Prefer /v8/management endpoints for config, credentials, api-keys, logs, and OAuth flows, normalizing the v8 config tree to the TUI's flat view and falling back to /v0/management only when a route is genuinely unimplemented. - Read access.api-keys from the same versioned root-config snapshot and write back with If-Match, refusing unconditional replaces and stale-index edits/deletes so concurrent changes are not lost. - Return a non-zero exit via CheckManagementSupport when a server definitively exposes neither contract, while keeping transient probe failures and wrong-password retries non-fatal. Closes: router-for-me#7462 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
…aining - Add server.shutdown-timeout config (default 0 = immediate close, preserving router-for-me#6094 behavior); positive values drain in-flight HTTP requests via http.Server.Shutdown bounded by the configured seconds, then force-close the rest. - Bound the drain by the configured timeout even when the caller's context is more generous, while a tighter parent deadline still wins; hijacked WebSocket connections remain managed by their own handlers. - Cover drain completion, budget-expiry fallback, tighter parent ctx, zero default, and v8/legacy config parsing in tests. Closes: router-for-me#7475 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
…nd Japanese READMEs
- Add a lightweight per-request in-flight tracker on the auth manager that covers selection, upstream calls, retry waits, and the full stream lifetime; it stays disabled in Home mode where the execution registry is authoritative. - Register GET /v8/management/observability/requests/in-flight returning counts only (in_flight, oldest_started_at, by_provider) with no request bodies or credential identifiers. Closes: router-for-me#7476 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
…s across config apply - Add Builder.WithPluginInterceptorHost so embedders can install a custom PluginInterceptorHost that survives startup and reload; the server wraps it to keep plugin model routing, executor dispatch, lifecycle, and websocket observers delegated to the internal plugin host. - Add Hooks.OnConfigApplied invoked after each successful config apply so embedders can reinstall executor wrappers and other caller-owned runtime state. - Cover the delegated interceptor host with nil-safety, skip-forwarding, capability-detection, and real execute-chain regression tests. Closes: router-for-me#7499 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
…ressure tests - Sequence the WebSocket close frame ahead of socket teardown by waiting on the writer in finishClose with a bounded grace window, closing the 1006-vs-1002 race. - Add waitServersVisible to drain the topology stream until expected servers are observable, fixing empty server_list and stale server_online reads in client tests. - Make the backpressure test deterministic via a gated transport plus tighter byte budgets, and route background-read errors through bounded barrier channels to prevent hangs. Closes: router-for-me#7504 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
- Implement core Muse Code relay handler, origin resolution, header/query sanitization, credential selection/preparation, 401 refresh, and bounded failover in internal/client/musecode. - Register thin /muse-code routes, safe-mode proxy guarding, and request-ID logging prefixes in internal/api and internal/logging. - Isolate model-less credential-scoped cooldowns, preserve execution sequence ordering, and honor request-scoped error rules across sdk/cliproxy/auth. Closes: router-for-me#7508
…g-safe - Default credential-bound plugin executors to OAuth model scope and skip static ModelRegistry clients unless ExecutorModelScopeStatic is explicitly set. - Keep StaticModels catalog collection enabled for OAuth-scoped plugins without leaking static models into ModelRegistry or credential fallback appends. - Decouple OAuth executor provider binding from catalog provider names and add regression coverage for exclusions, aliases, disabled state, and management catalog definitions. Closes: router-for-me#7512 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
…e HTTP 200 commit - Detect MALFORMED_FUNCTION_CALL, UNEXPECTED_TOOL_CALL, and MALFORMED_RESPONSE with zero visible output before bootstrap commit, reasoning replay caching, or usage finalization across Antigravity, Gemini, Vertex, and AI Studio executors. - Withhold only contentless leading shell frames while keeping thought chunks unbuffered for TTFT, and align Claude response error handling and stream completion flags while preserving valid partial outputs. - Add unit, executor, bootstrap failover, and cross-module HTTP regression tests covering credential rotation and HTTP 502 exhaustion. Closes: router-for-me#7513 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
- Cache verified management secret HMAC-SHA256 digests bound to the active bcrypt hash for a one-hour TTL while coalescing concurrent cold-cache verifications. - Invalidate cached verification entries on management secret changes in SetConfig and ConfigV8 while preserving failure counting, IP ban checks, and non-caching of invalid keys. - Add deterministic unit tests, a ConfigV8 HTTP integration test, and a benchmark covering TTL expiration, rotation, concurrency coalescing, and ban preservation. Closes: router-for-me#7519 Co-authored-by: Dylan <1990016@gmail.com> Co-authored-by: lzt404 <2596933790@qq.com>
…gin listing - Add Priority *int to pluginListEntry, populated from the host RegisteredPlugins snapshot so clients can verify effective ordering, including zero and negative values. - Gate exposure to the maintained v8 route while leaving the deprecated v0 response shape unchanged, and add RegisterPluginWithPriorityForTest to cover non-default priorities in tests. Closes: router-for-me#7522
…sponse interceptors - Build interceptor metadata in WriteModelListResponse from the authenticated gin context (caller_scope, access_provider, frontend_auth_metadata) instead of always passing nil. - Reuse requestCallerScope so model-list requests share the same irreversible caller handle as execution paths, enabling per-key catalog filtering including ?key= credentials. - Forward the same metadata to the request lifecycle tracker and add regression tests for identity forwarding, metadata isolation, and unauthenticated nil metadata. Closes: router-for-me#7524
- Wrap the final 429 in a poolCooldownTerminalError at the Execute/ExecuteCount/ExecuteStream boundaries when every candidate credential for the model is blocked and at least one is in a timed cooldown, preserving the upstream error body and status while marking IsModelCooldown so the Claude handler appends the reset time. - Compute the Retry-After from the earliest auto-recovery across all blocked candidates (including non-cooldown timed blocks) so the client sees the pool's real recovery instead of the last attempt's hint. - Add regression coverage for both cooldown variants across the three execution paths, the available-candidate guard, mixed-block earliest deadlines, the sub-floor hint clamp, and the Claude handler end-to-end. Closes: router-for-me#7521
…tional pool-wide protective pause - Detect the 403 PERMISSION_DENIED ErrorInfo reason=TOS_VIOLATION signature and mark the credential StatusDisabled + Disabled so it is excluded from rotation and persisted across restarts, while OAuth refresh stays intact; carry appeal_url/appeal_url_link_text through Error.Metadata to auth.Metadata and the management API. - Add an optional pool-wide protective pause (antigravity.tos-pause-window, default 6h) armed only by TOS results, never by transient 429s, covering all Antigravity request paths including SSE mid-stream error frames and CountTokens. - Distinguish terminal TOS results from stale/superseded results using a new Result.RefreshToken account hint so a same-account OAuth refresh applies the suspension while a genuine credential replacement discards it safely. Closes: router-for-me#7515
- Resolve and validate the target Codex credential proxy_url in StartSIWCBind and construct the OAuth client via codex.NewCodexAuthWithProxyURL so account proxy takes precedence over global proxy without falling back on failure. - Update siwcOAuthFactory to pass the resolved account proxy URL and add regression tests covering account proxy precedence, global proxy inheritance, direct bypass, unreachable proxy failure, and credential field preservation. Closes: router-for-me#7531
…ishReason before HTTP 200 commit - Stop counting signature-only empty-text parts as thought output in InspectGeminiZeroOutputPayload so leading signature-only frames stay buffered until real content arrives. - Fail buffered candidate-bearing zero-output streams with a retryable 502 on EOF in GeminiZeroOutputStreamGuard.Finalize and harden Antigravity OpenAI streaming translation against all-null delta emission. - Add unit, executor, and HTTP failover regression tests covering signature-only zero-output streams across downstream formats and credential rotation. Closes: router-for-me#7536
…igravity, Devin, and Claude - Add sensitive-patterns-replace configuration rules with load-time RE2 validation, comment-preserving YAML persistence, config diffing, and bounded matcher caching across Antigravity, Devin, and Claude cloak paths. - Apply ordered non-cascading regex replacements against original text boundaries while preserving Devin original-line drop ownership and existing sensitive-words-replace semantics. Closes: router-for-me#7540
Preserve upstream ancestry, native host integration and immutable runtime versioning. Verify the management center v8 config endpoint in packaged smoke tests.
PinableAgents
marked this pull request as ready for review
November 14, 2026 14:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completed
Merged upstream stable v8.0.70 (905e70c) into main e6b41c7, preserving both histories, Pinable customizations, host contract 1, ephemeral authentication, parent supervision, atomic reload and native discovery.
Verification
Published stable runtime
https://github.com/PinableAgents/CLIProxyAPI/releases/tag/pinable-runtime-20261114142530-e6b41c7a463d
Release is neither draft nor prerelease. Fifteen assets present. Published index and validation source SHA match main; six archive digests match the index; downloaded metadata/manifests/Linux archive checksums verified. Every native smoke report includes v8 management config success and host contract checks. The downloaded published Linux binary separately returned authenticated /v8/management/config HTTP 200 JSON and rejected wrong credentials, with exact main SHA and host contract 1.
Current Desktop runtime selection rules accept this newest stable matching tag/index (six targets, schema 1, desktop-portable, contract 1). No user's installed process or local configuration was changed. Live provider APIs were not exercised; hosted macOS multicast LAN discovery retains its documented infrastructure limitation.