mirror of
https://github.com/openai/codex.git
synced 2026-11-24 15:21:20 +00:00
Report detailed session import error types (#33863)
## What changed - Add stable `sub_error_type` values for external-agent session import failures, including detection, preparation, configuration, thread storage, and ledger update errors. - Preserve these values through import results and analytics while leaving unrelated plugin and memory errors unchanged. ## Testing - Verify that a missing session reports `session_not_detected` in both the completed import result and its analytics event. GitOrigin-RevId: cbf1f52df4bb1ac107442c4afa0b130fa32ad0a5
This commit is contained in:
1 parent
20465d30ae
commit
ab0f71aed6
5 files changed
+98
-18
No files matched your search
@@ -208,6 +208,7 @@ impl ExternalAgentConfigService {
|
||||
record_import_error(
|
||||
&mut item_result,
|
||||
"plugin_import",
|
||||
/*sub_error_type*/ None,
|
||||
err.to_string(),
|
||||
/*source*/ None,
|
||||
);
|
||||
@@ -222,6 +223,7 @@ impl ExternalAgentConfigService {
|
||||
record_import_error(
|
||||
&mut item_result,
|
||||
"plugin_import",
|
||||
/*sub_error_type*/ None,
|
||||
err.to_string(),
|
||||
/*source*/ None,
|
||||
);
|
||||
@@ -239,6 +241,7 @@ impl ExternalAgentConfigService {
|
||||
record_import_error(
|
||||
&mut item_result,
|
||||
"plugin_import",
|
||||
/*sub_error_type*/ None,
|
||||
err.to_string(),
|
||||
/*source*/ None,
|
||||
);
|
||||
@@ -350,6 +353,7 @@ impl ExternalAgentConfigService {
|
||||
record_import_error(
|
||||
&mut item_result,
|
||||
"memory_import",
|
||||
/*sub_error_type*/ None,
|
||||
failure.message,
|
||||
Some(failure.project_key),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user