refactor(plugin): remove AI slop and clean verbose comments

This commit is contained in:
YeonGyu-Kim
2026-04-03 21:42:14 +09:00
parent 6b431c5522
commit 66cc823ff3
6 changed files with 6 additions and 16 deletions
-2
View File
@@ -153,8 +153,6 @@ export function createSessionHooks(args: {
}
}
// Model fallback hook (configurable via model_fallback config + disabled_hooks)
// This handles automatic model switching when model errors occur
const isModelFallbackConfigEnabled = pluginConfig.model_fallback ?? false
const modelFallback = isModelFallbackConfigEnabled && isHookEnabled("model-fallback")
? safeHook("model-fallback", () =>
-1
View File
@@ -41,7 +41,6 @@ export function normalizeToolArgSchemas<TDefinition extends Pick<ToolDefinition,
return toolDefinition
}
// Schema keywords unsupported by Gemini — strip them from MCP tool schemas
const UNSUPPORTED_SCHEMA_KEYWORDS = new Set(["contentEncoding", "contentMediaType"])
function isRecord(value: unknown): value is Record<string, unknown> {
@@ -126,7 +126,7 @@ describe("scheduleDeferredModelOverride", () => {
})
test("should fall back to setTimeout when message never appears", async () => {
//#given no message inserted
//#given no message inserted
//#when
const { scheduleDeferredModelOverride } = await import("./ultrawork-db-model-override")