openfox 2.0.139 → 2.0.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/CHANGELOG.md +17 -0
  3. package/dist/{backend-24FTDSHF.js → backend-EPISSWLB.js} +2 -2
  4. package/dist/{chat-handler-KGITQAXC.js → chat-handler-JWRCPG72.js} +11 -11
  5. package/dist/{chunk-CXB4HJAM.js → chunk-5EKBZXCU.js} +2 -2
  6. package/dist/{chunk-TG65PHHY.js → chunk-5F7LNEEP.js} +2 -2
  7. package/dist/{chunk-N4RAVCLZ.js → chunk-5MGCTRKM.js} +9 -7
  8. package/dist/{chunk-EGF3PREY.js → chunk-66XJC5TA.js} +6 -6
  9. package/dist/chunk-6RYTDRUR.js +7 -0
  10. package/dist/{chunk-LSO3IGJ4.js → chunk-EE6VFEE6.js} +2 -2
  11. package/dist/{chunk-AM5FAZJK.js → chunk-GZJRXVVJ.js} +5 -5
  12. package/dist/{chunk-EJ5GFSD4.js → chunk-H7YL7PH3.js} +8 -4
  13. package/dist/{chunk-TVSIWRKE.js → chunk-IFARTQOK.js} +10 -10
  14. package/dist/{chunk-YIEIVHCQ.js → chunk-K227HOLU.js} +3 -2
  15. package/dist/{chunk-HEYU7FAY.js → chunk-OA7KBQ2O.js} +7 -5
  16. package/dist/{chunk-C543DUKL.js → chunk-QIGVYXMH.js} +37 -37
  17. package/dist/{chunk-VCLAPTWM.js → chunk-SSHXYKW3.js} +34 -9
  18. package/dist/{chunk-22DV5XO7.js → chunk-TJOKDC34.js} +2 -2
  19. package/dist/{chunk-AKWJMMEJ.js → chunk-VLQ6BMU7.js} +7 -2
  20. package/dist/{chunk-EXQI5TVW.js → chunk-WD354R3H.js} +4 -4
  21. package/dist/cli/dev.js +1 -1
  22. package/dist/cli/index.js +1 -1
  23. package/dist/{client-6KC6SP2U.js → client-KJS7QIIV.js} +4 -4
  24. package/dist/{compactor-T7S4DIR3.js → compactor-UREBHSZQ.js} +4 -4
  25. package/dist/{dynamic-context-3MAA4AQR.js → dynamic-context-KGSZ7TRQ.js} +2 -2
  26. package/dist/{export-import-ZJFYZJOP.js → export-import-CJT33IO6.js} +2 -2
  27. package/dist/{http-client-VMRQHMF7.js → http-client-JVJ43TBY.js} +2 -2
  28. package/dist/{launch-73LDMGCT.js → launch-7NKOCT5A.js} +11 -11
  29. package/dist/{orchestrator-MMHV6SZY.js → orchestrator-VSVDUGBT.js} +10 -10
  30. package/dist/package.json +1 -1
  31. package/dist/{processor-2M7N26QG.js → processor-ACZM62WO.js} +10 -10
  32. package/dist/provider/index.d.ts +2 -2
  33. package/dist/{provider-MEENS4SB.js → provider-7LNTLWRB.js} +5 -5
  34. package/dist/{provider-manager-3MV7KDAD.js → provider-manager-TV5I5YJH.js} +5 -5
  35. package/dist/{serve-FN5XKUTC.js → serve-36D5HXWE.js} +16 -16
  36. package/dist/server/index.d.ts +1 -1
  37. package/dist/server/index.js +15 -15
  38. package/dist/{server-B4AJ7ETE.js → server-R3J26IP2.js} +14 -14
  39. package/dist/{service-JL55SFPL.js → service-7QKWUNU4.js} +6 -6
  40. package/dist/{tasks-ZMJCHW7E.js → tasks-E7EG7344.js} +6 -6
  41. package/dist/{tools-LZHSSSK4.js → tools-AY6XEVJK.js} +8 -8
  42. package/dist/{types-CmiWoQ7p.d.ts → types-ofYNpiqi.d.ts} +2 -0
  43. package/dist/{update-L2XK6UDC.js → update-JHFZMW3T.js} +2 -2
  44. package/dist/web/assets/{index-dJREs6rO.js → index-Bm0_ekvt.js} +82 -82
  45. package/dist/web/assets/{index-D3bx1-1j.css → index-BtkaULxJ.css} +1 -1
  46. package/dist/web/index.html +6 -3
  47. package/dist/web/sw.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/chunk-Z7MGLDLK.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.140 - 2026-09-08
4
+
5
+ ### Features
6
+
7
+ - **Authenticated Ollama proxies** — Ollama behind OpenWebUI or any Bearer-auth proxy now works when an API key is configured
8
+
9
+ ### Enhancements
10
+
11
+ - **Refined mobile interface** — composer expands full-height with the keyboard, send/stop become icon pills, and the footer rebalances (agent + danger on top, MCP + model below)
12
+ - **Model names truncate on narrow screens** — no more overflowing the composer
13
+
14
+ ### Bug Fixes
15
+
16
+ - **MCP dropdown stays in view** — opens as a centered modal on touch and left-aligns on narrow windows instead of overflowing
17
+ - **iOS no longer auto-zooms into the composer** — input fields keep a comfortable size on focus
18
+ - **opencode.ai providers work reliably** — chain-of-thought is no longer echoed into assistant history (fixing HTTP 400 on multi-turn thinking requests), and stable x-opencode-session headers restore prompt caching
19
+
3
20
  ## 2.0.139 - 2026-09-06
4
21
 
5
22
  ### Features
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.140 - 2026-09-08
4
+
5
+ ### Features
6
+
7
+ - **Authenticated Ollama proxies** — Ollama behind OpenWebUI or any Bearer-auth proxy now works when an API key is configured
8
+
9
+ ### Enhancements
10
+
11
+ - **Refined mobile interface** — composer expands full-height with the keyboard, send/stop become icon pills, and the footer rebalances (agent + danger on top, MCP + model below)
12
+ - **Model names truncate on narrow screens** — no more overflowing the composer
13
+
14
+ ### Bug Fixes
15
+
16
+ - **MCP dropdown stays in view** — opens as a centered modal on touch and left-aligns on narrow windows instead of overflowing
17
+ - **iOS no longer auto-zooms into the composer** — input fields keep a comfortable size on focus
18
+ - **opencode.ai providers work reliably** — chain-of-thought is no longer echoed into assistant history (fixing HTTP 400 on multi-turn thinking requests), and stable x-opencode-session headers restore prompt caching
19
+
3
20
  ## 2.0.139 - 2026-09-06
4
21
 
5
22
  ### Features
@@ -3,7 +3,7 @@ import {
3
3
  detectProviderDefaultsFromUrl,
4
4
  getBackendCapabilities,
5
5
  getBackendDisplayName
6
- } from "./chunk-AKWJMMEJ.js";
6
+ } from "./chunk-VLQ6BMU7.js";
7
7
  import "./chunk-YLJ4XMA6.js";
8
8
  export {
9
9
  detectBackendFromUrl,
@@ -11,4 +11,4 @@ export {
11
11
  getBackendCapabilities,
12
12
  getBackendDisplayName
13
13
  };
14
- //# sourceMappingURL=backend-24FTDSHF.js.map
14
+ //# sourceMappingURL=backend-EPISSWLB.js.map
@@ -2,20 +2,20 @@ import {
2
2
  buildRunChatTurnParams,
3
3
  finalizeTurnCompletion,
4
4
  generateSessionNameForSession
5
- } from "./chunk-YIEIVHCQ.js";
5
+ } from "./chunk-K227HOLU.js";
6
6
  import {
7
7
  runChatTurn
8
- } from "./chunk-AM5FAZJK.js";
9
- import "./chunk-CXB4HJAM.js";
10
- import "./chunk-N4RAVCLZ.js";
8
+ } from "./chunk-GZJRXVVJ.js";
9
+ import "./chunk-5EKBZXCU.js";
10
+ import "./chunk-5MGCTRKM.js";
11
11
  import "./chunk-CRJ5J7U5.js";
12
12
  import "./chunk-XE6UC5Z3.js";
13
13
  import "./chunk-J7GAZGZT.js";
14
- import "./chunk-22DV5XO7.js";
14
+ import "./chunk-TJOKDC34.js";
15
15
  import "./chunk-FIEFBRTQ.js";
16
16
  import "./chunk-MAUQ6AW4.js";
17
17
  import "./chunk-JLHYB445.js";
18
- import "./chunk-HEYU7FAY.js";
18
+ import "./chunk-OA7KBQ2O.js";
19
19
  import "./chunk-GKRYQ56N.js";
20
20
  import "./chunk-LW6MMSTD.js";
21
21
  import "./chunk-UA2ATO3B.js";
@@ -38,18 +38,18 @@ import {
38
38
  } from "./chunk-OVAHNEFG.js";
39
39
  import "./chunk-LCLH6ZUL.js";
40
40
  import "./chunk-46Q2SHGJ.js";
41
- import "./chunk-EJ5GFSD4.js";
41
+ import "./chunk-H7YL7PH3.js";
42
42
  import "./chunk-OA2FURC3.js";
43
43
  import "./chunk-J2GP3J3X.js";
44
44
  import "./chunk-DPFET73G.js";
45
- import "./chunk-VCLAPTWM.js";
45
+ import "./chunk-SSHXYKW3.js";
46
46
  import "./chunk-TS5WKTFB.js";
47
- import "./chunk-AKWJMMEJ.js";
47
+ import "./chunk-VLQ6BMU7.js";
48
48
  import "./chunk-HNCM3D7Y.js";
49
49
  import "./chunk-QMU3ZY2C.js";
50
50
  import "./chunk-FSSUPWYO.js";
51
51
  import "./chunk-XG3AUMPI.js";
52
- import "./chunk-LSO3IGJ4.js";
52
+ import "./chunk-EE6VFEE6.js";
53
53
  import "./chunk-EMXMTCSY.js";
54
54
  import "./chunk-JU757HVI.js";
55
55
  import "./chunk-VKMPR25F.js";
@@ -180,4 +180,4 @@ export {
180
180
  startChatSession,
181
181
  stopSessionExecution
182
182
  };
183
- //# sourceMappingURL=chat-handler-KGITQAXC.js.map
183
+ //# sourceMappingURL=chat-handler-JWRCPG72.js.map
@@ -327,7 +327,7 @@ function resolveAgentDef(sessionManager, sessionId) {
327
327
  });
328
328
  }
329
329
  async function getEffectiveToolDefinitions(agentDef, sessionId, modelName) {
330
- const { getToolRegistryForAgent } = await import("./tools-LZHSSSK4.js");
330
+ const { getToolRegistryForAgent } = await import("./tools-AY6XEVJK.js");
331
331
  const { isDescribeImageEligible } = await import("./describe-image-TQOD52IC.js");
332
332
  const all = getToolRegistryForAgent(agentDef, sessionId).definitions;
333
333
  const eligible = await isDescribeImageEligible(modelName);
@@ -396,4 +396,4 @@ export {
396
396
  computeSessionHash,
397
397
  applyDynamicContext
398
398
  };
399
- //# sourceMappingURL=chunk-CXB4HJAM.js.map
399
+ //# sourceMappingURL=chunk-5EKBZXCU.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createMessageStartEvent
3
- } from "./chunk-HEYU7FAY.js";
3
+ } from "./chunk-OA7KBQ2O.js";
4
4
  import {
5
5
  COMPACTION_PROMPT
6
6
  } from "./chunk-GKRYQ56N.js";
@@ -36,4 +36,4 @@ export {
36
36
  COMPACTION_MAX_RATIO,
37
37
  shouldCompact
38
38
  };
39
- //# sourceMappingURL=chunk-TG65PHHY.js.map
39
+ //# sourceMappingURL=chunk-5F7LNEEP.js.map
@@ -14,7 +14,7 @@ import {
14
14
  getGateConfig,
15
15
  isTaskConflictError,
16
16
  isTaskGateError
17
- } from "./chunk-22DV5XO7.js";
17
+ } from "./chunk-TJOKDC34.js";
18
18
  import {
19
19
  getSessionDisabledServers
20
20
  } from "./chunk-FIEFBRTQ.js";
@@ -50,7 +50,7 @@ import {
50
50
  recordLLMFailure,
51
51
  sleepThroughRetryBackoff,
52
52
  streamLLMPure
53
- } from "./chunk-HEYU7FAY.js";
53
+ } from "./chunk-OA7KBQ2O.js";
54
54
  import {
55
55
  COMPACTION_PROMPT,
56
56
  buildBasePrompt,
@@ -1498,6 +1498,7 @@ async function runTopLevelAgentLoop(config, turnMetrics) {
1498
1498
  });
1499
1499
  const modelSettings = sessionManager.getCurrentModelSettings(sessionId, config.mode);
1500
1500
  await resolveClient().complete({
1501
+ sessionId,
1501
1502
  messages: [{ role: "system", content: assembledRequest.systemPrompt }],
1502
1503
  tools: assembledRequest.tools,
1503
1504
  maxTokens: 1,
@@ -1598,6 +1599,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
1598
1599
  messageId: assistantMsgId,
1599
1600
  systemPrompt: assembledRequest.systemPrompt,
1600
1601
  llmClient: attemptClient,
1602
+ sessionId,
1601
1603
  messages: assembledRequest.messages,
1602
1604
  tools: assembledRequest.tools,
1603
1605
  toolChoice: "auto",
@@ -1729,7 +1731,7 @@ ${CONTINUE_PROMPT}` : CONTINUE_PROMPT;
1729
1731
  currentMaxTokensOverride = void 0;
1730
1732
  if (!compacting) {
1731
1733
  const contextState = sessionManager.getContextState(sessionId);
1732
- const { shouldCompact, appendCompactionPrompt } = await import("./compactor-T7S4DIR3.js");
1734
+ const { shouldCompact, appendCompactionPrompt } = await import("./compactor-UREBHSZQ.js");
1733
1735
  if (shouldCompact(
1734
1736
  contextState.currentTokens,
1735
1737
  contextState.maxTokens,
@@ -2445,7 +2447,7 @@ var callSubAgentTool = {
2445
2447
  };
2446
2448
  }
2447
2449
  try {
2448
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-LZHSSSK4.js");
2450
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-AY6XEVJK.js");
2449
2451
  const toolRegistry = getToolRegistryForAgent2(agentDef);
2450
2452
  const turnMetrics = new TurnMetrics();
2451
2453
  const result = await executeSubAgent({
@@ -3549,11 +3551,11 @@ var mcpConfigTool = createTool(
3549
3551
  async function notifyContextChanged(sessionId) {
3550
3552
  context.sessionManager.setDynamicContextChanged(sessionId, true);
3551
3553
  mcpNotifyChanged?.(sessionId);
3552
- const { injectContextDriftReminders } = await import("./dynamic-context-3MAA4AQR.js");
3554
+ const { injectContextDriftReminders } = await import("./dynamic-context-KGSZ7TRQ.js");
3553
3555
  await injectContextDriftReminders(context.sessionManager, sessionId);
3554
3556
  }
3555
3557
  async function rebuildTools() {
3556
- const { setMcpTools: setMcpTools2 } = await import("./tools-LZHSSSK4.js");
3558
+ const { setMcpTools: setMcpTools2 } = await import("./tools-AY6XEVJK.js");
3557
3559
  const mcpTools = createMcpTools(mcpManagerForTools);
3558
3560
  setMcpTools2(mcpTools);
3559
3561
  }
@@ -4695,4 +4697,4 @@ export {
4695
4697
  getToolRegistryForAgent,
4696
4698
  createToolRegistry
4697
4699
  };
4698
- //# sourceMappingURL=chunk-N4RAVCLZ.js.map
4700
+ //# sourceMappingURL=chunk-5MGCTRKM.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runAgentTurn
3
- } from "./chunk-AM5FAZJK.js";
3
+ } from "./chunk-GZJRXVVJ.js";
4
4
  import {
5
5
  executeSubAgent,
6
6
  getToolRegistryForAgent
7
- } from "./chunk-N4RAVCLZ.js";
7
+ } from "./chunk-5MGCTRKM.js";
8
8
  import {
9
9
  gitSpawnEnv
10
10
  } from "./chunk-J7GAZGZT.js";
@@ -15,14 +15,14 @@ import {
15
15
  loadProjectWorkflows,
16
16
  loadUserWorkflows,
17
17
  normalizeWorkflowScope
18
- } from "./chunk-22DV5XO7.js";
18
+ } from "./chunk-TJOKDC34.js";
19
19
  import {
20
20
  serverT
21
21
  } from "./chunk-JLHYB445.js";
22
22
  import {
23
23
  TurnMetrics,
24
24
  createMessageStartEvent
25
- } from "./chunk-HEYU7FAY.js";
25
+ } from "./chunk-OA7KBQ2O.js";
26
26
  import {
27
27
  checkAborted,
28
28
  decodeUtf8,
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-OVAHNEFG.js";
48
48
  import {
49
49
  LLMError
50
- } from "./chunk-LSO3IGJ4.js";
50
+ } from "./chunk-EE6VFEE6.js";
51
51
  import {
52
52
  logger
53
53
  } from "./chunk-K44MW7JJ.js";
@@ -1023,4 +1023,4 @@ export {
1023
1023
  abortRunnerRun,
1024
1024
  launchWorkflowRun
1025
1025
  };
1026
- //# sourceMappingURL=chunk-EGF3PREY.js.map
1026
+ //# sourceMappingURL=chunk-66XJC5TA.js.map
@@ -0,0 +1,7 @@
1
+ // src/constants.ts
2
+ var VERSION = "2.0.140";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-6RYTDRUR.js.map
@@ -44,7 +44,7 @@ var ChatHttpClient = class {
44
44
  async post(params, options) {
45
45
  const { url, headers, body } = this.buildRequest(params);
46
46
  logger.debug("HTTP request to LLM", { url, bodyKeys: Object.keys(params) });
47
- return postJson(url, headers, body, options);
47
+ return postJson(url, { ...headers, ...options?.headers }, body, options);
48
48
  }
49
49
  async createChatCompletion(params, options, returnRaw) {
50
50
  const response = await this.post(params, options);
@@ -194,4 +194,4 @@ export {
194
194
  ChatHttpClient,
195
195
  OpenAIHttpClient
196
196
  };
197
- //# sourceMappingURL=chunk-LSO3IGJ4.js.map
197
+ //# sourceMappingURL=chunk-EE6VFEE6.js.map
@@ -3,14 +3,14 @@ import {
3
3
  checkToolChangesAndInject,
4
4
  computeDynamicContextHash,
5
5
  getToolFingerprint
6
- } from "./chunk-CXB4HJAM.js";
6
+ } from "./chunk-5EKBZXCU.js";
7
7
  import {
8
8
  createAssemblyResult,
9
9
  getConversationMessages,
10
10
  getToolRegistryForAgent,
11
11
  processEventsForConversation,
12
12
  runTopLevelAgentLoop
13
- } from "./chunk-N4RAVCLZ.js";
13
+ } from "./chunk-5MGCTRKM.js";
14
14
  import {
15
15
  getAllInstructions,
16
16
  getEnabledSkillMetadata
@@ -22,7 +22,7 @@ import {
22
22
  TurnMetrics,
23
23
  createChatDoneEvent,
24
24
  createMessageStartEvent
25
- } from "./chunk-HEYU7FAY.js";
25
+ } from "./chunk-OA7KBQ2O.js";
26
26
  import {
27
27
  buildAgentReminder,
28
28
  buildAgentSmallReminder,
@@ -355,7 +355,7 @@ async function runAgentTurn(options, turnMetrics, agentId, append, callbacks) {
355
355
  getConversationMessages: buildGetConversationMessages(options.sessionId, resolveAgentClient, append),
356
356
  injectAgentReminder: () => injectAgentReminder(options.sessionId, agentDef),
357
357
  rebuildCachedContext: async () => {
358
- const { applyDynamicContext } = await import("./dynamic-context-3MAA4AQR.js");
358
+ const { applyDynamicContext } = await import("./dynamic-context-KGSZ7TRQ.js");
359
359
  await applyDynamicContext(options.sessionManager, options.sessionId, agentLlmClient.getModel());
360
360
  },
361
361
  ...options.initialCompacting ? { initialCompacting: true } : {},
@@ -385,4 +385,4 @@ export {
385
385
  runChatTurn,
386
386
  runAgentTurn
387
387
  };
388
- //# sourceMappingURL=chunk-AM5FAZJK.js.map
388
+ //# sourceMappingURL=chunk-GZJRXVVJ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-OA2FURC3.js";
5
5
  import {
6
6
  createLLMClient
7
- } from "./chunk-VCLAPTWM.js";
7
+ } from "./chunk-SSHXYKW3.js";
8
8
  import {
9
9
  getModelProfile
10
10
  } from "./chunk-TS5WKTFB.js";
@@ -12,7 +12,7 @@ import {
12
12
  detectBackendFromUrl,
13
13
  detectProviderDefaultsFromUrl,
14
14
  getBackendCapabilities
15
- } from "./chunk-AKWJMMEJ.js";
15
+ } from "./chunk-VLQ6BMU7.js";
16
16
  import {
17
17
  buildModelsUrl,
18
18
  ensureVersionPrefix,
@@ -467,6 +467,9 @@ function createProviderManager(config, options = {}) {
467
467
  if (provider.thinkingField) return provider.thinkingField;
468
468
  return detectProviderDefaultsFromUrl(provider.url)?.thinkingField;
469
469
  }
470
+ function resolveSendReasoningInMessages(provider) {
471
+ return detectProviderDefaultsFromUrl(provider.url)?.sendReasoningInMessages ?? provider.sendReasoningInMessages;
472
+ }
470
473
  function createConfigForProvider(provider, model, reasoningEffort) {
471
474
  const modelThinking = resolveModelThinkingConfig(provider, model, reasoningEffort);
472
475
  const configureModel = provider.models.find((m) => m.id === model);
@@ -477,6 +480,7 @@ function createProviderManager(config, options = {}) {
477
480
  model
478
481
  );
479
482
  const thinkingField = resolveThinkingField(provider);
483
+ const sendReasoningInMessages = resolveSendReasoningInMessages(provider);
480
484
  return {
481
485
  ...config,
482
486
  llm: {
@@ -486,7 +490,7 @@ function createProviderManager(config, options = {}) {
486
490
  backend: resolveBackend(provider),
487
491
  ...provider.apiKey && { apiKey: provider.apiKey },
488
492
  ...thinkingField ? { thinkingField } : {},
489
- ...provider.sendReasoningInMessages !== void 0 ? { sendReasoningInMessages: provider.sendReasoningInMessages } : {},
493
+ ...sendReasoningInMessages !== void 0 ? { sendReasoningInMessages } : {},
490
494
  ...modelThinking.reasoningEffort && !send.suppressEffort && { reasoningEffort: modelThinking.reasoningEffort }
491
495
  }
492
496
  };
@@ -916,4 +920,4 @@ export {
916
920
  parseDefaultModelSelection,
917
921
  createProviderManager
918
922
  };
919
- //# sourceMappingURL=chunk-EJ5GFSD4.js.map
923
+ //# sourceMappingURL=chunk-H7YL7PH3.js.map
@@ -2,21 +2,21 @@ import {
2
2
  generateSessionNameForSession,
3
3
  getSessionMessageCount,
4
4
  needsNameGeneration
5
- } from "./chunk-YIEIVHCQ.js";
5
+ } from "./chunk-K227HOLU.js";
6
6
  import {
7
7
  launchWorkflowRun
8
- } from "./chunk-EGF3PREY.js";
8
+ } from "./chunk-66XJC5TA.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-AM5FAZJK.js";
11
+ } from "./chunk-GZJRXVVJ.js";
12
12
  import {
13
13
  applyDynamicContext,
14
14
  computeSessionHash,
15
15
  computeUnifiedDiff
16
- } from "./chunk-CXB4HJAM.js";
16
+ } from "./chunk-5EKBZXCU.js";
17
17
  import {
18
18
  devServerManager
19
- } from "./chunk-N4RAVCLZ.js";
19
+ } from "./chunk-5MGCTRKM.js";
20
20
  import {
21
21
  gitSpawnEnv
22
22
  } from "./chunk-J7GAZGZT.js";
@@ -25,11 +25,11 @@ import {
25
25
  } from "./chunk-JLHYB445.js";
26
26
  import {
27
27
  appendCompactionPrompt
28
- } from "./chunk-TG65PHHY.js";
28
+ } from "./chunk-5F7LNEEP.js";
29
29
  import {
30
30
  hasRecentLLMFailure,
31
31
  interruptLLMRetryWait
32
- } from "./chunk-HEYU7FAY.js";
32
+ } from "./chunk-OA7KBQ2O.js";
33
33
  import {
34
34
  onProcessEvent
35
35
  } from "./chunk-UA2ATO3B.js";
@@ -1350,7 +1350,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
1350
1350
  }
1351
1351
  const session = sessionManager.requireSession(sessionId);
1352
1352
  try {
1353
- const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-3MAA4AQR.js");
1353
+ const { buildCachedPrompt, computePreviewToolDiff } = await import("./dynamic-context-KGSZ7TRQ.js");
1354
1354
  const allAgents = await import("./registry-PVJAAL2Y.js");
1355
1355
  const agentDef = allAgents.findAgentById(session.mode, await allAgents.loadAllAgentsDefault()) ?? allAgents.findAgentById("planner", await allAgents.loadAllAgentsDefault());
1356
1356
  const modelName = session.providerModel ?? _providerManager?.getCurrentModel();
@@ -1362,7 +1362,7 @@ async function handleClientMessage(ws, client, message, _getLLMClient, _getActiv
1362
1362
  const oldCached = sessionManager.getCachedPrompt(sessionId);
1363
1363
  const oldPrompt = oldCached?.systemPrompt;
1364
1364
  const diff = oldPrompt ? computeUnifiedDiff(oldPrompt, newPrompt) : [];
1365
- const { getToolRegistryForAgent } = await import("./tools-LZHSSSK4.js");
1365
+ const { getToolRegistryForAgent } = await import("./tools-AY6XEVJK.js");
1366
1366
  const unfilteredTools = getToolRegistryForAgent(agentDef).definitions;
1367
1367
  const toolDiff = computePreviewToolDiff(oldCached?.tools, unfilteredTools, newTools);
1368
1368
  send({
@@ -1735,4 +1735,4 @@ export {
1735
1735
  signalMcpReady,
1736
1736
  createWebSocketServer
1737
1737
  };
1738
- //# sourceMappingURL=chunk-TVSIWRKE.js.map
1738
+ //# sourceMappingURL=chunk-IFARTQOK.js.map
@@ -162,7 +162,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
162
162
  client = deps.getLLMClient();
163
163
  client.setModel(providerConfig.model);
164
164
  } else if (providerConfig) {
165
- const { createLLMClient } = await import("./client-6KC6SP2U.js");
165
+ const { createLLMClient } = await import("./client-KJS7QIIV.js");
166
166
  client = createLLMClient(
167
167
  {
168
168
  llm: {
@@ -182,6 +182,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
182
182
  const timeoutSignal = AbortSignal.timeout(12e4);
183
183
  const composedSignal = signal ? AbortSignal.any([timeoutSignal, signal]) : timeoutSignal;
184
184
  const response = await client.complete({
185
+ sessionId,
185
186
  messages: [{ role: "user", content: prompt }],
186
187
  tools: [],
187
188
  ...modelSettings ? { modelSettings } : {},
@@ -216,4 +217,4 @@ export {
216
217
  needsNameGeneration,
217
218
  generateSessionNameForSession
218
219
  };
219
- //# sourceMappingURL=chunk-YIEIVHCQ.js.map
220
+ //# sourceMappingURL=chunk-K227HOLU.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-TS5WKTFB.js";
7
7
  import {
8
8
  getBackendCapabilities
9
- } from "./chunk-AKWJMMEJ.js";
9
+ } from "./chunk-VLQ6BMU7.js";
10
10
  import {
11
11
  buildModelParams
12
12
  } from "./chunk-QMU3ZY2C.js";
@@ -39,14 +39,15 @@ function matchRetryPatterns(content, thinking, patterns) {
39
39
 
40
40
  // src/server/chat/stream-utils.ts
41
41
  function buildStreamRequestObject(params) {
42
- const { messages, tools, toolChoice, reasoningEffort, signal, modelSettings } = params;
42
+ const { messages, tools, toolChoice, reasoningEffort, signal, modelSettings, sessionId } = params;
43
43
  return {
44
44
  messages,
45
45
  ...tools && { tools },
46
46
  ...toolChoice && { toolChoice },
47
47
  ...reasoningEffort && { reasoningEffort },
48
48
  ...signal && { signal },
49
- ...modelSettings && { modelSettings }
49
+ ...modelSettings && { modelSettings },
50
+ ...sessionId && { sessionId }
50
51
  };
51
52
  }
52
53
  function buildStreamRequest(client, options) {
@@ -140,7 +141,8 @@ async function* streamLLMPure(options) {
140
141
  toolChoice,
141
142
  reasoningEffort,
142
143
  signal: combinedSignal,
143
- modelSettings: options.modelSettings
144
+ modelSettings: options.modelSettings,
145
+ sessionId: options.sessionId
144
146
  });
145
147
  const seenToolIndices = /* @__PURE__ */ new Set();
146
148
  const toolNames = /* @__PURE__ */ new Map();
@@ -518,4 +520,4 @@ export {
518
520
  createChatDoneEvent,
519
521
  consumeStreamGenerator
520
522
  };
521
- //# sourceMappingURL=chunk-HEYU7FAY.js.map
523
+ //# sourceMappingURL=chunk-OA7KBQ2O.js.map