fix(router): route only to loaded skills, and say when not to invoke (#3018)

The root router listed every skill and ended 'When in doubt, invoke the
skill'. Current Claude models follow that literally: they tried to invoke
skills a user had turned off in Claude Code's skillOverrides (which gstack's
own disabled_skills render cannot see), and borderline requests tipped into
full workflows. The router now routes only to skills in the session's
available-skills list and names when to answer directly; the CLAUDE.md
routing block skill-start offers says the same.

Co-authored-by: Rekin226 <Rekin226@users.noreply.github.com>
This commit is contained in:
garrytanandRekin226 committed 2026-10-06 18:25:25 +00:00
1 parent 23520a93ed
commit e103e577c6
5 files changed
+28 -15

No files matched your search

+2 -2
View File
@@ -169,8 +169,8 @@ function rewriteInstallRoot(content: string, hostConfig: HostConfig, installRoot
}
/**
* C8 (#3018): the router names every skill and ends "When in doubt, invoke the
* skill", so it routed to skills the user disabled. A per-install render that
* C8 (#3018): the router names every skill, so it routed to skills the user
* disabled (it also said "When in doubt, invoke the skill" until v1.91.31). A per-install render that
* knows its disabled skills drops their routing rules (keeping the other side
* of an "A or B" rule) and says which skills are off. The router itself and
* the way back (gstack-upgrade) can never be disabled.