Context
GitSniff PR #8 finding (ℹ️ Info): classifyWithRouter is called without passing the user's routing config.
Problem
In src/index.ts, the llm_input hook calls:
classifyWithRouter(classificationMessages, { originalModel: (event as any).model });
But pluginConfig.routing.minConfidence and pluginConfig.routing.pinnedModels are not passed through. The HybridRouter uses its own defaults instead of the user's configured preferences.
Suggested Fix
Pass config through to classifyWithRouter:
classifyWithRouter(classificationMessages, {
originalModel: (event as any).model,
minConfidence: pluginConfig.routing.minConfidence,
pinnedModels: pluginConfig.routing.pinnedModels,
});
May require extending classifyWithRouter signature to accept these params and forward to the router.
Files to Change
src/index.ts — pass config to classifier
src/classifier/clawrouter-classifier.ts — accept and forward config params
Ref: PR #8 GitSniff review
Context
GitSniff PR #8 finding (ℹ️ Info):
classifyWithRouteris called without passing the user's routing config.Problem
In
src/index.ts, thellm_inputhook calls:But
pluginConfig.routing.minConfidenceandpluginConfig.routing.pinnedModelsare not passed through. TheHybridRouteruses its own defaults instead of the user's configured preferences.Suggested Fix
Pass config through to
classifyWithRouter:May require extending
classifyWithRoutersignature to accept these params and forward to the router.Files to Change
src/index.ts— pass config to classifiersrc/classifier/clawrouter-classifier.ts— accept and forward config paramsRef: PR #8 GitSniff review