mirror of
https://github.com/openai/codex.git
synced 2026-04-26 15:45:02 +00:00
feat: add thread spawn source for collab tools (#9769)
This commit is contained in:
@@ -1518,6 +1518,7 @@ pub enum SessionSource {
|
||||
pub enum SubAgentSource {
|
||||
Review,
|
||||
Compact,
|
||||
ThreadSpawn { parent_thread_id: ThreadId },
|
||||
Other(String),
|
||||
}
|
||||
|
||||
@@ -1539,6 +1540,9 @@ impl fmt::Display for SubAgentSource {
|
||||
match self {
|
||||
SubAgentSource::Review => f.write_str("review"),
|
||||
SubAgentSource::Compact => f.write_str("compact"),
|
||||
SubAgentSource::ThreadSpawn { parent_thread_id } => {
|
||||
write!(f, "thread_spawn_{parent_thread_id}")
|
||||
}
|
||||
SubAgentSource::Other(other) => f.write_str(other),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user