Skip to content
This repository was archived by the owner on Apr 5, 2026. It is now read-only.

Commit 19d2915

Browse files
HerbHallclaude
andauthored
feat(autolearn): ingest #348 + #349 (Ollama gotchas) (#351)
Add KG#146: Ollama models overwrite CLAUDE.md instead of following issue instructions Add KG#147: Ollama on Windows requires full process restart after OLLAMA_HOST env change Closes #348, Closes #349 Co-authored-by: Claude <noreply@anthropic.com>
1 parent ac4c5f8 commit 19d2915

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

claude/rules/known-gotchas.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Known gotchas and platform-specific issues. Read when debugging unexpected behavior.
33
tier: 2
4-
entry_count: 63
4+
entry_count: 65
55
last_updated: "2026-03-16"
66
---
77

@@ -670,3 +670,19 @@ Windows CRLF (`\r\n`) causes silent failures across multiple tools. Three known
670670
**Platform:** Gitea
671671
**Issue:** Gitea `PATCH /repos/{owner}/{repo}/issues/{index}` with `assignees` field returns 403 if the user is not a repo collaborator. GitHub silently ignores invalid assignees.
672672
**Fix:** Wrap assignment in best-effort try/catch. Log warning but don't fail the workflow.
673+
674+
## 146. Ollama Models Overwrite CLAUDE.md Instead of Following Issue Instructions
675+
676+
**Added:** 2026-03-16 | **Source:** Samverk | **Status:** active
677+
678+
**Platform:** Ollama / Claude Code dispatcher
679+
**Issue:** Ollama models (qwen3-coder:30b, qwen2.5-coder:14b) complete dispatcher tasks but produce wrong output -- overwrite CLAUDE.md with hallucinated content instead of implementing the actual issue. Agent prompt format is tuned for Claude CLI tool-use and doesn't transfer to raw chat completions.
680+
**Fix:** Don't use Ollama models for code-gen tasks that require file navigation via tools. Restrict to triage, labeling, and text-only tasks. Validate agent output before merging.
681+
682+
## 147. Ollama on Windows Requires Full Process Restart After OLLAMA_HOST Env Change
683+
684+
**Added:** 2026-03-16 | **Source:** Samverk | **Status:** active
685+
686+
**Platform:** Windows (Ollama)
687+
**Issue:** Setting `OLLAMA_HOST=0.0.0.0` as a Windows User env var doesn't take effect until Ollama app is fully restarted. `Start-Process` from a shell without the new env inherits the old value.
688+
**Fix:** Kill all `ollama` processes and relaunch from a context with refreshed env. On Windows: `Stop-Process -Name ollama -Force`, refresh env, then relaunch.

0 commit comments

Comments
 (0)