Open-source tree sync d71f6e0c1f5a → d92c5b0b8582 (still product 1.0.5): prompt text selection, clearer hook env expansion on Windows, and subagent capability-mode docs/API cleanup.
Changelog
[new] Prompt text selection: Shift+←/→ (char), Alt+Shift+←/→ (word), Cmd+Shift+←/→ (visual row), Shift+Home/End (logical line), Shift+↑/↓ (row); with a selection, typing/Enter/paste replace it, delete/word-kill clear only the selection, arrows collapse to the matching edge, and Esc/Tab drop the highlight while keeping their normal action. Shift+←/→ only select while the prompt is focused (scrollback still uses those chords for turn navigation).
[new] Copy / cut with an active selection via Cmd+C / Cmd+X on Kitty-protocol terminals.
[changed] Hook command / url variable expansion: runner-injected names (CLAUDE_PROJECT_DIR, GROK_WORKSPACE_ROOT, GROK_HOOK_EVENT, GROK_HOOK_NAME, GROK_SESSION_ID) are not taken from the Grok process environment at load; Unix sh -c expands them from the child env, Windows PowerShell rewrites $VAR to $env:VAR, and HTTP url substitutes at request time. Unresolved command refs still fail with “required env var(s) not set”.
[changed] Subagent capability_mode is no longer a spawn argument. A child’s tools come from its agent type and any role/definition default (general-purpose stays unrestricted all; built-in explore and plan read/search/shell but cannot edit files).
[fix] Documented Windows PowerShell pitfall when $CLAUDE_PROJECT_DIR was treated as empty (-File path missing); Grok rewrites to $env:CLAUDE_PROJECT_DIR unless GROK_SHELL=cmd.
Agent & tools
Subagent spawn surface no longer accepts capability_mode; capability is defined by agent type / role defaults (see user guide).
Hook runners: more precise load-time vs runtime env expansion for command and HTTP hooks, including Windows PowerShell $env: rewriting.
Docs
Keyboard shortcuts: prompt selection chords, selection editing behavior, and Cmd+C/Cmd+X with a selection.
Hooks / custom hooks: PowerShell $VAR → $env:VAR, runner-injected names, and the CLAUDE_PROJECT_DIR troubleshooting note.
Subagents: capability modes described as type/role defaults, not a Task spawn field.
Under the hood
Subagent attempt-store work split into dedicated accounting, completion, decoder, intent, recovery, and rewind modules (with tests).
Extension consent handling added.
Pager/PTY coverage for shift-selection key encodings.
Tree metadata points at commit d92c5b0b8582 on xai-org/grok-build; newest changelog / product version remains 1.0.5.
Upgrade notes
If you spawned subagents with capability_mode, drop that argument and rely on agent type or role/definition defaults instead.
On Windows hooks under PowerShell, prefer $VAR forms Grok can rewrite (or set GROK_SHELL=cmd if you intentionally want cmd semantics).