Skip to content

Cron isolated jobs fail with 'Missing workspace template: AGENTS.md' despite file existing #14253

@tonystarkclawd

Description

@tonystarkclawd

Bug Description

Cron jobs running in isolated sessionTarget fail with error:

Error: Missing workspace template: AGENTS.md (/usr/lib/node_modules/openclaw/docs/reference/templates/AGENTS.md). Ensure docs/reference/templates are packaged.

The file AGENTS.md does exist at the path shown in the error:

$ ls -la /usr/lib/node_modules/openclaw/docs/reference/templates/AGENTS.md
-rw-r--r-- 1 root root 2.1K Feb 11 19:00 /usr/lib/node_modules/openclaw/docs/reference/templates/AGENTS.md

Affected Jobs

Jobs without explicit model in payload (defaulting to system default) fail. Jobs with model: 'kimi' or model: 'ollama/qwen2.5-1.5b-instruct' work correctly.

Failing jobs:

  • pieter-interface-prd-generate
  • pieter-interface-implement
  • pieter-skills-discovery-cto
  • hormozi-skills-discovery-content
  • x-trends-openclaw
  • hormozi-content-factory-daily

Working jobs (same isolated target):

  • pieter-auto-compound (model: kimi)
  • health-check-hourly-silent (model: ollama/qwen2.5-1.5b-instruct)

Environment

  • OpenClaw version: 2026.2.9
  • OS: Ubuntu 24.04 LTS
  • Node.js: v22.22.0

Steps to Reproduce

  1. Create a cron job with:
    • sessionTarget: 'isolated'
    • No model specified in payload (or model: 'default')
  2. Let the job run
  3. Job fails immediately with AGENTS.md template error

Workaround

Specify model: 'kimi' (or another non-default model) in the payload — these don't require the AGENTS.md template.

Expected Behavior

Cron isolated jobs should find and use the AGENTS.md template when using the default model, or not require it if it's not needed for operation.

Additional Context

This started happening after the 2026.2.9 update. The AGENTS.md file was temporarily missing during the update (causing widespread failures), but now exists and the error persists for isolated jobs with default model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions