0ad4b8c920
runClaude() unconditionally set CLAUDE_CONFIG_DIR to getClaudeHome() (~/.claude), so the CLI wrote ~/.claude/.claude.json — a file cc-discovery.getClaudeJsonPath() never reads (it reads ~/.claude.json, beside ~/.claude/, by design). Every default-install MCP add/remove and plugin/marketplace mutation was inert: add toasted success and vanished on refetch, remove 422'd for every server the panel lists. With CLAUDE_HOME unset (the default), leave CLAUDE_CONFIG_DIR unset too — the CLI's own default config dir already lines up with what cc-discovery reads, so alignment comes from doing nothing. Only pin it when the operator explicitly set CLAUDE_HOME, which is the one case the pin is meant for. Left a residual, documented at both sites: with CLAUDE_HOME set, reads still come from $HOME/.claude.json while the CLI writes <CLAUDE_HOME>/.claude.json — a split predating this task, affecting a configuration nobody here runs. New tests pin the env contract directly (no real CLI needed): runClaude must not set CLAUDE_CONFIG_DIR when CLAUDE_HOME is absent, and must set it to CLAUDE_HOME's value when present.