Skip to content

Test that a running session keeps its subagent types until it is resumed - #121

Merged
m4rocks merged 1 commit into
mainfrom
subagents-apply-on-resume
Nov 17, 2026
Merged

m4rocks merged 1 commit into
mainfrom
subagents-apply-on-resume

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Summary

Two items on #110 were left to verify. This adds a test for one and records the real runs for the other.

  • A running session keeps its subagent types until it is resumed. The headless test now changes the Codex models while a session runs, checks the session's process still has the types it started with, then resumes it and waits for the new ones.
  • Without npx, or when Codex isn't signed in, the report starts with "Codex failed:".

Evidence

  • custom_subagents_reach_new_sessions passes with the new steps.
  • The helper with PATH set to System32 only: {"kind":"failed","reason":"npx was not found on PATH. Codex subagents need Node.js."}.
  • The helper with an empty CODEX_HOME, which stands in for codex logout without signing anyone out: {"kind":"failed","reason":"Codex isn't signed in. Run codex login, then try again."}.
  • The mod test "a failure is handed back as the report" checks that the mod puts "Codex failed: " in front of the reason.

Risk

Test-only change.

Closes #110

The headless test now changes the Codex models while a session runs, checks the session's process still has the types it started with, then resumes it and waits for the new ones.

Real helper runs covered the rest of #110: with npx off PATH the helper reports "npx was not found on PATH. Codex subagents need Node.js.", and with an empty CODEX_HOME it reports "Codex isn't signed in. Run `codex login`, then try again."; the mod puts "Codex failed: " in front of both.

Closes #110
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 17, 2026 10:13am UTC

@m4rocks
m4rocks merged commit 9b7e77a into main Nov 17, 2026
5 checks passed
@m4rocks
m4rocks deleted the subagents-apply-on-resume branch November 24, 2026 22:38

This branch was successfully deployed

1 active deployment
Preview — 13f75a2c Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom subagents: run Codex (GPT models) as Claude Code subagents

1 participant