Skip to content

feat(tui): launch Codex from account and provider tabs - #77

Merged
xjoker merged 1 commit into
devfrom
cursor/tui-launch-feature-1ab3
Aug 26, 2026
Merged

xjoker merged 1 commit into
devfrom
cursor/tui-launch-feature-1ab3

Conversation

@xjoker

@xjoker xjoker commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

Adds TUI launch so users can start Codex from the dashboard after selecting an account or provider.

Behavior

  • Accounts tab: o launches the selected profile; account menu (Enter) also has o → launch
  • Providers tab: l or Enter launches the selected custom API provider
  • Codex runs in the foreground; the TUI suspends and resumes when Codex exits
  • Non-zero Codex exit codes are shown in the TUI status bar without terminating codex-switch

Implementation notes

  • launch_for_tui() returns Codex's exit code instead of calling process::exit
  • Launch logic moved to src/launch.rs so the lib target (TUI) can call it without pulling the full CLI command surface into lib.rs

Testing

  • cargo test --all
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --check
Open in Web Open in Cursor 

Add TUI launch for selected ChatGPT profiles and custom API providers.
Codex runs in the foreground while the TUI is suspended, then resumes
when the session ends. Expose launch_for_tui so the TUI does not exit
with Codex's non-zero status.

Co-authored-by: xJoker <[email protected]>
@xjoker
xjoker marked this pull request as ready for review August 26, 2026 09:39
@xjoker
xjoker merged commit d460587 into dev Aug 26, 2026
4 checks passed
@xjoker
xjoker deleted the cursor/tui-launch-feature-1ab3 branch September 9, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants