Splitting the rvow mod file needs install.rs changed in the same change
PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
Splitting the Claude mod file extensions/claude/hooks/register.tsx into sibling modules breaks the installed plugin: the new modules would be missing and their imports would fail.
Cause#
crates/rvow-core/src/install.rs embeds only that one file with include_str! and copies it into the plugin.
Fix#
A split must also change install.rs to embed, write and hash every module. Do it as one change, and do not edit install.rs in parallel with another agent.
Evidence#
rvow mod refactor; the one-change rule kept the installed plugin whole.
Also found by searching
- splitting register.tsx into sibling modules breaks the installed plugin
- install.rs embeds only that one file with include_str!
- a split must also change install.rs to embed, write and hash every module
- do not edit install.rs in parallel with another agent