Preserve plugin install failure subtypes during imports (#33182)

## What changed

- Add `subErrorType` to external agent config import failures and carry it through progress and completion notifications, persisted import histories, and analytics.
- Expose plugin store failure subtypes from `PluginInstallError` so manual installs and imported plugins report details such as `failed_to_copy_plugin_file` while failures without a subtype remain `null`.
- Keep existing persisted import records compatible by defaulting the new field when it is absent.

## Testing

- Cover store I/O subtype extraction, analytics serialization, persisted import histories, and migration notification fixtures.

GitOrigin-RevId: ec1a85623fc826cbd7cfe9f55c2dd2bc86665937
This commit is contained in:
charlesgong-openai authored and copyberry committed 2026-07-14 22:21:27 +00:00
1 parent 44954d1b4b
commit 3fae30dd85
22 files changed
+114 -29

No files matched your search

+3
View File
@@ -841,6 +841,7 @@ impl AnalyticsReducer {
plugin,
source,
error_type,
sub_error_type,
} = input;
out.push(TrackEventRequest::PluginInstallFailed(
CodexPluginInstallFailedEventRequest {
@@ -849,6 +850,7 @@ impl AnalyticsReducer {
plugin: codex_plugin_metadata(plugin),
source,
error_type,
sub_error_type,
},
},
));
@@ -888,6 +890,7 @@ impl AnalyticsReducer {
item_type: input.item_type,
failure_stage: input.failure_stage,
error_type: input.error_type,
sub_error_type: input.sub_error_type,
product_client_id: Some(originator().value),
},
},