Start for free
Reference/Troubleshooting

Reference

Troubleshooting

What to check when a comment, a preview or your agent does not behave as expected.

The bar does not appear on the page

Press ⌥ ⇧ F (Alt Shift F outside a Mac): it shows or hides the bar. It appears on your dev server and on shared previews; a production build carries nothing of ours. On a preview or a script-tag site, visitors see nothing until a reviewer opens the site through their review link.

On Astro, the bar never loads

Astro needs the integration, ontrackd/astro, in integrations, not the Vite plugin. The plugin alone never loads the widget, and it warns when used that way.

The MCP server does not start

Start it the way feedback-mcp init prints it, not with npx ontrackd. npx goes to the registry, so it can start another version than the one your project pinned, and it fails offline. What init prints runs the copy installed in your project.

My agent keeps asking me to sign in

Sign in from the browser tab your agent opens, then choose Allow. Choosing Deny sends your agent back without access, and closing the tab leaves it waiting. If the page says the request is no longer valid, it waited more than 10 minutes: start again from your agent. If your agent keeps asking again, it may not keep its sign-in: remove the server and add it again, or use a personal token.

My agent cannot resolve a comment

Two reasons. Resolving may be off for this agent: turn it on in the dashboard: open the project, then Settings, Agents. Or the comment is someone else’s and you are not an owner or admin of the project: only the author, an owner or an admin may resolve it, through your agent or not. Ask one of them, or leave it open.

A project is missing from the list

Your agent sees only the projects you picked when you signed in. To add one, disconnect the agent in a project’s Settings, Agents, and sign in again. A project you cannot see on the dashboard is not offered at all. Standalone projects are never offered: their comments are end-to-end encrypted, so use the local server for them.

My agent does not see the preview’s comments

Check two things in the app the server runs for:

  • It has its secret. ONTRACKD_SECRET in the app’s .env.local, in the environment the server starts with, or saved by ontrackd link. The value is in the project’s Setup tab.
  • FEEDBACK_CLOUD_SYNC is not 0. That keeps the app local.

New comments are fetched at most every 20 seconds, so one left a moment ago may take that long to show. If a fetch failed, the tool’s answer says why, at the top. See Connect your agent.

ontrackd pull says the project has no secret

Add ONTRACKD_SECRET to .env.local in the app, from the project’s Setup tab, or run ontrackd link to sign in and save it. Then run it again.

My dev server asks me to sign in

The app has a project secret (ONTRACKD_SECRET in .env.local or .env), so the dev server uses the project: sign in with the account you use on ontrackd, and comments go to the project. To keep comments on your machine, remove the secret or set FEEDBACK_CLOUD_SYNC=0. If it still asks for a name, open the browser console: it says why the page stayed local, such as the API being unreachable or a network address (192.168.…) that cannot sign in.

The widget shows, but comments do not go through

The page’s address is probably not allowed. Add its exact origin in the project’s Settings → Allowed sites: https://, the host, and the port if it has one.

The preview worked, then stopped after a deploy

Its address probably changed. In Settings → Allowed sites, allow one that stays the same between deploys, like your preview branch’s URL, rather than a per-deployment one.

A comment on a preview has no file and line

That preview’s build could not upload everything it needed, and it said so when it was built. Run ontrackd push where it was built. If that machine is gone, as a CI runner usually is, rebuild that commit.

Comments say the project secret has changed

The secret was rotated after the preview was built, so that build’s comments can no longer point at their lines. Put the new secret in .env.local (or run ontrackd link again), update ONTRACKD_SECRET on your host, and rebuild. Comments on the old build need to be left again.

The preview build stops because of source maps

A shared build refuses to emit source maps, because they would publish your source code. Set build.sourcemap: false for preview builds, or turn shared mode off.

The preview build stops: no Cloud session

The build could not reach the API, or the API refused the project’s secret. Check ONTRACKD_API_URL if you set one, and that ONTRACKD_SECRET is the current secret from the project’s Settings → Build secret, then rebuild. A failure here is not remembered, so the next build tries again.

Esc

Type to search every page.