Getting this error while using codemachine #77
Unanswered
hima-d-bot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ CodeMachine Workflow • 00:04 • Running... Tokens: 0in/0out │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[↑↓] Navigate [ENTER] Expand/View Logs [H] History [Ctrl+S] Skip [Ctrl+C] Exit
[ERROR] Agent 13 (init) failed after 2046ms: Memory entry requires non-empty content
Workflow execution failed: 35 |
);for(let d of l){if(!d.trim())continue;if(QA.captureFromStreamJson(d),L){let p=QA.getCaptured();if(p&&p.tokens){let zA=(p.tokens.input??0)+(p.tokens.cached??0);L({tokensIn:zA,tokensOut:p.tokens.output??0,cached:p.tokens.cached,cost:p.cost,duration:p.duration})}}let UA=VV(d);if(UA)M?.(UA+36 |
)}},onStderr:x?void 0:(c)=>{let i=h(c);N?.(i)},signal:k,stdioMode:x?"inherit":"pipe",timeout:v})}catch(c){let i=c,l=i?.message??"";if(i?.code==="ENOENT"||/not recognized as an internal or external command/i.test(l)||/command not found/i.test(l)){let UA=${y} ${DA.join(" ")}.trim(),p=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 | ${p}
)}throw c}if(s.exitCode!==0){let l=(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:l,command:${y} ${DA.join(" ")}}),Error(Codex CLI exited with code ${s.exitCode}40 | ${l}
)}return QA.logCapturedTelemetry(s.exitCode),{stdout:s.stdout,stderr:s.stderr}}var OV;var eM=n(()=>{A2();C4();Q0();Yw();YD();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 | ... truncatederror: Memory entry requires non-empty content
at ensureRequiredFields (/$bunfs/root/runner-process.js:40:2437)
at append (/$bunfs/root/runner-process.js:40:1669)
at append (/$bunfs/root/runner-process.js:40:1790)
at N5 (/$bunfs/root/runner-process.js:114:1820)
at async h4 (/$bunfs/root/runner-process.js:299:2259)
at async mz (/$bunfs/root/runner-process.js:624:6766)
at async iz (/$bunfs/root/runner-process.js:645:1044)
Beta Was this translation helpful? Give feedback.
All reactions