Skip to content

[TUI] add external config migration prompt when start TUI#17891

Merged
alexsong-oai merged 23 commits intomainfrom
alexs/tui-migrate
Apr 18, 2026
Merged

[TUI] add external config migration prompt when start TUI#17891
alexsong-oai merged 23 commits intomainfrom
alexs/tui-migrate

Conversation

@alexsong-oai
Copy link
Copy Markdown
Collaborator

@alexsong-oai alexsong-oai commented Apr 15, 2026

  • add a TUI startup migration prompt for external agent config
  • support migrating external configs including config, skills, AGENTS.md and plugins
  • gate the prompt behind features.external_migrate (default false)
Screenshot 2026-04-14 at 9 29 14 PM Screenshot 2026-04-14 at 9 29 26 PM

@alexsong-oai alexsong-oai changed the title Alexs/tui migrate [TUI] add external config migration prompt when start TUI Apr 15, 2026
@alexsong-oai
Copy link
Copy Markdown
Collaborator Author

@codex review

@alexsong-oai alexsong-oai marked this pull request as ready for review April 16, 2026 00:54
@alexsong-oai
Copy link
Copy Markdown
Collaborator Author

@codex review

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: d9a96f5974

ℹ️ 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 on lines +641 to +645
for (plugin_id, enabled) in plugins.iter().filter_map(|(plugin_id, plugin_config)| {
plugin_config
.get("enabled")
.and_then(TomlValue::as_bool)
.map(|enabled| (plugin_id, enabled))
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.

P2 Badge Honor implicit enabled=true when filtering configured plugins

configured_plugin_ids only records plugin entries that explicitly set enabled in config.toml. But plugin config defaults enabled to true, so a valid section like [plugins."formatter@acme-tools"] (without enabled) is still configured. This causes detect to treat it as unmigrated, re-showing migration prompts and attempting duplicate plugin migration.

Useful? React with 👍 / 👎.

Comment thread codex-rs/features/src/lib.rs Outdated
/// Enable plugins.
Plugins,
/// Show the startup prompt for migrating external agent config into Codex.
ExternalMigrate,
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.

Feature flags shouldn't be verbs

Comment thread codex-rs/tui/src/lib.rs
session_selection,
feedback,
should_show_trust_screen, // Proxy to: is it a first run in this directory?
should_show_trust_screen_flag, // Preserve the startup-time trust NUX signal before onboarding
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@etraut-openai FYI, I introduced a param entered_trust_nux, to track whether the user entered the trust screen and to display the migration prompt only if they did

@alexsong-oai
Copy link
Copy Markdown
Collaborator Author

@codex review

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: 57347f86dd

ℹ️ 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/external_agent_config_migration.rs
Comment thread codex-rs/tui/src/external_agent_config_migration_startup.rs
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai left a comment

Choose a reason for hiding this comment

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

Overall, looks good. I left a few suggestions for minor polish improvements.

Comment thread codex-rs/tui/src/external_agent_config_migration.rs Outdated
Comment thread codex-rs/tui/src/external_agent_config_migration.rs Outdated
@alexsong-oai alexsong-oai merged commit 93ff798 into main Apr 18, 2026
34 of 36 checks passed
@alexsong-oai alexsong-oai deleted the alexs/tui-migrate branch April 18, 2026 00:58
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 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.

4 participants