@tiens.nguyen/gonext-local-worker 1.0.56 → 1.0.57

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.
@@ -178,6 +178,10 @@ def run_agent_chat(cfg):
178
178
  except Exception: # noqa: BLE001
179
179
  pass
180
180
  result = _http_request_impl(method, url, parsed_headers, body or None)
181
+ # Emit immediately so the thinking area shows the result even when the
182
+ # generated code doesn't print() — _REAL_STDOUT bypasses redirect_stdout.
183
+ status_line = result.split("\n")[0][:150] if result else "no response"
184
+ _emit({"type": "step", "text": f"HTTP {method.upper()} {url} → {status_line}"})
181
185
  _log(f"http_request {method.upper()} {url} → {result[:80]}")
182
186
  return result
183
187
 
@@ -186,6 +190,11 @@ def run_agent_chat(cfg):
186
190
  text = _summarise_step(step_log)
187
191
  except Exception as e: # noqa: BLE001
188
192
  text = f"Step: {e}"
193
+ # Skip emitting if there's nothing beyond the tool name — the tool already
194
+ # emitted its own step event with the actual response above.
195
+ if not text or text.rstrip().endswith("| →"):
196
+ _log(f"step (empty obs, skipped): {text[:80]}")
197
+ return
189
198
  _log(f"step: {text[:200]}")
190
199
  _emit({"type": "step", "text": text})
191
200
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gonext-local-worker",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "Polls GoNext cloud API for async local LLM jobs and runs them against Ollama/OpenAI-compatible servers on this Mac",
5
5
  "type": "module",
6
6
  "license": "MIT",