@questionbase/deskfree 0.6.9 → 0.6.10

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.
package/dist/bin.js CHANGED
@@ -14640,6 +14640,13 @@ ${userMessage}
14640
14640
  const delta = extractTextDelta2(message);
14641
14641
  if (delta) {
14642
14642
  fullText += delta;
14643
+ if (!fullText.trim()) {
14644
+ log.warn(`Skipping whitespace-only delta`, {
14645
+ delta: JSON.stringify(delta),
14646
+ fullText: JSON.stringify(fullText)
14647
+ });
14648
+ continue;
14649
+ }
14643
14650
  if (!streamStarted) {
14644
14651
  setInboundThreadId(taskId);
14645
14652
  await streamingSession.start(fullText, taskId);
@@ -14708,7 +14715,10 @@ ${userMessage}
14708
14715
  }
14709
14716
  }
14710
14717
  const errMsg = err instanceof Error ? err.message : String(err);
14711
- log.warn(`Worker drain loop error for task ${taskId}: ${errMsg}`);
14718
+ const errStack = err instanceof Error ? err.stack : void 0;
14719
+ log.warn(`Worker drain loop error for task ${taskId}: ${errMsg}`, {
14720
+ stack: errStack
14721
+ });
14712
14722
  try {
14713
14723
  await client.sendMessage({
14714
14724
  content: "Sorry, I encountered an error while working on this task. Please try again.",
@@ -14996,7 +15006,7 @@ async function startAgent(opts) {
14996
15006
  log.info("DeskFree Agent Runtime starting...");
14997
15007
  const { getRotationToken: getRotationToken2, setInitialRotationToken: setInitialRotationToken2 } = await Promise.resolve().then(() => (init_ws_gateway(), ws_gateway_exports));
14998
15008
  const { collectFingerprint: collectFingerprint2 } = await Promise.resolve().then(() => (init_fingerprint(), fingerprint_exports));
14999
- const runtimeVersion = "0.6.9";
15009
+ const runtimeVersion = "0.6.10";
15000
15010
  const fingerprint = collectFingerprint2(localConfig.stateDir, runtimeVersion);
15001
15011
  log.info("Connecting to DeskFree...", { wsUrl: localConfig.wsUrl });
15002
15012
  const connectResult = await initialConnect({