Skip to content

DIAGNOSTIC ONLY: remove hooks.json to confirm Cowork sync theory - #5

Merged
isabelle-cedar merged 1 commit into
mainfrom
diagnostic-no-hooks
Jul 14, 2026
Merged

DIAGNOSTIC ONLY: remove hooks.json to confirm Cowork sync theory#5
isabelle-cedar merged 1 commit into
mainfrom
diagnostic-no-hooks

Conversation

@isabelle-cedar

Copy link
Copy Markdown
Contributor

⚠️ Diagnostic only — merge briefly, test, then revert immediately

Not a real fix. This removes cedar-plugin/hooks/hooks.json entirely to test
whether that's what's causing Cowork's marketplace sync to fail.

Why

The real underlying error (from claude.ai-web.log, not the generic UI
message) is:

Invalid hooks config at 'hooks.UserPromptSubmit.0.hooks.0.type': Input should be 'command', 'prompt' or 'agent'
Invalid hooks config at 'hooks.Stop.0.hooks.0.type': Input should be 'command', 'prompt' or 'agent'
Invalid hooks config at 'hooks.PostToolUse.0.hooks.0.type': Input should be 'command', 'prompt' or 'agent'

This exactly matches anthropics/claude-code#35653
(closed NOT_PLANNED) — Cowork's server-side marketplace-sync content validator
only accepts command/prompt/agent as hook types, and rejects mcp_tool
(what all three of Cedar's hooks use) outright.

Cowork's "Add from a repository" field doesn't support branch-pinning
(@ref/#ref both fail — confirmed live), so the only way to test this
theory against the real sync path is a real (if brief) change on main.

Plan

  1. Merge this PR.
  2. Immediately retest "Add marketplace" in Cowork.
  3. Revert right after, regardless of outcome — this is not staying merged.

🤖 Generated with Claude Code

DIAGNOSTIC ONLY — not a real fix, do not merge to main. Confirming the
theory that Cowork's remoteMarketplaceOps sync validator rejects
'mcp_tool' as a hook type (only accepts command/prompt/agent, per the
real error surfaced in claude.ai-web.log and matching
anthropics/claude-code#35653, closed NOT_PLANNED). Removing hooks
entirely should let the marketplace sync succeed, at the cost of losing
the plugin's conversation-capture feature for this branch.
@isabelle-cedar
isabelle-cedar merged commit 829df26 into main Jul 14, 2026
1 check passed
@isabelle-cedar
isabelle-cedar deleted the diagnostic-no-hooks branch July 14, 2026 03:04
isabelle-cedar added a commit that referenced this pull request Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant