Skip to content

docs/reference/templates not bundled, causing 'Missing workspace template' error #18

@schickling

Description

@schickling

Problem

When a Discord message is received, clawdbot fails with:

[discord] handler failed: Error: Missing workspace template: AGENTS.md 
(/nix/store/.../lib/clawdbot/docs/reference/templates/AGENTS.md). 
Ensure docs/reference/templates are packaged.

Root Cause

The docs/reference/templates/ directory is not included in the clawdbot-gateway package. This is similar to issue #14 (extensions not bundled).

Files missing

The gateway-install.sh script doesn't copy:

  • docs/reference/templates/AGENTS.md
  • docs/reference/templates/SOUL.md
  • docs/reference/templates/TOOLS.md
  • And other template files

Suggested Fix

Add to gateway-install.sh:

cp -r docs "$out/lib/clawdbot/"

Or selectively:

mkdir -p "$out/lib/clawdbot/docs/reference"
cp -r docs/reference/templates "$out/lib/clawdbot/docs/reference/"

Workaround

Currently investigating if there's an env var to override template path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions