Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/validate-39951-subagent-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ jobs:
"agent_type": "worker",
"fork_context": true,
}))?;'''
if text.count(old) != 1:
raise SystemExit(f"expected one SubagentStart test anchor, found {text.count(old)}")
path.write_text(text.replace(old, new, 1))
start = text.index("async fn subagent_start_replaces_session_start_and_injects_context")
end = text.index("\n#[tokio::test", start + 1)
section = text[start:end]
if section.count(old) != 1:
raise SystemExit(
f"expected one SubagentStart test anchor in target function, found {section.count(old)}"
)
path.write_text(text[:start] + section.replace(old, new, 1) + text[end:])
PY
cargo fmt --manifest-path codex-rs/Cargo.toml --all
git diff --check
Expand Down Expand Up @@ -96,9 +101,14 @@ jobs:
"agent_type": "worker",
"fork_context": true,
}))?;'''
if text.count(old) != 1:
raise SystemExit(f"expected one SubagentStart test anchor, found {text.count(old)}")
path.write_text(text.replace(old, new, 1))
start = text.index("async fn subagent_start_replaces_session_start_and_injects_context")
end = text.index("\n#[tokio::test", start + 1)
section = text[start:end]
if section.count(old) != 1:
raise SystemExit(
f"expected one SubagentStart test anchor in target function, found {section.count(old)}"
)
path.write_text(text[:start] + section.replace(old, new, 1) + text[end:])
PY
cargo fmt --manifest-path codex-rs/Cargo.toml --all
git diff --check
Expand Down
1 change: 1 addition & 0 deletions validation-subagent-fork.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trigger forked SubagentStart lifecycle validation
Loading