feat: add graph representation of agent network (#15056)

Add a representation of the agent graph. This is now used for:
* Cascade close agents (when I close a parent, it close the kids)
* Cascade resume (oposite)

Later, this will also be used for post-compaction stuffing of the
context

Direct fix for: https://github.com/openai/codex/issues/14458
This commit is contained in:
jif-oai
2026-03-19 10:21:25 +00:00
committed by GitHub
parent db5781a088
commit 70cdb17703
15 changed files with 1561 additions and 52 deletions

View File

@@ -0,0 +1,8 @@
CREATE TABLE thread_spawn_edges (
parent_thread_id TEXT NOT NULL,
child_thread_id TEXT NOT NULL PRIMARY KEY,
status TEXT NOT NULL
);
CREATE INDEX idx_thread_spawn_edges_parent_status
ON thread_spawn_edges(parent_thread_id, status);