mirror of
https://github.com/openai/codex.git
synced 2026-04-26 23:55:25 +00:00
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:
8
codex-rs/state/migrations/0021_thread_spawn_edges.sql
Normal file
8
codex-rs/state/migrations/0021_thread_spawn_edges.sql
Normal 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);
|
||||
Reference in New Issue
Block a user