Preserve persisted thread git info in resume (#13504)

## Summary
- ensure `thread.resume` reuses the stored `gitInfo` instead of
rebuilding it from the live working tree
- persist and apply thread git metadata through the resume flow and add
a regression test covering branch mismatch cases

## Testing
- Not run (not requested)
This commit is contained in:
joeytrasatti-openai
2026-03-04 17:16:43 -08:00
committed by GitHub
parent 95aad8719f
commit 22f4113ac1
3 changed files with 366 additions and 84 deletions

View File

@@ -26,6 +26,7 @@ pub(crate) struct PendingThreadResumeRequest {
pub(crate) request_id: ConnectionRequestId,
pub(crate) rollout_path: PathBuf,
pub(crate) config_snapshot: ThreadConfigSnapshot,
pub(crate) thread_summary: codex_app_server_protocol::Thread,
}
// ThreadListenerCommand is used to perform operations in the context of the thread listener, for serialization purposes.