Commit 55954a4
fix: Ollama keep_alive + context continuity rule
- ollama.py: keep_alive=-1 on all /api/chat calls. Without this Ollama
unloads the model after 5 min of inactivity, forcing a full reload and
re-prefill that causes apparent context loss between slow turns.
- runner.py: CONTINUITY RULE added to system prompt. Prevents the agent
from responding with 'I'm not sure what you're referring to' when the
user sends a follow-up like 'fix it' or 'fix the issue' after the agent
just described a finding. Instructs the agent to look back at the
conversation history and act immediately.
Co-Authored-By: Oz <oz-agent@warp.dev>1 parent 692fafc commit 55954a4
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
| |||
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
226 | 238 | | |
227 | 239 | | |
228 | 240 | | |
| |||
0 commit comments