-
Notifications
You must be signed in to change notification settings - Fork 216
Description
I installed Codex, CodeMachine and OpenCode and completed the specifications file. When I run the /start command, I receive the error shown below. I am using Windows and performed the installation with npm. Second issue, Task Completion Checker uses Codex engine by default. It won't change to Opencode. I edited my codemachine. workflow.js. So I had to install Codex
[↑↓] Navigate [ENTER] Expand/View Logs [H] History [Ctrl+S] Skip [Ctrl+C] Exit
[ERROR] Agent 2 (init) failed after 967ms: Memory entry requires non-empty content
Workflow execution failed: 35 | );for(let l of p){if(!l.trim())continue;if(QA.captureFromStreamJson(l),L){let c=QA.getCaptured();if(c&&c.tokens){let zA=(c.tokens.input??0)+(c.tokens.cached??0);L({tokensIn:zA,tokensOut:c.tokens.output??0,cached:c.tokens.cached,cost:c.cost,duration:c.duration})}}let UA=VV(l);if(UA)M?.(UA+
36 | )}},onStderr:x?void 0:(d)=>{let i=b(d);N?.(i)},signal:k,stdioMode:x?"inherit":"pipe",timeout:v})}catch(d){let i=d,p=i?.message??"";if(i?.code==="ENOENT"||/not recognized as an internal or external command/i.test(p)||/command not found/i.test(p)){let UA=${y} ${DA.join(" ")}.trim(),c=qE.installCommand,zA=qE.name;throw console.error([ERROR] ${zA} CLI not found when executing: ${UA}),Error('${y}' is not available on this system. Please install ${zA} first:
37 | ${c})}throw d}if(s.exitCode!==0){let p=(s.stderr.trim()||s.stdout.trim()||"no error output").split(
38 | ).slice(0,10).join(
39 | );throw console.error("[ERROR] Codex CLI execution failed",{exitCode:s.exitCode,error:p,command:${y} ${DA.join(" ")}}),Error(Codex CLI exited with code ${s.exitCode}
40 | ${p})}return QA.logCapturedTelemetry(s.exitCode),{stdout:s.stdout,stderr:s.stderr}}var OV;var tM=n(()=>{A2();C4();Q0();Yw();ZD();XE();OV=new RegExp(String.raw\u001B[[0-9;?][ -/][@-~]`,"g")});import{promises as F4}from"fs";import{join as TX}from"path";class _C{baseDir;analytics;constructor(B,I){this.baseDir=B,this.analytics=I}async append(B){await this.ensureBaseDir();let I=this.agentFilePath(B.agentId),C=await this.readEntriesFromFile(I);C.push(B),await F4.writeFile(I,JSON.stringify(C,null,2),"utf-8"),this.analytics?.onAppend?.({agentId:B.agentId,entry:B,source:"adapter"})}async read(B){await this.ensureBaseDir();let I=this.agentFilePath(B),C=await this.readEntriesFromFile(I);return this.analytics?.onRead?.({agentId:B,entries:C,source:"adapter"}),C}async readAll(){await this.ensureBaseDir();let B=await F4.readdir(this.baseDir).catch((C)=>{if(C.code==="ENOENT")return[];throw C}),I={};for(let C of B){if(!C.endsWith(".json"))continue;let g=C.replace(/.json$/,""),H=await this.readEntriesFromFile(TX(this.bas | ... truncated