Skip to content

Conversation

@charley-oai
Copy link
Collaborator

@charley-oai charley-oai commented Jan 28, 2026

Summary

Adds a simple /plan slash command in the TUI that switches the active collaboration mode to Plan mode. The command is only available when the
collaboration_modes feature is enabled.

Changes

  • Add plan_mask helper in codex-rs/tui/src/collaboration_modes.rs
  • Add SlashCommand::Plan metadata in codex-rs/tui/src/slash_command.rs
  • Implement and hard-gate /plan dispatch in codex-rs/tui/src/chatwidget.rs
  • Hide /plan when collaboration modes are disabled in codex-rs/tui/src/bottom_pane/slash_commands.rs
  • Update command popup tests in codex-rs/tui/src/bottom_pane/command_popup.rs
  • Add a focused unit test for /plan in codex-rs/tui/src/chatwidget/tests.rs

Behavior notes

  • /plan is now a no-op if Feature::CollaborationModes is disabled.
  • When enabled, /plan switches directly to Plan mode without opening the picker.

Codex author

codex resume 019c05da-d7c3-7322-ae2c-3ca38d0ef702

@charley-oai
Copy link
Collaborator Author

@codex review this

@charley-oai charley-oai marked this pull request as draft January 28, 2026 19:49
@charley-oai charley-oai marked this pull request as ready for review January 28, 2026 19:50
@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Bravo.

ℹ️ 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".

@charley-oai
Copy link
Collaborator Author

@codex review this

Copy link
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: d1bd5dc14b

ℹ️ 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".

@charley-oai
Copy link
Collaborator Author

@codex review this

Copy link
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: 82ee4bc672

ℹ️ 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".

@charley-oai charley-oai merged commit 1195822 into main Jan 30, 2026
31 checks passed
@charley-oai charley-oai deleted the slash-plan branch January 30, 2026 00:40
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 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.

3 participants