core-agent-ide/codex-rs/tui_app_server
Eric Traut 49e7dda2df
Add device-code onboarding and ChatGPT token refresh to app-server TUI (#14952)
## Summary
- add device-code ChatGPT sign-in to `tui_app_server` onboarding and
reuse the existing `chatgptAuthTokens` login path
- fall back to browser login when device-code auth is unavailable on the
server
- treat `ChatgptAuthTokens` as an existing signed-in ChatGPT state
during onboarding
- add a local ChatGPT auth loader for handing local tokens to the app
server and serving refresh requests
- handle `account/chatgptAuthTokens/refresh` instead of marking it
unsupported, including workspace/account mismatch checks
- add focused coverage for onboarding success, existing auth handling,
local auth loading, and refresh request behavior

## Testing
- `cargo test -p codex-tui-app-server`
- `just fix -p codex-tui-app-server`
2026-03-17 14:12:12 -06:00
..
frames Move TUI on top of app server (parallel code) (#14717) 2026-03-16 10:49:19 -06:00
src Add device-code onboarding and ChatGPT token refresh to app-server TUI (#14952) 2026-03-17 14:12:12 -06:00
tests Move TUI on top of app server (parallel code) (#14717) 2026-03-16 10:49:19 -06:00
BUILD.bazel Move TUI on top of app server (parallel code) (#14717) 2026-03-16 10:49:19 -06:00
Cargo.toml Move TUI on top of app server (parallel code) (#14717) 2026-03-16 10:49:19 -06:00
prompt_for_init_command.md Move TUI on top of app server (parallel code) (#14717) 2026-03-16 10:49:19 -06:00
styles.md Move TUI on top of app server (parallel code) (#14717) 2026-03-16 10:49:19 -06:00
tooltips.txt Move TUI on top of app server (parallel code) (#14717) 2026-03-16 10:49:19 -06:00