fix(pi): load subagent extension in child sessions #39

Merged
alexion merged 1 commits from fix-subagent-nested-tools into main 2026-08-01 19:35:50 -04:00
Owner

Summary

  • keep child subagent sessions isolated with --no-extensions while explicitly loading the subagents extension
  • add a runner regression test for child RPC arguments
  • verify explicit extension loading exposes subagent commands in RPC mode

Verification

  • nix shell nixpkgs#nodejs_24 nixpkgs#tsx -c tsx --test modules/agents/pi/extensions/subagents/runner.test.ts
  • nix shell nixpkgs#nodejs_24 nixpkgs#tsx -c tsx --test modules/agents/pi/extensions/subagents/*.test.ts
  • nix build --no-link .#nixosConfigurations.neogaia.config.home-manager.users.alexion.home.file.'"/home/alexion/.pi/agent/extensions"'.source
  • RPC smoke with pi --mode rpc --offline --no-extensions --extension ./modules/agents/pi/extensions/subagents/index.ts --tools subagent_list,subagent_spawn and get_commands
  • nix flake check
## Summary - keep child subagent sessions isolated with `--no-extensions` while explicitly loading the subagents extension - add a runner regression test for child RPC arguments - verify explicit extension loading exposes subagent commands in RPC mode ## Verification - `nix shell nixpkgs#nodejs_24 nixpkgs#tsx -c tsx --test modules/agents/pi/extensions/subagents/runner.test.ts` - `nix shell nixpkgs#nodejs_24 nixpkgs#tsx -c tsx --test modules/agents/pi/extensions/subagents/*.test.ts` - `nix build --no-link .#nixosConfigurations.neogaia.config.home-manager.users.alexion.home.file.'"/home/alexion/.pi/agent/extensions"'.source` - RPC smoke with `pi --mode rpc --offline --no-extensions --extension ./modules/agents/pi/extensions/subagents/index.ts --tools subagent_list,subagent_spawn` and `get_commands` - `nix flake check`
alexion added 1 commit 2026-08-01 19:31:09 -04:00
alexion merged commit f5d799c64b into main 2026-08-01 19:35:50 -04:00
alexion deleted branch fix-subagent-nested-tools 2026-08-01 19:35:50 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexion/dotfiles#39