fix(background-agent): clean tmux cancel bookkeeping
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -493,6 +493,10 @@ export class BackgroundManager {
|
||||
|
||||
if (this.tasks.get(task.id)?.status === "cancelled") {
|
||||
await this.abortSessionWithLogging(sessionID, "cancelled during tmux setup")
|
||||
subagentSessions.delete(sessionID)
|
||||
if (task.rootSessionID) {
|
||||
this.unregisterRootDescendant(task.rootSessionID)
|
||||
}
|
||||
this.concurrencyManager.release(concurrencyKey)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user