Skip to content

Remove --disable-slash-commands flag for Claude Code 1.0.0 compatibility #24806

@lpcox

Description

@lpcox

Problem

Claude Code 1.0.0 removed the --disable-slash-commands CLI flag as a breaking change. The gh-aw compiler unconditionally injects this flag when building Claude engine execution steps, causing all Claude-engine workflows to fail at runtime with:

error: unknown option '--disable-slash-commands'

This results in the generic error:

ERR_CONFIG: Claude execution failed: no structured log entries were produced.
This usually indicates a startup or configuration error before tool execution.

Evidence

Affected Code

  1. pkg/workflow/claude_engine.go:116 — unconditionally appends --disable-slash-commands to Claude CLI args
  2. pkg/workflow/claude_engine_test.go:106-107 — asserts the flag is present
  3. pkg/workflow/testdata/TestWasmGolden_CompileFixtures/claude-with-network.golden — golden test file contains the flag
  4. 43 .lock.yml files — all compiled Claude workflows contain the flag

Solution

  1. Remove line 116 from pkg/workflow/claude_engine.go (the --disable-slash-commands append)
  2. Update the test in claude_engine_test.go to no longer assert the flag is present
  3. Update the golden test file claude-with-network.golden
  4. Run make recompile to regenerate all 43 affected .lock.yml files
  5. Run make agent-finish to validate

Notes

  • The --disable-slash-commands flag was originally added to prevent slash command injection during automated execution. Since Claude Code 1.0.0 removed it, slash commands may now be interpreted. Consider whether alternative mitigation is needed (e.g., input sanitization or a Claude settings file option).
  • The NPM package @anthropic-ai/claude-code is also deprecated in favor of native installers — that is a separate concern tracked elsewhere.

Metadata

Metadata

Assignees

Labels

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