Skip to content

Program crash because no tasks exists. #55

@dxmone

Description

@dxmone

I am trying to test this project but it stops for me. It did not create the tasks and if i go in the completed steps and try to rerun it the app always crashes anyway. It's doing the Git Commit Agent and after that the app crash.

The template.json is.

{
  "activeTemplate": "codemachine.workflow.js",
  "lastUpdated": "2025-12-10T08:56:30.630Z",
  "completedSteps": [
    0,
    1,
    3,
    4,
    5,
    6
  ],
  "notCompletedSteps": [
    7,
    8
  ],
  "resumeFromLastStep": true
}

[↑↓] Navigate [ENTER] Expand/View Logs [H] History [Ctrl+S] Skip [Ctrl+C] Exit
Workflow execution failed: 294 | 3. If not empty, remove all numbers from "notCompletedSteps" array
295 | 4. Or set "resumeFromLastStep": false to disable this feature
296 |
297 | Example:
298 | "notCompletedSteps": [] \u2190 Empty array means no incomplete steps to resume
299 | `.trim();return new p7(C,B,I)}function HS(B,I){}function c7(B,I,C,g){if(C)return HS(B,I),"";throw US(B,I)}var p7;var l7=n(()=>{p7=class p7 extends Error{placeholderName;filePath;constructor(B,I,C){super(B);this.placeholderName=I;this.filePath=C;this.name="PlaceholderError"}}});import{readFile as Kf,stat as d7}from"fs/promises";class s7{cache=new Map;maxSize=100;async get(B){let I=this.cache.get(B);if(!I)return null;try{if((await d7(B)).mtimeMs===I.mtime)return I.content;return this.cache.delete(B),null}catch{return this.cache.delete(B),null}}async set(B,I){try{let C=await d7(B);if(this.cache.size>=this.maxSize){let g=this.cache.keys().next().value;if(g)this.cache.delete(g)}this.cache.set(B,{content:I,mtime:C.mtimeMs})}catch{}}clear(){this.cache.clear()}}async function JS(B,I){let C=await i7.get(I);if(C!==null)return C;let g=await b7(B,I);return await i7.set(I,g),g}async function KS(B,I){let C=BY(),g=B,H=QY(B),R=f7(B),N=Array.from(R).map(async(k)=>{let b=H.find((h)=>h.name===k)?.isOptional||!1,W=T7(k,I,C);if(! | ... truncated

PlaceholderError: ❌ Error: {all_tasks_json} is required to complete this stage and provide high-quality results.

Expected file: .codemachine/artifacts/tasks/*.json

If you want to step back and skip this stage:

  1. Edit .codemachine/template.json
  2. Remove the step number from "completedSteps" array

Example:
"completedSteps": [0, 1, 2] ← Remove the last number to re-run that step

To disable resume from last step (start workflow from beginning):

  1. Edit .codemachine/template.json
  2. Check if "notCompletedSteps" array is empty: []
  3. If not empty, remove all numbers from "notCompletedSteps" array
  4. Or set "resumeFromLastStep": false to disable this feature

Example:
"notCompletedSteps": [] ← Empty array means no incomplete steps to resume
"resumeFromLastStep": false ← Disables the resume feature entirely
placeholderName: "all_tasks_json",
filePath: ".codemachine/artifacts/tasks/*.json",

  at US (/$bunfs/root/runner-process.js:299:17)
  at c7 (/$bunfs/root/runner-process.js:299:101)
  at <anonymous> (/$bunfs/root/runner-process.js:299:1309)
  at async KS (/$bunfs/root/runner-process.js:299:1390)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions