Skip to content

TUI: Remove core protocol dependency [3/7]#20174

Merged
etraut-openai merged 3 commits intomainfrom
etraut/tui-cleanup-3
Apr 29, 2026
Merged

TUI: Remove core protocol dependency [3/7]#20174
etraut-openai merged 3 commits intomainfrom
etraut/tui-cleanup-3

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

Why

This is part 3 of a 7-PR stack to remove direct codex_protocol::protocol usage from codex-tui while keeping each layer reviewable and shippable.

With AppCommand now explicit, the internal app event bus can carry TUI commands directly instead of bouncing through core Op values.

What changed

  • Changed AppEvent::CodexOp and AppEvent::SubmitThreadOp to carry AppCommand.
  • Updated app-event senders and direct emitters to submit AppCommand values.
  • Adjusted tests to match AppCommand or convert back through into_core() where they intentionally assert legacy payload equality.

Verification

  • cargo test -p codex-tui --no-run

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 595b7488ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/app_command.rs
Base automatically changed from etraut/tui-cleanup-2 to main April 29, 2026 17:28
Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

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

Ran the following manual testing: interrupting a running conversion, renaming a session and using the new name to restart it and /compact. They all worked as expected.

Code looks good. Approved.

@etraut-openai etraut-openai merged commit d0204c3 into main Apr 29, 2026
25 checks passed
@etraut-openai etraut-openai deleted the etraut/tui-cleanup-3 branch April 29, 2026 17:52
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants