Repository navigation
fix: address low follow-ups from the 2026-11-25 issue run - #3985
Merged
Merged
Conversation
- hooks: do not re-report hooks on an already skipped event (e.g. a Bob opt-in event) as skipped hook types or matchers - openbitfun: warn about tool-gating matchers that spell a known tool in another case (bash, read), which OpenBitFun never matches - openbitfun: warn about a moved XDG config/data home on import --global too, not only on generate - hermesagent: write a non-boolean single_instance as the boolean Hermes reads by truthiness instead of silently dropping it Refs #3971 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
- hermesagent: map the words PyYAML reads as booleans (no, off, ...) to that boolean for single_instance before falling back to truthiness - hooks: share one emitted-hooks helper between the hook-type, matcher and per-hook field warnings - openbitfun: detect case-insensitive flag groups precisely and only exempt names after the flag Refs #3971 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…w-followups # Conflicts: # src/generated/docs-content.ts
This was referenced Nov 26, 2026
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
Picks up the low findings collected in #3971 (plus the two OpenBitFun findings from the #3973 review) where a cheap, defensible fix exists, and records why the rest stay open.
Changes
emittedHooksOf, now decides which hooks reach the target's file. Itseffectiveview feeds the hook-type and matcher warnings; itscanonicalview (shared definitions emitted as written) feeds the per-hookenabled/confirmwarnings, which previously had their own filter. For targets withoutdropsUnknownOverrideEvents, an override key that shares a skipped shared event's name is still emitted, so it is still checked. A shared definition replaced by an override key of the same name is no longer counted by the per-hook warnings, because it is not written.preToolUse/permissionRequest, a lowercase spelling of a known tool (bash,read) now gets a warning, because OpenBitFun compiles the matcher as a case-sensitive regex anchored to the runtime tool name (native_hooks/settings.rs:Regex::new(&format!("^(?:{raw})$"))). A name that comes after an inline flag group turning oni((?i),(?is),(?i:...)) and is OpenBitFun's own spelling is not warned about ((?i)readmatchesRead).(?i)bashstill is, since the runtime name isExecCommand, and so are names before the flag and under(?s)/(?-i). The matcher is not rewritten.import --globalnow warns about a non-default$XDG_CONFIG_HOME/$XDG_DATA_HOMEtoo, not only generate. Hooks overridefromFile(always called on import, even when the file is missing); subagents and skills implement the existing import-only processor hooks (loadAdditionalImportFiles/getConfiguredImportRoots) that return nothing and only warn, so the warning fires even when the default location is empty — the case where the import would otherwise silently find nothing. The warning text now says rulesync "reads and writes" there.single_instance: Hermes loadsconfig.yamlwith PyYAML (YAML 1.1) and reads the key withbool(config.get("single_instance"))(tools/mcp_tool_server_run.py). Before this PR, rulesync silently dropped any non-boolean value, so a hand-written1turned the guard off on regenerate. Now the words PyYAML's resolver reads as booleans (yes|no|true|false|on|off, in lower, Capitalized or UPPER case, peryaml/resolver.py) map to that boolean in both directions, so an unquotedsingle_instance: nostaysfalse. Any other number or string is written as its Python truthiness, with a warning. Any other non-boolean is dropped with a warning.docs/reference/file-formats.md(OpenBitFun hooks/subagents/skills notes, Hermes note) and the regenerated docs content.Design decisions
BASH) are already covered by the existing "not an OpenBitFun built-in tool" warning, so a name is never warned about twice.getSettablePaths.single_instancemirrors PyYAML plus Python truthiness rather than the yes/no parser used forlazy/events, because that is what upstream does for this key.y/nare not mapped: PyYAML's bool resolver does not include them. A JSON string such as"false"in.rulesync/mcp.jsonis mapped like the YAML word, which is clearly what its author meant.Skipped items
\\?\, drive aliases): mirroring oh-my-pi's Windows handling needs its exact semantics verified at the pinned commit and Windows-specific tests; the raw path is already passed astool_input.path, so a guard can re-check it. Revisit on a user report.echo '"'vs allowecho ?.VIBE_AGENT_IGNORED_KEYS/ policy-override files kept on delete: waits on upstream publishing a schema.Refs #3971
🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4