Environment
- Grok-Wiki desktop 0.0.38 (macOS Apple Silicon)
- Local agent: Claude Code (recent install via Homebrew)
claude-agent-acp present on PATH
- Wiki format: Documentation, deep mode, local repository
Summary
Wiki/Docs generation fails immediately with Invalid params during the Claude ACP handshake. The same workflow succeeds when ACP is disabled.
Steps to reproduce
- Install Grok-Wiki 0.0.38 and authenticate Claude Code locally.
- Ensure
claude-agent-acp is available (e.g. via npm i -g @agentclientprotocol/claude-agent-acp).
- Start a local wiki/docs generation run with Claude Code as the agent.
- Observe failure during structure phase.
Expected behavior
Generation proceeds past ACP initialization, similar to direct Claude Code spawning (Claude Code process spawned → Prompt sent to Claude Code).
Actual behavior
Run fails in ~1–2 seconds with:
- UI:
Invalid params
- Agent notes stop at:
Initializing Claude ACP session.
Event sequence (from local run history):
preparing → workspace-ready → starting
→ acp (Using ACP server …/claude-agent-acp)
→ spawned → acp-initialize
→ [retry with basic profile]
→ acp-initialize again
→ error: Invalid params
Compound knowledge profile retry does not help; failure occurs before any page generation.
Workaround
Disable ACP and use legacy direct Claude Code spawn:
GROK_WIKI_ACP=off open -a "Grok-Wiki"
After this, generation works as expected (direct Claude Code path).
Notes / suspected cause
On 0.0.38, Claude runs appear to prefer the ACP adapter when claude-agent-acp is detected. The failure happens at initialize, before session/new or prompt delivery.
This resembles other ACP clients hitting JSON-RPC -32602 Invalid params due to malformed initialize params (e.g. missing clientInfo.version, or clientCapabilities vs capabilities field mismatch). Worth checking runAcpStdioSession / ACP adapter initialization payload against the current ACP spec and claude-agent-acp expectations.
Suggested fixes
- Fix ACP
initialize payload for Claude adapter.
- Or fall back to direct Claude Code spawn when ACP initialize fails (similar to pre-0.0.38 behavior).
- Surface ACP stderr / JSON-RPC error details in the UI instead of generic
Invalid params.
Environment
claude-agent-acppresent on PATHSummary
Wiki/Docs generation fails immediately with
Invalid paramsduring the Claude ACP handshake. The same workflow succeeds when ACP is disabled.Steps to reproduce
claude-agent-acpis available (e.g. vianpm i -g @agentclientprotocol/claude-agent-acp).Expected behavior
Generation proceeds past ACP initialization, similar to direct Claude Code spawning (
Claude Code process spawned→Prompt sent to Claude Code).Actual behavior
Run fails in ~1–2 seconds with:
Invalid paramsInitializing Claude ACP session.Event sequence (from local run history):
Compound knowledge profile retry does not help; failure occurs before any page generation.
Workaround
Disable ACP and use legacy direct Claude Code spawn:
GROK_WIKI_ACP=off open -a "Grok-Wiki"After this, generation works as expected (direct Claude Code path).
Notes / suspected cause
On 0.0.38, Claude runs appear to prefer the ACP adapter when
claude-agent-acpis detected. The failure happens atinitialize, beforesession/newor prompt delivery.This resembles other ACP clients hitting JSON-RPC
-32602 Invalid paramsdue to malformedinitializeparams (e.g. missingclientInfo.version, orclientCapabilitiesvscapabilitiesfield mismatch). Worth checkingrunAcpStdioSession/ ACP adapter initialization payload against the current ACP spec andclaude-agent-acpexpectations.Suggested fixes
initializepayload for Claude adapter.Invalid params.