Commit Graph

74 Commits

Author SHA1 Message Date
世界 d690a17780 Fix USB/IP import lease and attach races 2026-06-09 10:42:26 +08:00
世界 ff9336435e usbip: fix review findings 2026-06-09 10:42:26 +08:00
世界 35347af96d usbip: use event-driven status updates 2026-06-09 10:42:25 +08:00
世界 09491ff209 Cleanup codes 2026-06-09 10:42:25 +08:00
世界 26bd37a012 Fix USB/IP matched retention and snapshot ordering 2026-06-09 10:42:25 +08:00
世界 0e34a2d088 Fix usbip host bind recovery 2026-06-09 10:42:25 +08:00
世界 7b73e80df3 Fix Darwin USB/IP transfer cleanup 2026-06-09 10:42:24 +08:00
世界 d76f9692be Fix USB/IP standard polling and Darwin busy state 2026-06-09 10:42:24 +08:00
世界 9f884487e9 Fix USB/IP handoff and shutdown cleanup 2026-06-09 10:42:24 +08:00
世界 786c7b0138 usbip: harden linux interop teardown 2026-06-09 10:42:24 +08:00
世界 0de8058c5f usbip: address review findings 2026-06-09 10:42:24 +08:00
世界 1b6d586930 fix usbip control resync and darwin bounds 2026-06-09 10:42:23 +08:00
世界 44214c4c55 Fix USB/IP control status updates 2026-06-09 10:42:23 +08:00
世界 f1a516cb6e Serialize Darwin USB host teardown 2026-06-09 10:42:23 +08:00
世界 0135eaef7c usbip: add extended control protocol 2026-06-09 10:42:23 +08:00
世界 e94a99d5b9 Fix USB/IP lint and vet issues 2026-06-09 10:42:22 +08:00
世界 7ab2269998 Fix USB/IP unlink and runtime test gating 2026-06-09 10:42:22 +08:00
世界 9ea04956fa Fix Darwin USB/IP availability and doorbell handling 2026-06-09 10:42:22 +08:00
世界 3cfe767ae4 Fix USB/IP Darwin protocol handling 2026-06-09 10:42:22 +08:00
世界 1cf178440f usbip: add linux socketpair relay fallback 2026-06-09 10:42:22 +08:00
世界 5450351607 Add Darwin USB/IP support 2026-06-09 10:42:21 +08:00
世界 d408350363 usbip: cover import-all retry refresh 2026-06-09 10:42:21 +08:00
世界 033b905bc6 usbip: harden linux import/export handling 2026-06-09 10:42:21 +08:00
世界 4608c0c656 Add usbip virtual-device interop tests 2026-06-09 10:42:20 +08:00
世界 5e8c224be3 Add usbip tests and auto-load drivers 2026-06-09 10:42:20 +08:00
世界 2435611360 service/usbip: add hotplug control push path 2026-06-09 10:42:20 +08:00
世界 ad5b1de82d Fix USBIP parsing and lifecycle handling 2026-06-09 10:42:20 +08:00
世界 323b406971 Fix USB/IP re-enumeration and export availability 2026-06-09 10:42:20 +08:00
世界 bb1ab8080a Add Linux usbip client and server services 2026-06-09 10:42:19 +08:00
世界 b8ef5b2ad1 oom-killer: Remove log "OOM draft discarded" 2026-06-08 08:51:49 +08:00
世界 b19d4a92e2 Fix lint errors 2026-06-08 08:51:48 +08:00
世界 fd31d8b2a8 Fix reset network 2026-06-08 08:51:47 +08:00
世界 db08f3f699 dns: Add preferred_by rule item 2026-06-08 08:51:46 +08:00
世界 4c9978fc30 Improve oom-killer 2026-06-08 08:51:45 +08:00
世界 b40e8c5f19 Improve UDP batch support 2026-06-08 08:51:45 +08:00
世界 d8420eb305 platform: Improve oom-killer 2026-06-08 08:51:44 +08:00
世界 12a462142a Add ACME profile support for IP address certificates 2026-06-08 08:51:44 +08:00
世界 ab2a90d5e7 Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-06-08 08:51:40 +08:00
世界 21bc7c3ada oom-killer: Record report before reset network 2026-06-08 08:51:40 +08:00
世界 2d20363ef2 oom-killer: Free memory on pressure notification and use gradual interval backoff 2026-06-08 08:51:35 +08:00
世界 d4cd859377 platform: Add OOM Report & Crash Report 2026-06-08 08:51:34 +08:00
nekohasekai 2c01a637a6 Refactor ACME support to certificate provider 2026-06-08 08:51:34 +08:00
世界 5e7fd7ad78 Fix lint errors 2026-05-13 23:39:27 +08:00
世界 49c450d942 ccm/ocm: Fix missing metering for 1M context and /fast mode
CCM: Fix 1M context detection - use prefix match for versioned
beta strings (e.g. "context-1m-2025-08-07") and include cache
tokens in the 200K threshold check per Anthropic billing docs.

OCM: Add GPT-5.4 family pricing (standard/priority/flex) with
extended context (>272K) premium pricing support. Add context
window tracking to usage combinations, mirroring CCM's pattern.
Update normalizeGPT5Model defaults to latest known models.
2026-03-11 20:41:29 +08:00
世界 67621ee6ba Fix OCM websocket proxy lifecycle and headers 2026-03-10 22:04:11 +08:00
世界 a09ffe6a0f ccm/ocm: Add by_user_and_week cost summary 2026-03-10 22:04:11 +08:00
世界 e0be8743f6 ocm: Add Responses WebSocket API proxy and fix client config docs
Support the OpenAI Responses WebSocket API (`wss://.../v1/responses`)
for bidirectional frame proxying with usage tracking.
Fix Codex CLI client config examples to use profiles and correct flags.

Update openai-go v3.24.0 → v3.26.0.
2026-03-10 22:04:11 +08:00
世界 df0bf927e4 Fix missing with_gvisor build tag for tailscale 2026-03-09 20:18:28 +08:00
Oleg Artyomov 1d388547ee service/ccm: strip Accept-Encoding before forwarding to avoid untracked usage
When clients (e.g. Node.js Anthropic SDK) explicitly set Accept-Encoding: gzip,
Go's http.Transport does not transparently decompress the response body, because
it only does so when it added the header itself. This causes CCM's json.Unmarshal
to receive raw gzip bytes, silently failing to parse usage data and leaving the
usage counter unchanged.

Fix: remove Accept-Encoding from the outgoing proxy request. Transport adds it
automatically and transparently decompresses response.Body before CCM reads it.

Wire compression (CCM→Anthropic) is preserved — Transport still negotiates gzip.
Only CCM→localhost path is affected; compression on loopback has no practical
benefit.
2026-03-09 20:06:34 +08:00
世界 65150f5cc3 platform: Improve OOM killer for iOS 2026-02-27 14:58:06 +08:00