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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-02-23 02:42:30 +09:00
parent a82f4ee86a
commit 2d3d993eb6

View File

@@ -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<string, { compaction?: { model?: string } } | undefined>)[agentConfigKey]
const compactionConfig = agentConfig?.compaction
if (!compactionConfig?.model) {