Skip to content

fix(acp): forward /scheduler, /graph, /plan slash commands to agent loop#1675

Merged
bug-ops merged 2 commits intomainfrom
acp-scheduler-slash-command
Mar 13, 2026
Merged

fix(acp): forward /scheduler, /graph, /plan slash commands to agent loop#1675
bug-ops merged 2 commits intomainfrom
acp-scheduler-slash-command

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 13, 2026

Summary

  • Replaces the denylist exclusion in handle_prompt() with slash_command_pass_through() — a named helper that explicitly lists which slash commands must be forwarded to the core agent loop
  • /scheduler list (and all subcommands) no longer returns "unknown command" in ACP sessions (Zed, Helix, VS Code)
  • Also fixes /graph and /plan which were broken for the same reason
  • Adds unit tests for slash_command_pass_through()

Root cause

handle_prompt() in zeph-acp intercepted all / inputs and routed them to ACP's own handle_slash_command() — unless they were exactly /compact or /model refresh. When PR #1648 added /scheduler list to the core agent loop, the ACP pass-through was not updated.

Changes

  • crates/zeph-acp/src/agent/mod.rs: extracted slash_command_pass_through(), updated handle_prompt() condition
  • crates/zeph-acp/src/agent/tests.rs: added unit tests for the helper

Test plan

  • cargo +nightly fmt --check — passes
  • cargo clippy --workspace --features full -- -D warnings — passes
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins — 5266/5266 passed

Follow-up

#1672 tracks the remaining broken agent-loop commands (/status, /skills, /mcp, /image, /log, /agent, etc.) which hit the same issue.

Closes #1658

In handle_prompt(), replace the denylist exclusion with slash_command_pass_through()
that explicitly lists commands to forward to zeph-core. Fixes /scheduler list (and
all subcommands) returning "unknown command" in ACP sessions (Zed, Helix, VS Code).
Adds /graph and /plan to the pass-through list as they were broken for the same reason.

Adds unit tests for slash_command_pass_through().
Follow-up: #1672 tracks remaining broken agent-loop commands.

Closes #1658
@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation rust Rust code changes size/S Small PR (11-50 lines) labels Mar 13, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 13, 2026 19:12
@bug-ops bug-ops merged commit 22392b8 into main Mar 13, 2026
15 checks passed
@bug-ops bug-ops deleted the acp-scheduler-slash-command branch March 13, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation rust Rust code changes size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(acp): /scheduler slash command not forwarded to agent loop in ACP sessions

1 participant