# v1.3.12 Release Notes

> v1.3.11 -> v1.3.12

## Summary

Lets OAuth sign-in finish on machines whose browser cannot reach the local callback, by pasting the code back or completing it from another device. The sign-in popup now shows how long is left, cancels cleanly, and opens a browser only where one exists. The README is restructured around a quick start.

<details>
<summary>翻譯</summary>

瀏覽器連不到本機 callback 的環境也能完成 OAuth 登入：可貼回授權碼，或改在另一台裝置完成。登入視窗會顯示剩餘時間、可乾淨取消，且只在有圖形介面時開啟瀏覽器。README 改以快速開始為主軸重新編排。

</details>

## Changes

### FEAT

- Finish Grok sign-in by pasting the code or callback URL that xAI shows, from an input inside the TUI sign-in popup or a Web UI dialog; the Web UI submits it to `POST /v1/provider/:provider/oauth/code`, which only accepts loopback callers (@pardnchiu) [4c1562ab]
- Run Codex browser sign-in and device-code sign-in at the same time, showing the device URL and user code so the login can be completed from another device (@pardnchiu) [4c1562ab]

<details>
<summary>翻譯</summary>

- Grok 登入可貼上 xAI 顯示的授權碼或 callback URL 完成，TUI 在登入視窗內直接輸入，Web UI 另開對話框；Web UI 經 `POST /v1/provider/:provider/oauth/code` 送出，只接受 loopback 呼叫
- Codex 同時進行瀏覽器登入與 device code 登入，並顯示 device URL 與使用者代碼，可在另一台裝置完成登入

</details>

### UPDATE

- Show a 10-minute countdown in the OAuth sign-in popup; Esc now cancels the login and closes the popup, so the callback port is released (@pardnchiu) [4c1562ab]
- Open the sign-in browser automatically, Copilot included, only when a GUI is available; SSH sessions and Linux without a display skip it (@pardnchiu) [4c1562ab]

<details>
<summary>翻譯</summary>

- OAuth 登入視窗顯示 10 分鐘倒數；Esc 會取消登入並關閉視窗，callback port 隨之釋放
- 只在有圖形介面時自動開啟登入瀏覽器（含 Copilot）；SSH 與無 display 的 Linux 不開啟

</details>

### FIX

- Mark the active left-tab link in the Web UI according to the current page and tab (@pardnchiu) [62473712]

<details>
<summary>翻譯</summary>

- Web UI 左側 tab 依目前頁面與分頁標示選中狀態

</details>

## Scope

- `internal/runtime/tui/` — FEAT, UPDATE (`commandModelAdd.go`, `handlerPopup.go`, `update.go`, `view.go`)
- `internal/runtime/routes/` — FEAT (`new.go`, `handler/providers.go`)
- `page/src/js/`, `page/src/sass/index.scss`, `page/public/` — FEAT, FIX
- `go.mod`, `go.sum` — FEAT, CHORE
- `README.md`, `doc/README.zh.md` — DOC

---

Generated by [SKILL](https://github.com/pardnchiu/skill-version-generate)
