mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Group external agent config migration into a module (#35992)
## What changed - Move the migration flow, model, and source picker under the `external_agent_config_migration` module. - Keep their tests and snapshots alongside the corresponding module files and update imports and snapshot source paths. GitOrigin-RevId: 4b2f83ca689534e4d9cd1dc7aaa8424e76166bba
This commit is contained in:
1 parent
1da9f846b3
commit
f9b18d04ba
18 files changed
+31
-29
No files matched your search
@@ -132,7 +132,7 @@ impl App {
|
||||
self.fetch_plugins_list(app_server_client, cwd);
|
||||
if should_report_completion {
|
||||
self.chat_widget.add_plain_history_lines(
|
||||
crate::external_agent_config_migration_flow::external_agent_config_migration_finished_lines(notification),
|
||||
crate::external_agent_config_migration::flow::external_agent_config_migration_finished_lines(notification),
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
||||
@@ -8,7 +8,7 @@ use super::session_lifecycle::ThreadAttachPresentation;
|
||||
use super::*;
|
||||
use crate::app_server_session::ForkGoalContinuation;
|
||||
use crate::config_update::format_config_error;
|
||||
use crate::external_agent_config_migration_flow::ExternalAgentConfigMigrationFlowOutcome;
|
||||
use crate::external_agent_config_migration::flow::ExternalAgentConfigMigrationFlowOutcome;
|
||||
#[cfg(target_os = "windows")]
|
||||
use codex_config::types::WindowsSandboxModeToml;
|
||||
|
||||
@@ -118,7 +118,7 @@ impl App {
|
||||
tui.frame_requester().schedule_frame();
|
||||
}
|
||||
AppEvent::OpenExternalAgentConfigMigration => {
|
||||
match crate::external_agent_config_migration_flow::handle_external_agent_config_migration_prompt(
|
||||
match crate::external_agent_config_migration::flow::handle_external_agent_config_migration_prompt(
|
||||
tui,
|
||||
app_server,
|
||||
&self.config,
|
||||
@@ -130,7 +130,7 @@ impl App {
|
||||
}
|
||||
Ok(ExternalAgentConfigMigrationFlowOutcome::NoItems) => {
|
||||
self.chat_widget.add_info_message(
|
||||
crate::external_agent_config_migration_flow::EXTERNAL_AGENT_CONFIG_MIGRATION_NO_ITEMS_MESSAGE
|
||||
crate::external_agent_config_migration::flow::EXTERNAL_AGENT_CONFIG_MIGRATION_NO_ITEMS_MESSAGE
|
||||
.to_string(),
|
||||
/*hint*/ None,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user