fix: host plugin activates on a clean profile (v1.0.2) #2

Merged
newbie merged 1 commits from fix/host-activation-inject into main 2026-11-14 17:28:29 +08:00

1 Commits

Author SHA1 Message Date
QQ 7774d6fc28 fix: mount auto-review listeners through ctx.inject so the host activates on a clean profile (v1.0.2)
Cordis throws when a service is read before it is declared in inject:
'cannot get property "permissionPresets" without inject'. apply() probed
ctx.permissionPresets first, so a profile without permissionPresets/agents
died during activation and its else-branch ctx.inject fallback was dead code.
The plugin now always wires the listeners through a scoped ctx.inject, which
also re-mounts them when the auto-review services appear later.
2026-11-14 17:21:52 +08:00