From 2d3d993eb6cbc97ede20979f71f8076c90dd5438 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 23 Feb 2026 02:42:30 +0900 Subject: [PATCH] fix(hooks/shared): replace as any with proper Record type cast Cast pluginConfig.agents to Record type with proper structure Remove eslint-disable comment for no-explicit-any Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/hooks/shared/compaction-model-resolver.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/shared/compaction-model-resolver.ts b/src/hooks/shared/compaction-model-resolver.ts index b21cc980..6993c798 100644 --- a/src/hooks/shared/compaction-model-resolver.ts +++ b/src/hooks/shared/compaction-model-resolver.ts @@ -15,8 +15,7 @@ export function resolveCompactionModel( } const agentConfigKey = getAgentConfigKey(sessionAgentName) - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const agentConfig = (pluginConfig.agents as any)[agentConfigKey] + const agentConfig = (pluginConfig.agents as Record)[agentConfigKey] const compactionConfig = agentConfig?.compaction if (!compactionConfig?.model) {