Skip to content

TUI: Remove core protocol dependency [2/7]#20173

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

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

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

Why

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

Before the TUI event bus can stop carrying core Op values, AppCommand needs to be an owned TUI command shape rather than a thin wrapper around Op.

What changed

  • Replaced the opaque AppCommand(Op) wrapper with explicit owned variants for the commands the TUI submits.
  • Preserved into_core() so this layer does not yet change the app/thread submission boundary.
  • Kept existing core leaf types for now so this remains a mechanical command-shape refactor.

Verification

  • cargo check -p codex-tui

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: 0bebccff40

ℹ️ 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-1 to main April 29, 2026 16:10
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.

Code looks good.

I ran smoke tests for submitting a message, changing permissions, and interrupting an active conversation.

@etraut-openai etraut-openai merged commit 4456298 into main Apr 29, 2026
25 checks passed
@etraut-openai etraut-openai deleted the etraut/tui-cleanup-2 branch April 29, 2026 17:28
@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