From 0a3634d01c7dc27b4fe72b53c09bbfb5cdd4a843 Mon Sep 17 00:00:00 2001 From: Joone Hur Date: Mon, 16 Feb 2026 13:15:01 -0800 Subject: [PATCH 1/2] Fix flaky no-output command test in mock LLM --- src/llm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llm/index.ts b/src/llm/index.ts index 1fcf10a..bddb5f2 100644 --- a/src/llm/index.ts +++ b/src/llm/index.ts @@ -340,7 +340,7 @@ export class MockLLMAPI extends LLMService { } else if (userPrompt.includes("apache2")) { return '{ "commands": ["systemctl status apache2"] }'; } else if (userPrompt.includes("Find sfsdfef")) { - return '{ "commands": ["grep \'sfsdfef\' *"] }'; + return '{ "commands": ["grep \'__LOZ_TEST_NO_OUTPUT_9f8b7c__\' README.md"] }'; } else { // Default: return a safe echo command without user input return '{ "commands": ["echo Mock LLM - command not recognized"] }'; From 6b25ad95085cd71ee2fce2e924f24eff1aabed50 Mon Sep 17 00:00:00 2001 From: Joone Hur Date: Mon, 16 Feb 2026 13:24:26 -0800 Subject: [PATCH 2/2] Allow mock API selection in test config --- src/config/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/index.ts b/src/config/index.ts index 32add43..63b94c3 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -113,6 +113,11 @@ export class Config implements ConfigInterface { "model", this.get("github-copilot.model")?.value || DEFAULT_GITHUB_COPILOT_MODEL, ); + else if (value === "mock") + this.setInternal( + "model", + this.get("ollama.model")?.value || DEFAULT_OLLAMA_MODEL, + ); else { console.log("Invalid API"); return false;