docs(openclaw): stop advising a per-spawn env for spawned sessions

OpenClaw's sessions_spawn has no env argument (openclaw/openclaw#51654
was closed without adding one), so the documented
env: { OPENCLAW_SESSION: "1" } silently did nothing. Point users at the
ACP harness or Gateway environment instead and guard the old advice.
Adopts #2749.

Co-authored-by: DanCanadian <211164803+DanCanadian@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
committed 2026-10-08 06:15:45 +00:00
1 parent ebb5d39b8e
commit dfeae47a17
2 files changed
+12 -1

No files matched your search

+5
View File
@@ -32,4 +32,9 @@ describe('OpenClaw native skills', () => {
expect((parsed.description as string).length).toBeGreaterThan(0);
}
});
test('integration docs do not advertise an unsupported per-spawn env', () => {
const content = fs.readFileSync(path.join(ROOT, 'docs/OPENCLAW.md'), 'utf-8');
expect(content).not.toContain('env: { OPENCLAW_SESSION');
});
});