mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
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
9 lines
249 B
SQL
9 lines
249 B
SQL
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);
|