feat: add thread spawn source for collab tools (#9769)

This commit is contained in:
jif-oai
2026-01-24 15:21:34 +01:00
committed by GitHub
parent eb7558ba85
commit 515ac2cd19
7 changed files with 75 additions and 26 deletions

View File

@@ -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),
}
}