Skip to content

Troubleshooting

Pummelchen edited this page Sep 18, 2026 · 11 revisions

Troubleshooting

Start here: run the installer again.

cd ChatBots
bash tools/install.sh

Every step repairs rather than duplicating. An interrupted download continues, a half-finished build is redone, and nothing is fetched twice. That is the right first response to almost anything.

The window is connected but never updates

The engine is reachable and the live feed is not arriving. The app polls once a second as a safety net, so a frozen window means something deeper. Look at the engine's log:

tail -20 ChatBots/.run/app-engine.log

That is the path when you are running from a checkout. An app installed somewhere else keeps its runtime files — this log, the certificate and the kept conversations — in ~/Library/Application Support/ChatBots/ instead. Nothing is ever written inside ChatBots.app itself: doing that would invalidate the app's signature the first time it launched.

The desktop app cannot reach the engine

The app talks to its engine over WebTransport on 127.0.0.1:7790. To see the connection as text rather than as an empty window, run the app's own client from a terminal:

swift run chatbots-probe --cycles 5

It prints one line per connection and all cycles succeeded when they all worked. A line that says FAILED names the reason. It uses the transport port 7790 by default; add --port to test a different engine.

"A process is answering on port 7790 that could not prove it is this user's engine"

Something is on the engine's port that is not the engine this app started. The engine writes a random token to its run directory (~/Library/Application Support/ChatBots, or .run in a checkout) before it accepts a connection, and the app asks it to echo that token before it sends anything — including your API keys. Anything that answers without it is not adopted, deliberately: a program that takes the port before the engine starts would otherwise be handed every cloud key in your Keychain.

Find what is holding the port and stop it, then start ChatBots again:

lsof -nP -iTCP:7790 -sTCP:LISTEN

The usual causes are an engine you started yourself in a terminal (bash tools/start.sh) and left running, or a second copy of the app. The refusal is a sentence rather than a silent failure on purpose: the app is telling you it declined to trust something, not that it could not connect.

It will not start

"The engine could not be found"

The app ships its engine inside itself. A copy assembled by hand without it cannot start one:

bash tools/make-app.sh

The app bounces once and disappears

Open Terminal and run it directly, so you can see the error:

cd ChatBots
./dist/ChatBots.app/Contents/MacOS/ChatBots

Failed to load the default metallib

The Metal shader library is missing from the app. The installer fixes this:

bash tools/install.sh

or, on its own:

bash tools/fetch-metal.sh --into dist/ChatBots.app

The compiler cannot be found

This is a different failure from the one above. cannot execute tool 'metal' due to missing Metal Toolchain means the compiler is absent, not the library, and it needs full Xcode:

xcodebuild -downloadComponent MetalToolchain

The website will not load

Is the Terminal window still open? That is the server.

bash tools/start.sh --status     # what is running
bash tools/start.sh              # start it again

If a port is busy, the script says so. Use different ones:

bash tools/start.sh --port 7990 --engine 7991

It loads on the Mac but not on my phone

Both devices must be on the same Wi-Fi, and the Mac's firewall must allow the connection — System Settings → Network → Firewall. Some routers also isolate wireless clients from each other, which no setting on the Mac can fix.

That connection working means the website is listening on the whole network, and the API behind it has no password — so anyone else on that Wi-Fi can read every kept conversation and steer the runs. Start it with bash tools/start.sh --local-only to bind it to this Mac instead; see Using the website.

It is slow, or seems stuck

The first turn takes a long time

Normal. The model is being loaded into memory — a few seconds, and it only happens once per seat.

A turn never finishes

Have a look at the engine log:

tail -20 ChatBots/.run/engine.log

If nothing is happening at all, something else may be holding the GPU. Quit LM Studio, any game, and any other app doing heavy graphics work.

Every turn takes minutes

Two models generating at once share the GPU, so each is slower than it would be alone. Some things that help:

  • Use Show thinking: Off, or a lower thinking level. Reasoning tokens cost as much as answer tokens.
  • Lower max output tokens in the pane settings.
  • Press Pause and read for a while, then resume.
  • For a long conversation, Condense to shrink the prompt — a long prompt takes longer to read before the model starts writing.

It is using a lot of memory

Each seat holds its own copy of the model. Two seats means two copies. With 8 GB of memory, run one seat on a cloud model instead — see Using cloud models.

It crashes

It crashed and there is a report in Console

Look for the faulting function:

ls -t ~/Library/Logs/DiagnosticReports/ChatBots*.ips | head -1

If it names mlx::core — CompilerCache::find, CustomKernel::eval_gpu — that is a known intermittent fault in the MLX runtime, not in this app. It is rare. Restart and carry on; if it happens repeatedly on the same kind of turn, note it, because it is worth reporting upstream.

It crashed while a long conversation was running

The context may be too full. Check the ctx figure at the bottom — if it is over about 90%, press Clear and start again, or Condense to reclaim room.

Nothing comes out of the model

The pane says "produced no text"

This nearly always means a reasoning model spent its whole output budget thinking. You will see the reasoning-token count in the message. Fixes:

  • Raise the thinking level's headroom, or set it to Off.
  • Raise max output tokens.
  • Use a shorter prompt — Condense first.

A cloud model returns "I cannot see image"

That model has no vision. It is worth knowing that this varies within a provider: DeepSeek's flash tier reads images, its pro tier does not. Use a seat whose model can see, or remove the image.

The answer is repetitive nonsense

This is what a model does when the sampling is wrong for it. The shipped defaults are tuned and measured for the local Qwen checkpoint with thinking on: on a fixed topic, tightening them took a three-turn run from eight repetition cuts to none, without touching the thinking budget.

The sampling values are a preset in the engine, not a control in the interface, so there is nothing here to adjust by hand. What is worth trying:

  • Turn thinking on, or raise it — some models degenerate badly without it.
  • Condense first, so the answer is not written over a very long prompt.
  • If a cloud model repeats, look at that endpoint's own parameters.

If the local checkpoint repeats with the shipped settings, that is a bug worth reporting.

Web search

The models never look anything up

Two things have to be true: the seat has web search enabled, and this machine has a Tavily key. Local seats only — an API-backed seat has no tools, because search runs inside this app.

Set the key in the environment or in ChatBots/.secrets.env:

TAVILY_API_KEY=tvly-dev-your-key-here

Then restart the engine. chatbots-cli prints whether it found one, on the line that begins tavily :.

No key ships with this repository, so a fresh clone has none and the opening brief says search is unavailable rather than promising a tool that cannot run. If the models try anyway, the log carries the reason.

Documents

"has no text layer — it looks like a scan"

The PDF is a picture of a page. Run OCR on it first, or find a text version.

The extracted text is wrong

Open the magnifying glass on the chip and look. PDFs with unusual layouts can lose their column structure during extraction. Try exporting a plain text version, or a different PDF.

A file is refused

The limits are 64 MB per file and 120,000 characters of extracted text. A larger file is refused rather than silently shortened to nothing. A document that fits the byte cap but not the character cap is shortened, and its chip says shortened.

Reset everything

To start from a clean slate but keep your models:

rm -rf ChatBots/.build ChatBots/dist
cd ChatBots && bash tools/install.sh

To remove your saved settings as well:

defaults delete local.chatbots.twollms

To remove the downloaded models too — this means downloading 3 GB again:

rm -rf ChatBots/models

Asking for help

Useful things to include:

sw_vers                            # macOS version
uname -m                           # should say arm64
sysctl -n hw.memsize               # memory, in bytes
tail -30 ChatBots/.install.log     # if setup failed
tail -30 ChatBots/.run/engine.log  # if a conversation failed
tail -30 ChatBots/.run/app-engine.log  # if the desktop app could not reach the engine

Redact any API key before posting.


Next: How it works

Clone this wiki locally