Skip to content

Troubleshooting

OCEANOFANYTHING edited this page Nov 24, 2026 · 2 revisions

Troubleshooting

The phone shows "Reconnecting"

The app lost the companion and is retrying on its own, through every address in the pairing. Commands you sent wait and are sent again once it reconnects.

  • Check that the PC is on and the companion is running. On the PC, http://127.0.0.1:9487/health answers while it runs.
  • Check that the phone is on the same network as the address in the pairing, or that your tunnel or Tailscale is up.
  • Restarting the companion is fine: the phone reconnects and gets a full update.

The phone shows "Access denied, re-pair this phone"

The app stopped trying because the companion refused it. Common causes:

Cause Fix
No access token stored on the phone, or the wrong one (close code 4001) Enter the token with Connect host: see Pairing (app 0.1.0 also needs a restart after it; later versions reconnect at once). Check Profile, Security & device: Host token should say Stored in keystore.
The phone was revoked on the PC (4003) Pair again with a new QR code, if the phone should have access.
The pairing offer had expired (over 5 minutes) or was already used Print a new QR code with --pair and pair again.
The PC's companion was reinstalled or its data folder deleted Pair again.
App and companion speak different protocol versions (4002) Update both to the latest release.

"Connection refused" from the phone

  • The companion listens on loopback only unless told otherwise. For a phone on your network it must listen on your LAN: the setup script does this (bind 0.0.0.0). By hand: --bind 0.0.0.0 --endpoint ws://<lan-ip>:8787.

  • A non-loopback bind requires a token; the companion refuses to start without one, and the token must be at least 32 characters.

  • Windows Firewall may block port 8787. The setup script adds a rule when run as administrator. Otherwise, in an administrator PowerShell:

    New-NetFirewallRule -DisplayName 'CHERNOBYL companion' -Direction Inbound -Protocol TCP -LocalPort 8787 -Action Allow -Profile Private -Program "$env:LOCALAPPDATA\Programs\CHERNOBYL\chernobyl-companion.exe"

    The rule covers Private networks. If Windows treats your Wi-Fi as Public, the phone cannot connect.

The phone connects but commands are refused

Beyond loopback a token alone is not enough: the phone must complete the encrypted handshake from pairing. Pair the phone with a QR code from --pair.

Windows says "Windows protected your PC"

The companion is not code-signed, so SmartScreen warns on first run. Check the checksum, then click More info and Run anyway, or unblock the file in its Properties.

The setup script fails

  • "No companion exe at ...": pass -Exe with the path to the downloaded companion.
  • "Workspace folder does not exist": every -Workspaces folder must exist.
  • "The companion did not come up": run the installed exe in a terminal to see why: & "$env:LOCALAPPDATA\Programs\CHERNOBYL\chernobyl-companion.exe".
  • "No LAN IPv4 address with a default gateway found": the PC needs a network connection with a gateway for the QR address.
  • A warning that claude (or agy) is not on PATH: install that agent and sign in once before you start sessions.
  • "Tunnel check failed": run ngrok once in a terminal to see why. Run ngrok config add-authtoken first if you have not.

The companion refuses to start a workspace

Drive roots, your user-profile folder and any folder that contains the CHERNOBYL data folder are refused. For Claude Code a bad folder leaves the entry without driven sessions; for Codex a bad folder stops the companion from starting. Pick a project folder instead.

No Claude Code, Codex or Antigravity sessions on the phone

  • Sign in to the agent on the PC once (claude, codex login, or agy).
  • Check that the folder is in the agent's workspaces in companion.json.
  • Codex: leave binary out. The companion finds codex.exe on PATH or in the Codex app's install; the npm codex.cmd shim is refused.
  • Antigravity runs commands through PowerShell found on PATH. A companion started with a PATH that lacks WindowsPowerShell\v1.0 makes every approved command fail.
  • A Claude Code session written in the last 2 minutes on the PC is not resumed from the phone; you can fork it instead.

An OpenCode task in a terminal does not stream to the phone

A plain opencode run "..." starts its own private server, so the phone sees it only at the companion's next check (within 15 seconds) and does not stream it. Run it through the server the companion watches:

opencode run --attach http://127.0.0.1:4096 "..."

No alerts in the background

See Notifications and background. Alerts stop while the connection is down, after you swipe the app away from recent apps, and after a phone restart until you open the app.

A console window flashes at login

Older autostart entries did this. Run --install-autostart again: it now starts the companion with --background, without a window.

Move to a new PC

A backup restored on another PC cannot use the old pairing keys, because Windows protects them for that PC and user. Install the companion on the new PC and pair the phone again.

Still stuck

Look at the companion's health on the PC (http://127.0.0.1:9487/health and /adapters, loopback only), or open an issue on GitHub. Never paste your token, pairing payload or control key into an issue.

Clone this wiki locally