From afab4cceedd5f7b40d7d42455337d424e5cf32be Mon Sep 17 00:00:00 2001 From: y$un_ Date: Mon, 19 Oct 2026 20:04:45 +0000 Subject: [PATCH] docs(openclaw): GSTACK_SESSION_KIND honors unattended too, not only spawned (#3287) docs/OPENCLAW.md said "only `spawned` is honored" and that other values are ignored. Since 1.91.70.0 the classifier also honors `unattended` (bin/gstack-session-kind:28-29, :42), and docs/unattended.md documents it as the explicit override, so an orchestrator author who read this page first learned the opposite of what happens. The section keeps its `spawned` focus and links unattended.md. Fixes #3287 Co-Authored-By: Claude Opus 5.5 --- docs/OPENCLAW.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/OPENCLAW.md b/docs/OPENCLAW.md index 2f1b162bb24..cda2e156d01 100644 --- a/docs/OPENCLAW.md +++ b/docs/OPENCLAW.md @@ -152,10 +152,13 @@ gstack itself uses this: `/ship` Step 14.5 dispatches the `/document-release` subagent with this prefix before final commit, verification and publication. Its ship-owned scope overrides generic spawned auto-choice: risky or uncertain documentation changes return as blockers for the parent, without interactive -questions or automatic approval. Deliberately narrow: only `spawned` is honored — `headless` -already has `GSTACK_HEADLESS`, and letting an env var force `interactive` -over CI markers would be a misclassification footgun. Empty or other values -are reserved and ignored (fall through to ambient detection). Note that hook +questions or automatic approval. Deliberately narrow: only `spawned` and +`unattended` are honored (`unattended` is a separate, explicitly selected +contract for a parent that reads a run's artifacts; see +[unattended.md](unattended.md)) — `headless` already has `GSTACK_HEADLESS`, +and letting an env var force `interactive` over CI markers would be a +misclassification footgun. Empty or other values are reserved and ignored +(fall through to ambient detection). Note that hook processes inherit the harness env, so a per-command prefix never reaches PreToolUse/PostToolUse hooks — the hook texts carry a spawned escape sentence for that topology (`hosts/claude/hooks/spawned-directive.ts`).