← centrs docs

usage/invalid-cursor

An explain --cursor is not a byte offset inside the input being analyzed.

Typical trigger

centrs explain <router> '<input>' --complete --cursor <byte> with a value that is not a whole number, or that is larger than the input's UTF-8 byte length. Library callers get the same code for an original-document position ({ line, character }) that addresses no character in the input.

The check runs before any connection is made, so nothing is sent to the router.

Fix