#11138: fix(gateway): inherit exec overrides for spawned sessions
gateway
stale
Cluster:
Model Management Enhancements
## Summary
- inherit `execHost`, `execSecurity`, `execAsk`, and `execNode` from the parent session when a spawned session is missing them
- keep existing child-session values unchanged when they are already set
- add a gateway handler test that verifies exec override inheritance via `spawnedBy`
- switch exec inheritance checks to nullish checks (`== null`) to avoid falsy-value misclassification
## Testing
- `pnpm test src/gateway/server-methods/agent.test.ts`
- pass: 1 file, 4 tests
- note: engine warning shown because local Node is `v20.19.6` while repo expects `>=22.12.0`
Most Similar PRs
#10608: fix(agents): honor spawn model override in gateway and session spaw...
by 1kuna · 2026-02-06
65.3%
#10748: feat: Add sessions.spawn gateway method for direct subagent spawning
by fox-openclaw · 2026-02-06
63.6%
#6577: fix: add null checks for stdout/stderr when using inherit-stdio fal...
by ncmalan · 2026-02-01
61.8%
#23355: Gateway: fail closed on untrusted proxy headers
by bmendonca3 · 2026-02-22
61.2%
#23287: fix(node-host): improve ENOENT error when exec workspace dir is mis...
by SidQin-cyber · 2026-02-22
60.9%
#14395: feat: add gateway.nodes.execEvents config to control exec completio...
by dan3093 · 2026-02-12
60.2%
#12802: fix(gateway): default unscoped operator connections to read-only
by yubrew · 2026-02-09
59.4%
#20404: test: isolate gateway auth env vars in test runner
by victorGPT · 2026-02-18
59.4%
#8683: fix: Exec approval bypass via client-controlled flags in system.run
by coygeek · 2026-02-04
59.3%
#21120: Security/Gateway: guard dangerous HTTP /tools/invoke re-enables
by bmendonca3 · 2026-02-19
59.3%