From 66a650f03d158e5e0beb52f27654686ff14d444c Mon Sep 17 00:00:00 2001 From: acamq <179265037+acamq@users.noreply.github.com> Date: Sun, 8 Mar 2026 09:13:07 -0600 Subject: [PATCH] docs(think-mode): document getHighVariant deprecation Add deprecation notice explaining that getHighVariant() is no longer used by the hook. Function is kept for backward compatibility and potential future validation use. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/hooks/think-mode/switcher.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/hooks/think-mode/switcher.test.ts b/src/hooks/think-mode/switcher.test.ts index e56ec5823..e699da916 100644 --- a/src/hooks/think-mode/switcher.test.ts +++ b/src/hooks/think-mode/switcher.test.ts @@ -4,6 +4,20 @@ import { isAlreadyHighVariant, } from "./switcher" +/** + * DEPRECATION NOTICE: + * + * getHighVariant() is no longer used by the think-mode hook. + * The hook now only sets output.message.variant = "high" and lets + * OpenCode's native variant system handle the transformation. + * + * This function is kept for: + * - Potential future validation use + * - Backward compatibility for external consumers + * + * Tests verify the function still works correctly. + */ + describe("think-mode switcher", () => { describe("Model ID normalization", () => { describe("getHighVariant with dots vs hyphens", () => {