Skip to content
86% off$349 $48.86code BF2026

Guides

Gemini CLI stuck on 'Loading...' in Zed: use a terminal tab

Zed's Gemini CLI thread hangs on "Loading..." and the bug report has no fix. Run gemini in a terminal instead: steps, a triage table, what to report.

GuideUpdated 5 min read

On this page

You open Zed, create a new Gemini CLI thread, and it sits on "Loading..." with no error and no way forward. Nothing in the UI tells you whether Gemini CLI, your Google sign-in or Zed is at fault.

Why the thread hangs

We don't know the root cause, and nobody in the public report has posted one. This is what the report says:

  • It was filed on Zed's GitHub issue tracker (issue 38750) for macOS 26.0. When we last looked, it had 36 thumbs-up and several "same here" replies.
  • The reporter deleted Zed's external_agents/gemini folder and updated Zed. Neither helped.
  • The latest report we have is from September 2025. We can't say whether a newer Zed release fixed it, and we haven't reproduced it ourselves.

The symptom points at the link between Zed's agent panel and the Gemini CLI process. That is our inference, not a confirmed cause. A plain terminal session doesn't go through that link, which is why the workaround below should avoid the hang. We haven't tested it against this specific bug.

There is also a background factor that has nothing to do with Zed. Google's Gemini Code Assist documentation says agent mode in VS Code uses the Gemini CLI, which is not optimized for the latest Gemini models, and it points to Antigravity CLI for the best coding experience. That page is about VS Code, not Zed. We have not seen Google confirm a retirement date for Gemini CLI, so don't assume one. Check Google's documentation before you build a long-term workflow on it.

Fix 1: run Gemini CLI in a terminal

Running gemini in a terminal doesn't create a Zed thread, so it should not hit the "Loading..." state. You lose Zed's thread interface. You keep Gemini CLI itself.

Install it if you don't have it

Gemini CLI is distributed as the npm package @google/gemini-cli, so you need Node.js and npm first.

bash
npm install -g @google/gemini-cli

This installs the gemini command globally. To undo it, run npm uninstall -g @google/gemini-cli.

Start it in your project

  1. Open Terminal.app, or open a terminal inside Zed.
  2. Change to your project folder, for example cd ~/Developer/my-project.
  3. Run gemini.
  4. If it asks you to sign in, finish the prompts in that terminal window.
  5. If it asks whether you trust the folder, answer for the project you opened.
  6. Send one short prompt to confirm it answers.

Fix 2: find out whether Zed or Gemini CLI is at fault

Run gemini in Terminal.app, not in Zed, and send one short prompt. The result tells you where to look.

What you seeLikely causeWhat to do
Answers in Terminal.app, still hangs in Zed's panelZed's agent integrationUse Fix 1 and add your details to the Zed issue
Hangs or errors in Terminal.app tooGemini CLI, sign-in or networkFix the sign-in or network first; the Zed thread isn't the problem
command not found: geminiNot installed, or npm's global folder isn't on your PATHReinstall; run npm prefix -g and add its bin folder to PATH
npm: command not foundNode.js isn't installedInstall Node.js, then repeat the install
Sign-in never finishesLogin was started from a thread that never loadsFinish the sign-in in a plain terminal

If Gemini CLI itself fails, the Gemini CLI project's GitHub releases and docs are the place to search for your exact error.

What not to bother with

The reporter already tried deleting external_agents/gemini and updating Zed, with no change. Deleting that folder is a guess about Zed's internal files, so we don't recommend it as a fix.

If you want to help get this fixed, add details to the Zed issue:

  • Your macOS version and Zed version.
  • Whether gemini works in a plain terminal.
  • Whether the thread ever gets past "Loading...", and how long you waited.
  • Any log output you can find through Zed's own documentation.

Run Gemini CLI in Sledbot instead

We make Sledbot, so weigh this section accordingly. Sledbot runs Gemini CLI as a normal terminal program, in a real terminal. It doesn't use Zed's agent panel, so it doesn't depend on whatever is hanging there. It does not fix Zed, and we haven't tested it against this bug.

What it adds around the CLI:

  • Gemini CLI is one of the coding agents Sledbot detects. Settings ▸ Agents shows whether it's installed and offers Install… or Log in….
  • Agents keep running after you quit Sledbot. Reopening the app reattaches to them.
  • In a git repo, Work in a new worktree is on by default, so your files stay as they are.
  • You get a "needs you" banner and notifications when an agent is waiting for you.
  • Restart on a stopped agent restarts it with its conversation where possible.

To start it:

  1. Choose File ▸ Add Project Folder… (⌘O) and pick your project.
  2. Press ⌘T to open New task.
  3. Pick Gemini CLI in the agent chip.
  4. Describe the task and press ⌘↩.

Sledbot needs macOS 14 or later. It's part of MacSuite ($349 one-time as of November 2026) and isn't sold on its own. Each app has a 7-day trial. See the Sledbot page and starting agents. If a plain terminal is enough for you, use that.

Checklist before you try again

  • gemini starts in Terminal.app and answers a short prompt.
  • You are inside your project folder when you run it.
  • You signed in from a plain terminal, not from a Zed thread.
  • npm prefix -g points to a folder whose bin directory is on your PATH.
  • You note whether the Zed thread ever gets past "Loading...".

If nothing works

If gemini also fails in Terminal.app, the problem is outside Zed, so look at the Gemini CLI project's GitHub issues for your error. If Gemini CLI works in a terminal but the Zed thread still hangs, add to Zed's existing issue on GitHub. Include your macOS and Zed versions, what you tried, and any log output. A message you can adapt:

text
Creating a Gemini CLI thread in Zed's agent panel stays on "Loading..." indefinitely.
macOS: [your version]. Zed: [your version].
Running gemini in Terminal.app works and answers prompts normally.
Already tried: updating Zed, deleting the external_agents/gemini folder.
Works in a terminal, fails only in the agent thread.

Common questions

Will deleting external_agents/gemini fix the hang?

The reporter tried it, along with updating Zed, and it did not help.

Does gemini in a terminal inside Zed use the same integration as the thread?

The report is about creating a thread in the agent panel. A terminal just runs the CLI, so it shouldn't create a thread. We haven't tested this ourselves.

Is Gemini CLI going away?

Google's Code Assist docs recommend Antigravity CLI over Gemini CLI for the latest Gemini models. We haven't seen an official retirement date, so check Google's current documentation.

Can I use a different agent in Zed?

Possibly, but we haven't tested other agents in Zed's panel and can't say whether they're affected. Running any CLI agent in a terminal uses the same workaround.

Every app.
One purchase.