Skip to content

Add logout command to CLI and TUI - #1932

Merged
gpeal merged 2 commits into
mainfrom
gpeal/implement-logout-command
Aug 7, 2025
Merged

gpeal merged 2 commits into
mainfrom
gpeal/implement-logout-command

Conversation

@gpeal

@gpeal gpeal commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

Summary

  • support codex logout via new subcommand and helper that removes the stored auth.json
  • expose a logout function in codex-login and test it
  • add /logout slash command in the TUI; command list is filtered when not logged in and the handler deletes auth.json then exits

Testing

  • just fix (fails: failed to get diffy from crates.io)
  • cargo test --all-features (fails: failed to get diffy from crates.io)

https://chatgpt.com/codex/tasks/task_i_68945c3facac832ca83d48499716fb51

@gpeal gpeal added the codex Label used by connector to tag PRs that have been reviewed by Codex label Aug 7, 2025 — with ChatGPT Codex Connector
@gpeal
gpeal marked this pull request as ready for review August 7, 2025 08:03
@gpeal
gpeal force-pushed the gpeal/implement-logout-command branch from 09fb373 to 2243953 Compare August 7, 2025 08:03

@dylan-hurd-oai dylan-hurd-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after 1 question!

Comment thread codex-rs/tui/src/app.rs Resolved
@gpeal
gpeal merged commit 6d19b73 into main Aug 7, 2025
@gpeal
gpeal deleted the gpeal/implement-logout-command branch August 7, 2025 08:17
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

codex Label used by connector to tag PRs that have been reviewed by Codex

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants