Skip to content

Troubleshooting

Lattis only lists agents whose CLI it can find on your PATH. If Claude, Codex, Pi, or OpenCode is missing, install its CLI so the command (claude, codex, pi, opencode, or grok) runs in a terminal, then reopen the picker. If no agents are detected at all, Lattis lists all four as a fallback — but launching one that isn’t installed will fail.

An agent launches but can’t reach a model

Section titled “An agent launches but can’t reach a model”

Agents run against the models Lattis serves. Make sure you’ve connected a local model server or connected a provider, and that the model id the agent is configured to use actually appears in GET /v1/models. Lattis points each agent at its gateway automatically, so you shouldn’t need to set any base URL yourself.

Opening a branch reattaches instead of starting fresh

Section titled “Opening a branch reattaches instead of starting fresh”

That’s intended — re-opening a branch with a running session reconnects to it so you don’t spawn duplicates. To start over, close the existing agent tab first, then open the branch again.

PR and CI state come from the GitHub API with your connected GitHub account. Check the connection in Settings › Accounts › GitHub — the card shows Connected as @you when everything is set, and offers Connect GitHub (a short device code you enter at github.com/login/device) when not.

If the card says the token was rejected, your authorization was revoked or expired on GitHub’s side — click Connect GitHub to sign in again. Upgrading from an older Lattis that used the gh CLI? Your gh sign-in is imported automatically on the first launch after the update.

A PR shows red / blocked but CI looks fine

Section titled “A PR shows red / blocked but CI looks fine”

“Blocked” covers more than a failed check: merge conflicts, requested changes, and a branch that’s behind a protected base all show red. If the base requires branches to be up to date, use Pull Latest Main to update the branch — GitHub won’t allow the merge until you do.

  • Confirm the provider has a connected account.
  • Re-check the credential: POST /control/remote/{provider}/account/{account_id}/key for an API key, or reconnect OAuth with POST /control/remote/{provider}/account/{account_id}/connect.
  • Confirm the model id is exact (e.g. claude-opus-4-8, gpt-5.5). List what’s available with GET /v1/models.

Local models come from the servers you connect (LM Studio, Ollama, llama.cpp, vLLM, …) — see Local Models. Make sure the server is running and its OpenAI-compatible API is reachable at the account’s base URL (e.g. http://localhost:11434/v1 for Ollama). A server that goes down simply drops out of GET /v1/models until it’s back.

The Gmail, Google Calendar and Google Drive cards appear only when the daemon has a Google OAuth client. Release builds include one. A build from source has none unless it was built with LATTIS_GOOGLE_CLIENT_ID and LATTIS_GOOGLE_CLIENT_SECRET set. Set both in the daemon’s environment, then restart the daemon. See Configuration.

The Outlook and Outlook Calendar cards appear only when the daemon has a Microsoft client ID. Release builds do not include one yet. Set LATTIS_MICROSOFT_CLIENT_ID in the daemon’s environment, then restart the daemon. See Configuration.

Microsoft says that it needs admin approval

Section titled “Microsoft says that it needs admin approval”

With a work or school account, Microsoft can show Need admin approval. Your organization’s settings do not let you accept the permissions that Lattis asks for. An admin approves Lattis for the whole organization. Give the admin Outlook in Your Organization. After that, connect the card again.

Until Google verifies Lattis, the sign-in shows a screen that reads Google hasn’t verified this app. This screen is expected. To continue, select Advanced, then continue to Lattis.

A Google Workspace admin can block apps that Google has not verified. If your account is in such a domain, ask the admin to allow or trust the Lattis client. The admin does this in the Admin console, under Security → API controls. The admin needs the client ID. It is the client_id value in the sign-in address that Lattis opens in your browser.

Until the verification is complete, Google admits at most 100 new accounts in total. When Lattis reaches that limit, a new account cannot sign in. In that case, use your own client (see above).

If Google shows an error and does not return you to Lattis, the card keeps waiting until the sign-in times out after 5 minutes.

Google’s consent screen has a checkbox for each permission. If you cleared Manage drafts and send emails, Gmail connects with search and read only. To add drafts and sends, disconnect Gmail in Settings → Connectors, connect again, and leave both permissions checked. If you cleared View your email messages and settings, the sign-in fails, because no Gmail tool works without it.

Google Calendar can read but not create events

Section titled “Google Calendar can read but not create events”

If you cleared View and edit events on all your calendars on Google’s consent screen, Google Calendar connects with its read tools only. To add create_event, disconnect Google Calendar in Settings → Connectors, connect again, and leave that permission checked. If you cleared View events on all your calendars as well, the sign-in fails, because no Calendar tool works without read access to events. If you cleared See the list of Google calendars you’re subscribed to, Google Calendar connects without list_calendars.

read_file reads Google Docs, Sheets and Slides, and plain-text files. It does not read Word, Excel or PDF files that are stored in Drive. To read one, convert it to a Google Doc, Sheet or Slides deck in Google Drive, then ask again.

If a sheet’s first 100 rows hold more than 4 MB of cells, read_file cannot read that sheet. Ask for a smaller sheet, or copy the rows you need to a new sheet.

If you use your own Google OAuth client, turn on the Google Drive API and the Google Sheets API in its Google Cloud project. Without the Sheets API, read_file and get_file fail for a Google Sheet, and so do create_sheet and update_file for a Sheet. The error names the Sheets API.

If a write says that Google Drive was connected without permission to create files, the card’s sign-in lacks drive.file. A card connected before Lattis asked for it lacks it too. Disconnect Google Drive in Settings → Connectors, connect it again, and leave See, edit, create, and delete only the specific Google Drive files you use with this app checked.

update_file edits only the Docs and Sheets that Lattis created with create_doc or create_sheet. Google does not let Lattis edit other files. To change one of them, ask for a new file, or edit it yourself in Google Drive.

I disconnected a Google card, and Google still lists Lattis

Section titled “I disconnected a Google card, and Google still lists Lattis”

Google keeps one grant for Lattis on each Google account, and its revoke ends that grant for every card on the account at once. So Lattis asks Google to revoke only when you disconnect the last Google card on that account. While another Google card is still connected to it, your Google account lists Lattis at myaccount.google.com/permissions.

Lattis does not know the account of a card that you connected before Lattis recorded it, so that card does not stop a revoke. When you disconnect it, or another Google card while it is connected, Lattis asks Google to revoke. If the two cards were on the same account, the card that stays then asks you to sign in again. When you connect it again, Lattis records its account.

Such a card can also sign in again to a different Google account. Lattis does not know which account the old sign-in was on, so it does not revoke it. The old account keeps Lattis’s access. To remove it, go to myaccount.google.com/permissions.

Slack asks me to sign in again after an update

Section titled “Slack asks me to sign in again after an update”

Slack connects only through the Lattis app on Slack’s Web API. A connection through Slack’s MCP server is removed at the update, and its sign-in is deleted. The Slack card then shows Connect. Click it once.

A Slack card on the Web API app asks you to sign in again when an update needs a new Slack permission. The update that added read_file needs permission to read the files shared with you. Click Sign in on the card.

  • Check the launch command and arguments under Settings → Connectors → Custom servers — Lattis runs them as given, so the command must be on your PATH (e.g. npx for npm packages).
  • Make sure the server is enabled. Toggling it takes effect live; no restart needed.
  • The model finds MCP tools by searching for them, so phrase requests in terms of what you want done — the tools surface on demand rather than being listed up front.

Code execution is on by default but can be scoped. If it’s not running, check your configuration: agent.code_exec_enabled may be false, or agent.code_exec_models may list models that exclude the one you’re using. It’s also sandboxed by design — code can’t reach the network or your files, so tasks needing those will fail inside it.

Automatic updates apply to the installed desktop app, not to source/development builds — for those, pull and rebuild. If an update download fails, try again later; your data and settings are untouched by a failed update. See Keeping Lattis Updated.

Check liveness:

Terminal window
curl http://127.0.0.1:5288/health

If it fails, open the app. At each launch, the app registers the background service and starts the daemon. If the OS does not start the daemon, the app starts it directly.

Check the service:

Terminal window
lattisd service status # entry, program, running, port
lattisd service install # write the entry again
lattisd service uninstall # remove the entry

The service entries are ~/Library/LaunchAgents/com.lattis.daemon.plist on macOS, ~/.config/systemd/user/com.lattis.daemon.service on Linux, and the Task Scheduler task LattisDaemon on Windows. An uninstalled entry comes back at the next app launch, unless LATTIS_NO_SERVICE=1 is set.

On macOS and Windows, the service output is in daemon.log in the data directory. On Linux, use journalctl --user -u com.lattis.daemon.

The API uses 127.0.0.1:5288. If the port is taken, change it in the app’s settings (or config.json) and restart the daemon.

Upgrading from an older Lattis? The default port used to be 1234, which is also LM Studio’s — configs still on it move to 5288 automatically on the first start after updating.

Stop the daemon (POST /control/shutdown), then inspect or remove files in the data directory. Deleting config.json resets settings to defaults; deleting remote_auth.json clears cloud credentials; deleting accounts.json clears your named accounts. Deleting connector_tokens.json, mcp_oauth.json and slack_tokens.json clears connector sign-ins. Your saved conversations live in chats/.