Repository navigation
fix(bob): emit http webhook hooks and keep matchers on session/compaction events - #3706
Merged
Merged
Conversation
…tion events Both Bob lifecycle-hooks pages (IDE and Shell) now spell the webhook handler `type: "http"`, and honour `matcher` on SessionStart (`source`) and PreCompact/PostCompact (`trigger`). - Emit canonical http hooks as `type: "http"` instead of `https`, and accept both spellings on import (new import-only `importedHookTypeAliases` converter option), so an `http` hook no longer loses its url on import. - Keep `matcher` on sessionStart, preCompact and postCompact; only UserPromptSubmit and Stop still drop it with a warning. Refs #3074 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
- Remove the `hookTypeNames` converter option, which Bob no longer uses. - Document `importedHookTypeAliases` in resolveImportedHookType. - Update the BOB_HOOK_EVENTS JSDoc to the `http` handler and the five matcher-honouring events, and drop the "IDE ignores the compaction events" caveat from the file-formats reference. Refs #3074 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
This was referenced Oct 30, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follows up the 2026-10-31 re-check of IBM Bob on #3074. Both lifecycle-hooks pages (Shell, IDE) were re-verified:
http. The docs saytypeis"command" | "http"(httpsis only the required URL scheme). rulesync wrotetype: "https", and importing a documentedtype: "http"hook coerced it tocommandand dropped itsurl. Now a canonicalhttphook is emitted astype: "http", and bothhttpand the legacyhttpsspelling (Bob Shell 2.0.3 docs / earlier rulesync output) import ashttp. This uses a new import-onlyimportedHookTypeAliasesoption on the hooks converter config.matcheron SessionStart / PreCompact / PostCompact. Bob matchessource(startup|resume|compact) on SessionStart andtrigger(manual|auto) on the compaction events. rulesync dropped those matchers with a warning, so such hooks fired on every source/trigger. Now they are kept; onlyUserPromptSubmitandStopstill drop a matcher.Docs (
docs/reference/file-formats.mdand generated copies) and unit tests updated.Left for later (Refs, not Closes)
~/.bob/settings/custom_modes.yaml, now agreed by both docs pages). Not done here: it needsglobalthreaded through the sharedRooSubagentaggregation/fromFilepath and the processor, which is more than a contained change.PermissionRequest/PermissionResolvedhook events (no schema documented yet).Refs #3074
🤖 Generated with Claude Code
https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth