> ## Documentation Index
> Fetch the complete documentation index at: https://eispatch.framewire.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

> Common problems with EISPATCH and how to fix them, including interception, launch, dispatch, library, and installation issues.

This page collects the most common issues and how to resolve them.

> [accordion] Prompt is not intercepted
>
> * Make sure your prompt starts with `/eispatch` or `/dispatch` (also `eispatch:` or `dispatch:`).
> * For Codex, Claude Code, and OpenCode, confirm that the installer ran successfully: `node scripts/install-<host>.mjs --check`.
> * Start a new host session after installation so the host loads the new hook or plugin.
> * Codex, Claude Code, and OpenCode support `EISPATCH_AUTO_INTERCEPT=1`, which intercepts every prompt without a prefix. If it is unset, you must use the prefix.
> * OpenCode support is experimental. If the plugin does not trigger, see [OpenCode](https://eispatch.framewire.io/agents/opencode.md).

> [accordion] Composer URL is not shown (Codex or Claude Code)
>
> * The hook waits up to 2.5 seconds for the launcher (`core/launch-local-composer.mjs`) to write its ready file. If the server starts slower than that, the block message tells you to use the MCP tool `dispatch_compose` or `npm run preview` instead of showing a URL.
> * If `EISPATCH_NO_SPAWN=1` is set, the hook never starts the Local Composer and always shows that fallback message. Unset it to get a composer URL. This variable only affects the Codex and Claude Code hooks.
> * `npm run preview` starts the standalone preview server (`demo/server.mjs`) on `http://127.0.0.1:4177`. It is for UI inspection, not a replacement for a hook-launched Local Composer session.

> [accordion] Composer page stopped responding
>
> * A Local Composer started by the Codex or Claude Code hook closes after 30 minutes without requests.
> * Send the `/eispatch` prompt again to start a new session with a new URL and token.

> [accordion] Dispatch button is disabled
>
> * You must click **Approve** before **Dispatch** is enabled.
> * If you edit the prompt, select new capabilities, or change tasks after approving, the approval is invalidated. Approve again.

> [accordion] 401 error from the Local Composer
>
> * The `X-EISPATCH-Token` session token is missing or does not match this server. Each Local Composer session has its own token.
> * Open the composer URL printed by the current hook run instead of an old tab.

> [accordion] 403 error on dispatch
>
> * No approval token was sent, or the approval is no longer active (for example, the prompt was recompiled after approval). Click **Approve** again, then **Dispatch**.
> * A 403 can also mean the request used a different `Host`, `Origin`, or `Referer` than the composer's loopback address. Use the exact URL from the host output.

> [accordion] 409 error on dispatch
>
> * **Replay**: the approval token was already used or revoked. Approve again.
> * **Integrity mismatch**: the prompt sent for dispatch differs from the approved prompt (SHA-256 mismatch). Approve the current text, then dispatch.
> * These checks exist only in the Local Composer (Codex, Claude Code, OpenCode).

> [accordion] Clipboard copy failed
>
> * If the browser clipboard API is unavailable, the composer selects the approved prompt text automatically.
> * Copy it manually with `Ctrl+C` (or `Cmd+C`) and paste it into the agent.

> [accordion] Pasted prompt is blocked again
>
> * Hooks pass through any prompt that contains `<!-- DISPATCH_COMPILED_PROMPT`. Make sure the marker line was copied.
> * If you rewrote the Final Prompt manually and removed the marker, add it back or approve a regenerated prompt.

> [accordion] Loaded library prompt is not dispatchable
>
> * Loading a prompt from the library resets its approval state to **Draft**.
> * Review the prompt, then click **Approve** before dispatching.

> [accordion] Missing capabilities warning after reload
>
> * The library validates stored capability selections against the current host environment on reload.
> * If a capability was uninstalled or renamed, the composer reports it as missing. Remove or replace it, then save.

> [accordion] Library lock timeout
>
> * Another process may hold `~/.eispatch/library.json.lock`.
> * A writer waits up to 3 seconds and then fails with `Timed out waiting for library lock`. A lock file older than 10 seconds is treated as stale and removed on the next attempt.
> * Retry the action after a few seconds.

> [accordion] Node version errors
>
> * EISPATCH requires Node.js 20 or later.
> * Run `node --version` and upgrade if needed.

> [accordion] Moved repo after install
>
> * Installers reference absolute paths inside the cloned repository. If you move the repo, those paths break.
> * Rerun the relevant installer from the new location.

> [accordion] Claude Code check errors
>
> Common messages from the Claude Code installer's `--check` output:
>
> * **Missing Claude Code installation file**: install Claude Code first.
> * **Claude Code .claude.json missing valid mcpServers.eispatch entry**: the MCP server was not registered. Re-run the installer.
> * **Claude Code settings.json missing EISPATCH UserPromptSubmit hook**: the hook entry was not merged. Re-run the installer.

> [accordion] Theme forcing for preview
>
> * When running `npm run preview`, append `#theme=dark` or `#theme=light` to the URL to override the default `prefers-color-scheme` behavior.

## End-to-end verification

Run the built-in verification script:

```bash theme={null}
node demo/verify-e2e.mjs
```

or:

```bash theme={null}
npm run verify
```

According to the README, the suite tests `PreInvocation` hook capture, recursion prevention, self-exclusion, English and Nepali recommendations, manual final-prompt preservation, and the MCP Apps stdio protocol.

## Getting help

If the fixes above do not resolve your issue:

* Open an issue on GitHub: [https://github.com/FrameScope/eispatch/issues](https://github.com/FrameScope/eispatch/issues)
* Email the maintainers: [framewireio@gmail.com](mailto:framewireio@gmail.com)

Include the host (Codex, Claude Code, OpenCode, or Antigravity), the exact error message or behavior, and what you have already tried.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.