openzoo 0.48.11 → 0.48.12

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 (2) hide show
  1. package/lib/grokui.mjs +15 -1
  2. package/package.json +1 -1
package/lib/grokui.mjs CHANGED
@@ -236,9 +236,23 @@ function loadThreads() {
236
236
 
237
237
  function newThread(name, parent, members) {
238
238
  const id = randomUUID();
239
+ // A subagent INHERITS its parent's run mode, working directory and model.
240
+ //
241
+ // runMode especially: children defaulted to 'ask', so a bot spawned in auto
242
+ // mode emitted a RUN, the harness parked it awaiting approval, and nobody
243
+ // was watching that thread to approve it. The subagent looked "stuck
244
+ // typing…" forever while the parent reported it as working. Spawning from
245
+ // auto and landing in ask is never what the user meant.
246
+ //
247
+ // dir matters just as much — a child that defaults elsewhere cannot see the
248
+ // files the parent was sent to work on.
249
+ const p = parent ? threads.get(parent) : null;
239
250
  const t = { id, name, color: members ? members[0].color : colorFor(name), parent: parent || null,
240
251
  messages: members ? null : [{ role: 'system', content: SYSTEM }],
241
- members: members || null, history: [], status: 'idle', createdAt: Date.now(), lastActivityAt: Date.now() };
252
+ members: members || null, history: [], status: 'idle', createdAt: Date.now(), lastActivityAt: Date.now(),
253
+ ...(p?.runMode ? { runMode: p.runMode } : {}),
254
+ ...(p?.dir ? { dir: p.dir } : {}),
255
+ ...(p?.model ? { model: p.model } : {}) };
242
256
  threads.set(id, t);
243
257
  saveThreads();
244
258
  return t;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.48.11",
3
+ "version": "0.48.12",
4
4
  "description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana and Base rails live; Robinhood experimental.",
5
5
  "license": "MIT",
6
6
  "type": "module",