chore: bump context window to match what zed uses

This commit is contained in:
2026-05-31 12:27:53 -05:00
parent fa2516e53e
commit f88377cd1d
2 changed files with 22 additions and 7 deletions
+3 -2
View File
@@ -120,7 +120,7 @@ async function runOllamaLoop(ctx: AgentRunContext): Promise<AgentResult> {
keep_alive: "10m",
options: {
think: true,
num_ctx: 32768,
num_ctx: 262144,
} as Record<string, unknown>,
});
} catch (err) {
@@ -216,7 +216,8 @@ async function runOllamaLoop(ctx: AgentRunContext): Promise<AgentResult> {
const parsed = JSON.parse(
typeof lastToolMsg.content === "string" ? lastToolMsg.content : "",
);
if (typeof parsed?.modeName === "string") selectedMode = parsed.modeName;
if (typeof parsed?.modeName === "string")
selectedMode = parsed.modeName;
} catch {
// best-effort
}