{"record":{"id":"011bbf01fd6b2657","repo":"Hmbown/CodeWhale","slug":"pipeline-max-1000-items-per-call","errorCode":null,"errorMessage":"pipeline(): max 1000 items per call","messagePattern":"pipeline\\(\\): max 1000 items per call","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"warning","filePath":"crates/workflow-js/src/vm.rs","lineNumber":1098,"sourceCode":"        return Promise.resolve(typeof thunk === \"function\" ? thunk() : thunk).catch((err) => {\n          if (isFatalTaskError(err)) throw err;\n          hostLog(\"parallel(): dropped a failed slot as null: \" + String((err && err.message) || err));\n          return null;\n        });\n      } catch (err) {\n        if (isFatalTaskError(err)) return Promise.reject(err);\n        hostLog(\"parallel(): dropped a failed slot as null: \" + String((err && err.message) || err));\n        return null;\n      }\n    }));\n  };\n\n  globalThis.pipeline = (items, ...stages) => {\n    if (!Array.isArray(items)) {\n      throw new TypeError(\"pipeline(): expected an array of items\");\n    }\n    if (items.length > MAX_ITEMS) {\n      throw new Error(\"pipeline(): max \" + MAX_ITEMS + \" items per call\");\n    }\n    return Promise.all(items.map(async (item, index) => {\n      let value = item;\n      for (const stage of stages) {\n        try {\n          value = await stage(value, item, index);\n        } catch (err) {\n          if (isFatalTaskError(err)) throw err;\n          hostLog(\"pipeline(): dropped item \" + index + \" as null: \" + String((err && err.message) || err));\n          return null;\n        }\n      }\n      return value;\n    }));\n  };\n\n  globalThis.log = (message) => {\n    hostLog(typeof message === \"string\" ? message : (JSON.stringify(message) ?? String(message)));","sourceCodeStart":1080,"sourceCodeEnd":1116,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/0c42157ee52f9d55af2b506d71b46249910f77d3/crates/workflow-js/src/vm.rs#L1080-L1116","documentation":"Startup warning: tui.toml exists but does not parse as TOML - the raw file is re-parsed as toml::Value after TuiPrefs::load already fell back to defaults. The TUI starts with default UI preferences and surfaces this warning instead of silently dropping the configuration.","triggerScenarios":"TOML syntax errors in tui.toml: unclosed strings or tables, duplicate keys, merge-conflict markers, or truncated writes.","commonSituations":"Manual edits with typos; git merge conflicts; a sync tool truncating the file while copying dotfiles between machines.","solutions":["Fix the syntax error at the position given by the ({e}) message","Validate with a TOML parser/linter before relaunching","If unsure, regenerate the file from defaults and re-apply the preferences"],"exampleFix":"# before (tui.toml)\n[scrollback\nlines = 10_000\n# after\n[scrollback]\nlines = 10000","handlingStrategy":"validation","validationCode":"// Same guard for UI prefs: parse tui.toml before launch.\nlet raw = std::fs::read_to_string(tui_prefs_path)?;\ntoml::from_str::<toml::Value>(&raw)?;","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Lint tui.toml in dotfiles repos","Check sync tools did not truncate the file","Regenerate from defaults when in doubt"],"tags":["tui","toml","config-parse","startup"],"backgroundTag":"toml-parse-error","analyzedSha":"0c42157ee52f9d55af2b506d71b46249910f77d3","analyzedAt":"2026-08-20T21:50:45.477Z","schemaVersion":2},"datasetVersion":"2026-08-21T10:36:37.832Z"}