mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
Attach connector caches to diagnostic uploads (#32891)
## What changed - Include the active Codex Apps tools cache and connector directory cache, when available, in diagnostic uploads that include logs. - Resolve cache paths from the current authentication context and use stable attachment filenames. - List both optional cache files in the upload consent dialog. ## Testing - Add coverage for selecting existing active cache files, including a directory cache without an account ID. - Update consent dialog snapshots to include the optional attachments. GitOrigin-RevId: 1d4ffbf2bcb96653f03dc25f91d80dd65038d585
This commit is contained in:
1 parent
bb947e8e36
commit
fb350d1e7d
10 files changed
+197
-13
No files matched your search
@@ -26,7 +26,8 @@ impl ConnectorDirectoryCacheContext {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn cache_path(&self) -> PathBuf {
|
||||
/// Returns the persisted connector directory cache path for this identity.
|
||||
pub fn cache_path(&self) -> PathBuf {
|
||||
let cache_key_json = serde_json::to_string(&self.cache_key).unwrap_or_default();
|
||||
let cache_key_hash = sha1_hex(&cache_key_json);
|
||||
self.codex_home
|
||||
|
||||
Reference in new issue
Block a user