Skip to content

Error at /start #57

@enving

Description

@enving

When openeing cm and /login:
opencode is already authenticated.

Then I customized the specifications.md

and startet:
/start

then this error:

Error:

│ CodeMachine Workflow • 00:09 • Running... Tokens: 0in/0out │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[↑↓] Navigate [ENTER] Expand/View Logs [H] History [Ctrl+S] Skip [Ctrl+C] Exit
[ERROR] Agent 3 (init) failed after 3123ms: 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

error: Memory entry requires non-empty content
at ensureRequiredFields (B:/~BUN/root/runner-process.js:40:2437)
at append (B:/~BUN/root/runner-process.js:40:1669)
at append (B:/~BUN/root/runner-process.js:40:1790)
at Y5 (B:/~BUN/root/runner-process.js:114:1820)
at async h4 (B:/~BUN/root/runner-process.js:299:2259)
at async pz (B:/~BUN/root/runner-process.js:624:6766)
at async sz (B:/~BUN/root/runner-process.js:645:1044)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existsgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions