8 Commits

Author SHA1 Message Date
Luis Pater
e230a04b01 fix(server): prevent data races during concurrent config access and reloads
- Access configuration safely via getters across server routes, middleware, and service routines.
- Clone configuration snapshots for runtime and synchronize access in management handlers.
- Guard configuration YAML snapshots with mutex locks during reloads.

Closes: #6583
2026-10-14 04:39:43 +08:00
Luis Pater
7c2133e201 fix(cliproxy): reconcile concurrent auth updates during batch model registration
- Use latest auth state in model registration to prevent applying stale snapshots
- Reconcile and re-register auths with updated generations after batch registration tasks complete

Closes: #6453
2026-10-08 16:45:45 +08:00
sususu
7e857c375a feat(antigravity): refresh per-account model entitlements safely
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.
2026-10-03 21:26:41 +08:00
Luis Pater
31f4cfab3f feat: migrate CLIProxyAPI to version 8 2026-09-27 14:42:26 +08:00
Luis Pater
a5ab69521f feat: add full support for kimi.ai oauth and runtime execution 2026-09-21 04:13:44 +08:00
Luis Pater
e3cbe437d0 feat(auth): add tests to ensure async operations don’t block unrelated actions
- Add tests to verify that runtime hooks, auth modifications, and related updates do not block on unrelated operations such as antigravity probes or plugin virtual models.
- Introduce detailed scenarios, e.g., stale disables, batch operations, and conflict handling during concurrent auth updates.
- Refactor locking mechanisms to avoid unnecessary blocking during hooks and model registrations.

Fixed: #5813
Closes: #5773
2026-09-15 01:23:26 +08:00
Luis Pater
60e5b8bd43 feat(management): add endpoint to refresh auth files
- Add `RefreshAuthFiles` handler to trigger active refresh for single or all auth files.
- Support specifying refresh targets via query parameters or JSON request body.
- Invoke auth manager force refresh operations and return refreshed credential states.

Closes: #5628
2026-09-09 20:05:33 +08:00
Luis Pater
fe4ae4989c chore(pluginhost): refactor and remove unused interceptors and executor methods
- Removed deprecated interceptor and executor-related methods, including `callRequestInterceptor`, `callResponseInterceptor`, and `callStreamChunkInterceptor`.
- Consolidated unused logic and pruned redundant imports to streamline `adapters.go`.
- No functional changes.
2026-07-26 14:31:45 +08:00