Skip to content

fix(bob): emit http webhook hooks and keep matchers on session/compaction events - #3706

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-issue-3074-bob-hooks
Oct 30, 2026
Merged

dyoshikawa merged 3 commits into
mainfrom
resolve-issue-3074-bob-hooks

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follows up the 2026-10-31 re-check of IBM Bob on #3074. Both lifecycle-hooks pages (Shell, IDE) were re-verified:

  • Webhook type is http. The docs say type is "command" | "http" (https is only the required URL scheme). rulesync wrote type: "https", and importing a documented type: "http" hook coerced it to command and dropped its url. Now a canonical http hook is emitted as type: "http", and both http and the legacy https spelling (Bob Shell 2.0.3 docs / earlier rulesync output) import as http. This uses a new import-only importedHookTypeAliases option on the hooks converter config.
  • matcher on SessionStart / PreCompact / PostCompact. Bob matches source (startup|resume|compact) on SessionStart and trigger (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; only UserPromptSubmit and Stop still drop a matcher.

Docs (docs/reference/file-formats.md and generated copies) and unit tests updated.

Left for later (Refs, not Closes)

  • Global-scope subagents (~/.bob/settings/custom_modes.yaml, now agreed by both docs pages). Not done here: it needs global threaded through the shared RooSubagent aggregation/fromFile path and the processor, which is more than a contained change.
  • Watch-only: IDE 2.3.0 PermissionRequest / PermissionResolved hook events (no schema documented yet).

Refs #3074

🤖 Generated with Claude Code

https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth

dyoshikawa and others added 3 commits October 31, 2026 01:25
…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
@dyoshikawa
dyoshikawa merged commit 9bce8db into main Oct 30, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-3074-bob-hooks branch October 30, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant