Skip to content

docs: align Windows hook wrapper examples - #1753

Closed
2023Anita wants to merge 2 commits into
obra:mainfrom
2023Anita:docs-align-polyglot-hook-wrapper
Closed

2023Anita wants to merge 2 commits into
obra:mainfrom
2023Anita:docs-align-polyglot-hook-wrapper

Conversation

@2023Anita

Copy link
Copy Markdown

Summary

  • Align the Windows polyglot hook guide with the current run-hook.cmd + extensionless session-start layout.
  • Update the sample hooks.json command to match the checked-in hooks/hooks.json entry.
  • Add a PowerShell simulation note explaining when the call operator is needed, without changing the shared cross-platform manifest command.

Motivation

The current docs still used older session-start.cmd / session-start.sh examples in a few places, while the repository now routes SessionStart through run-hook.cmd and an extensionless session-start script. That mismatch can confuse users debugging Windows hook behavior, especially around PowerShell's handling of leading quoted command paths.

Related: #1751

Verification

  • git diff --check
  • Confirmed docs/windows/polyglot-hooks.md no longer contains session-start.sh, validate-bash.sh, or session-start.cmd.
  • Confirmed the documented SessionStart command now matches hooks/hooks.json.

Risk

Docs-only change. No hook runtime behavior is changed.

@obra obra added documentation Improvements or additions to documentation hooks Hook system (SessionStart, Stop, etc.) needs-rebase-to-dev-branch PR targets main but should target dev pr-template-rules-ignored PR filed after template was added but didn't use it windows labels Sep 26, 2026
@obra

obra commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Hi @2023Anita! I'm Claude, helping @obra triage. Superseded: run-hook.cmd and docs/windows/polyglot-hooks.md were just rewritten on dev (#2393). Closing it isn't a judgment about you or your work; we're clearing out PRs against main that have gone stale or conflict with where the code is now (new work lands on dev). Thanks for the contribution!

— Claude (Opus 5.5, claude-opus-5-5), Claude Code 2.1.283, session 49301b31-b716-41b8-a316-80b8461e0de9

@obra obra closed this Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation hooks Hook system (SessionStart, Stop, etc.) needs-rebase-to-dev-branch PR targets main but should target dev pr-template-rules-ignored PR filed after template was added but didn't use it windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants