v0.10.5

v0.10.3 Release Notes

Released


v0.10.2 -> v0.10.3

Summary


Expands OAuth login so headless and remote sessions can authorize without a local browser callback. Timeouts, polling backoff and expiry margins scattered across providers now come from one shared set of defaults in core.
翻譯
擴充 OAuth 登入,讓無瀏覽器或遠端環境也能在沒有本機 callback 的情況下完成授權。散落於各 provider 的 timeout、輪詢 backoff 與到期緩衝,改由 core 的同一組預設值統一提供。

Changes


FEAT


  • Add Codex device code login: oauthCodex.LoginWithDeviceCode requests a user code, reports it through DeviceCode, and polls until authorized; oauthCodex.Login races the browser callback and device code flows and returns whichever completes first (@pardnchiu) [f985538]
  • Add pasted-code completion for Grok login: oauthGrok.Submit accepts a raw authorization code or the full callback URL, validates state against the pending login, and finishes LoginWithCallback without the local callback server (@pardnchiu) [f985538]
  • Add shared timing constants and HTTP client to core: TimeoutWait, TimeoutHTTPShort, TimeoutHTTPLong, IntervalBackoff, ExpiryToken, ExpirySafety, and NewStreamHTTPClient (response-header timeout plus overall timeout) (@pardnchiu) [f985538]

翻譯
  • 新增 Codex device code 登入:oauthCodex.LoginWithDeviceCode 申請 user code、透過 DeviceCode 回報並輪詢至授權完成;oauthCodex.Login 同時跑瀏覽器 callback 與 device code 兩條流程,先完成者勝出
  • 新增 Grok 登入的貼上授權碼完成方式:oauthGrok.Submit 接受授權碼或完整 callback URL,比對進行中登入的 state 後,不經本機 callback server 即完成 LoginWithCallback
  • 新增 core 共用時間常數與 HTTP client:TimeoutWait、TimeoutHTTPShort、TimeoutHTTPLong、IntervalBackoff、ExpiryToken、ExpirySafety,以及設定 response header timeout 與整體 timeout 的 NewStreamHTTPClient


FIX


  • Fix Copilot device flow polling: a missing or zero interval falls back to 5s instead of a busy loop, a missing or zero expires_in falls back to a 10-minute wait instead of failing immediately, the wait is capped at 10 minutes, and slow_down responses now extend the interval by 5s instead of aborting login (@pardnchiu) [f985538]

翻譯
  • 修正 Copilot device flow 輪詢:interval 缺失或為 0 時退回 5 秒而非空轉,expires_in 缺失或為 0 時退回 10 分鐘而非立即失敗,等待上限 10 分鐘;收到 slow_down 改為間隔加 5 秒繼續輪詢,不再中止登入


UPDATE


  • Update HTTP timeouts: model/usage lookups, the Copilot model lookup context, the Copilot device flow client, and OAuth callback server read/write timeouts move from 10s (Copilot device flow from 30s) to 15s; request clients move from 10 to 15 minutes (@pardnchiu) [f985538]
  • Update Gemini voice summary timeout from 2 to 5 minutes (@pardnchiu) [f985538]

翻譯
  • 調整 HTTP timeout:模型與用量查詢、Copilot 模型查詢 context、Copilot device flow client、OAuth callback server 讀寫逾時由 10 秒(Copilot device flow 由 30 秒)改為 15 秒;主要請求 client 由 10 分鐘改為 15 分鐘
  • 調整 Gemini 語音摘要逾時由 2 分鐘改為 5 分鐘


REFACTOR


  • Replace per-package timing values with the core constants: Gemini stream idle window, Gemini cache TTL and expiry margin, Codex/Grok default token expiry, token early-expiry checks, and the four duplicated response-header-timeout HTTP clients now share core definitions with unchanged values (@pardnchiu) [f985538]

翻譯
  • 各套件的時間值改用 core 常數:Gemini 串流閒置窗口、Gemini 快取 TTL 與到期緩衝、Codex/Grok 預設 token 效期、token 提前過期判斷,以及四份重複的 response header timeout HTTP client 改為共用 core 定義,數值不變


Scope


  • core/ — FEAT, UPDATE (type.go, provider.go)
  • core/oauth/codex/ — FEAT, REFACTOR (device.go, type.go, login.go, oauth.go, refresh.go)
  • core/oauth/grok/ — FEAT, REFACTOR (login.go, oauth.go, refresh.go)
  • core/oauth/copilot/ — FIX, UPDATE, REFACTOR (oauth.go, refresh.go)
  • core/gemini/ — UPDATE, REFACTOR (cache.go, models.go, stream.go, summary/voice.go)
  • core/grokOauth/, core/openaiCodex/ — UPDATE, REFACTOR (multiple files)
  • core/copilot/ — UPDATE (models.go, send.go, usage.go)
  • core/compat/, core/claude/, core/cloudflare/, core/deepseek/, core/grok/, core/mistral/, core/nvidia/, core/ollamaCloud/, core/openRouter/, core/openai/, core/typesafe/ — UPDATE



Generated by SKILL