Skip to content

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

Merged
pelikhan merged 2 commits intomainfrom
copilot/remove-disable-slash-commands-flag
Apr 6, 2026
Merged

Remove --disable-slash-commands flag for Claude Code 1.0.0 compatibility#24807
pelikhan merged 2 commits intomainfrom
copilot/remove-disable-slash-commands-flag

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

Claude Code 1.0.0 dropped --disable-slash-commands as a breaking change. The compiler unconditionally injected it, causing all Claude-engine workflows to fail at startup with error: unknown option '--disable-slash-commands'.

Changes

  • pkg/workflow/claude_engine.go — Remove --disable-slash-commands from the Claude CLI args builder
  • pkg/workflow/claude_engine_test.go — Remove assertion for the now-absent flag
  • claude-with-network.golden — Update golden output accordingly
  • 44 .lock.yml files — Recompiled via make recompile to purge the flag from all compiled workflows

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -embedcfg /tmp/go-build3606987751/b063/embedcfg -pack (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw _value"]."\n"; (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .visibility (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/-
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/- --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:



✨ PR Review Safe Output Test - Run 24016762959

💥 [THE END] — Illustrated by Smoke Claude · ● 301K ·

Copilot AI changed the title [WIP] Remove --disable-slash-commands flag for Claude Code 1.0.0 compatibility Remove --disable-slash-commands flag for Claude Code 1.0.0 compatibility Apr 6, 2026
Copilot finished work on behalf of lpcox April 6, 2026 02:47
Copilot AI requested a review from lpcox April 6, 2026 02:47
@pelikhan pelikhan added the smoke label Apr 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

✅ All tools validated successfully! Agent Container Smoke Test confirms agent container is ready.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation...

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions github-actions bot removed the smoke label Apr 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Agent Container Tool Check

Tool Status Version
bash 5.2.21
sh available
git 2.53.0
jq 1.7
yq v4.52.5
curl 8.5.0
gh 2.89.0
node v20.20.2
python3 3.12.3
go 1.24.13
java 21.0.10 (Temurin)
dotnet 10.0.201

Result: 12/12 tools available ✅

Overall Status: PASS

🔧 Tool validation by Agent Container Smoke Test · ● 198.5K ·

@lpcox lpcox marked this pull request as ready for review April 6, 2026 02:59
Copilot AI review requested due to automatic review settings April 6, 2026 02:59
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smoke test review: PR removes --disable-slash-commands flag from Claude Code invocations across all lock files for 1.0.0 compatibility. Changes look correct and consistent across all workflow files. LGTM.

📰 BREAKING: Report filed by Smoke Copilot · ● 1.5M

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Claude Code engine integration to stop passing the removed --disable-slash-commands CLI flag, restoring compatibility with Claude Code 1.0.0+ and ensuring compiled workflow outputs no longer include the invalid option.

Changes:

  • Remove --disable-slash-commands from the Claude CLI args builder.
  • Update the Claude engine unit test and golden fixture to match the new CLI invocation.
  • Regenerate compiled .lock.yml workflows to purge the removed flag everywhere.
Show a summary per file
File Description
pkg/workflow/claude_engine.go Stops injecting --disable-slash-commands into the Claude CLI invocation.
pkg/workflow/claude_engine_test.go Removes the assertion expecting the deprecated flag.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/claude-with-network.golden Updates golden output to reflect the new Claude command line.
.github/workflows/test-create-pr-error-handling.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/step-name-alignment.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/static-analysis-report.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/sergo.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/semantic-function-refactor.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/scout.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/schema-consistency-checker.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/safe-output-health.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/prompt-clustering-analysis.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/lockfile-stats.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/instructions-janitor.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/hourly-ci-cleaner.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/go-pattern-detector.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/github-mcp-tools-report.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/github-mcp-structural-analysis.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/example-workflow-analyzer.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/deep-report.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-team-evolution-insights.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-security-red-team.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-safe-outputs-conformance.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-safe-output-optimizer.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-rendering-scripts-verifier.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-otel-instrumentation-advisor.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-function-namer.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-code-metrics.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/daily-choice-test.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/copilot-session-insights.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/copilot-agent-analysis.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/commit-changes-analyzer.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/cli-version-checker.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/claude-code-user-docs-review.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.
.github/workflows/audit-workflows.lock.yml Regenerated compiled workflow; removes deprecated flag from Claude invocations.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 46/46 changed files
  • Comments generated: 1

Comment on lines 112 to 116
// Add print flag for non-interactive mode
claudeArgs = append(claudeArgs, "--print")

// Disable slash commands for controlled execution
claudeArgs = append(claudeArgs, "--disable-slash-commands")

// Disable Chrome integration for security and deterministic execution
claudeArgs = append(claudeArgs, "--no-chrome")
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that --disable-slash-commands has been removed, consider leaving a brief inline note here explaining that Claude Code v1.0.0 dropped the flag (and that passing it breaks startup). This helps prevent someone from reintroducing the arg later when scanning for “hardening” flags.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Smoke Test Results — Run 24016762959

Test Status
1 GitHub MCP
2 MCP Scripts GH CLI
3 Serena MCP (15+ symbols)
4 Make Build
5 Playwright (GitHub title)
6 Tavily Search
7 File Writing
8 Bash Tool
9 Discussion Interaction
10 Agentic Workflows MCP
11 Slack Safe Output
12 Code Scanning Alert
13 Update PR
14 PR Review Comments (2)
15 Submit PR Review
16 Resolve Review Thread ⚠️ skipped
17 Add Reviewer (copilot)
18 Push to PR Branch
19 Close PR ⚠️ skipped

Overall: PARTIAL — 17 passed, 2 skipped, 0 failed

💥 [THE END] — Illustrated by Smoke Claude · ● 301K ·

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥 Automated smoke test review - all systems nominal!

💥 [THE END] — Illustrated by Smoke Claude · ● 301K

@@ -847,7 +847,7 @@ jobs:
touch /tmp/gh-aw/agent-step-summary.md
# shellcheck disable=SC1003
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Smoke test review: Correctly removes --disable-slash-commands flag — this flag was removed in Claude Code 1.0.0 and is no longer valid. Good change for compatibility.

@@ -740,7 +740,7 @@ jobs:
touch /tmp/gh-aw/agent-step-summary.md
# shellcheck disable=SC1003
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Smoke test review: Same --disable-slash-commands removal here. Consistent change across all lock files. LGTM!

@lpcox
Copy link
Copy Markdown
Collaborator

lpcox commented Apr 6, 2026

@copilot apply changes based on the comments in this thread

@pelikhan pelikhan merged commit 5bcb428 into main Apr 6, 2026
216 of 221 checks passed
@pelikhan pelikhan deleted the copilot/remove-disable-slash-commands-flag branch April 6, 2026 03:08
Copilot stopped work on behalf of lpcox due to an error April 6, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants