mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
[codex] show external import result counts (#29567)
## What changed - Show per-type import counts in the `/import` review UI and started message. - Render completion results as a multi-line summary with total imported/failed counts and one row per import type. - Add snapshot coverage for the updated review and completion output. <img width="537" height="322" alt="Screenshot 2026-06-23 at 9 41 20 PM" src="https://github.com/user-attachments/assets/166542eb-2097-4b2b-8130-8f6fd8c680ce" /> ## Why The TUI previously only reported that Claude Code import started or finished. Users could not see how many items of each type were selected or how many actually imported versus failed.
This commit is contained in:
1 parent
69b76e9d07
commit
3694b48a82
22 files changed
+714
-45
No files matched your search
@@ -103,7 +103,7 @@ impl App {
|
||||
);
|
||||
return;
|
||||
}
|
||||
ServerNotification::ExternalAgentConfigImportCompleted(_) => {
|
||||
ServerNotification::ExternalAgentConfigImportCompleted(notification) => {
|
||||
let should_report_completion =
|
||||
app_server_client.consume_external_agent_config_import_completion();
|
||||
if let Err(err) = self.refresh_in_memory_config_from_disk().await {
|
||||
@@ -117,10 +117,8 @@ impl App {
|
||||
self.chat_widget.submit_op(AppCommand::reload_user_config());
|
||||
self.fetch_plugins_list(app_server_client, cwd);
|
||||
if should_report_completion {
|
||||
self.chat_widget.add_info_message(
|
||||
crate::external_agent_config_migration_flow::EXTERNAL_AGENT_CONFIG_MIGRATION_FINISHED_MESSAGE
|
||||
.to_string(),
|
||||
/*hint*/ None,
|
||||
self.chat_widget.add_plain_history_lines(
|
||||
crate::external_agent_config_migration_flow::external_agent_config_migration_finished_lines(notification),
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
||||
@@ -119,8 +119,8 @@ impl App {
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(ExternalAgentConfigMigrationFlowOutcome::Started(message)) => {
|
||||
self.chat_widget.add_info_message(message, /*hint*/ None);
|
||||
Ok(ExternalAgentConfigMigrationFlowOutcome::Started(lines)) => {
|
||||
self.chat_widget.add_plain_history_lines(lines);
|
||||
}
|
||||
Ok(ExternalAgentConfigMigrationFlowOutcome::NoItems) => {
|
||||
self.chat_widget.add_info_message(
|
||||
|
||||
Reference in new issue
Block a user