goose icon indicating copy to clipboard operation
goose copied to clipboard

Gemini is not showing goose is working on it and needs to be prodded to continue

Open zanesq opened this issue 5 months ago • 18 comments

Describe the bug

Using gemini model there is no goose is working on it and needs to be prodded to continue

To Reproduce Steps to reproduce the behavior:

  1. Choose gemini model
  2. Chat
  3. Nothing comes back no goose is working on it
  4. Needs to be chatted with again to get a response

Expected behavior Goose should show working on it and respond with results without needing to be prodded

Screenshots

Image

Please provide following information:

  • OS & Arch: Mac M3
  • Interface: UI
  • Version: 1.1.3
  • Extensions enabled:
  • Provider & Model:

Additional context User tried a new session with same model same result, switched to claude and it started working again.

zanesq avatar Jul 24 '25 00:07 zanesq

Oh no! Linking Discord thread with other community members with similar issue: https://discord.com/channels/1287729918100246654/1397747633652498573

taniandjerry avatar Jul 24 '25 14:07 taniandjerry

Also users are reporting that its stopping when accessing local filesystem/tools might be the same problem but should look into that while we fix this.

zanesq avatar Jul 24 '25 18:07 zanesq

I'm encountering this issue as well. It seems to not be making tool calls.

LordMelkor avatar Jul 28 '25 16:07 LordMelkor

User reported it also happened with o3

zanesq avatar Jul 29 '25 16:07 zanesq

v1.7.0 tested with gemini 2.5 flash and openai o3, it shows consistently [spinner] goose is thinking

@taniashiba i think this has been resolved and can be closed.

cbruyndoncx avatar Sep 01 '25 13:09 cbruyndoncx

Has been fixed https://github.com/block/goose/pull/3898

angelahning avatar Sep 29 '25 22:09 angelahning

Reopening, someone reported it today internally. Tagged @angelahning in the thread

zanesq avatar Oct 06 '25 22:10 zanesq

can we reproduce this?

DOsinga avatar Oct 07 '25 11:10 DOsinga

I got similar issue with openai yesterday, but then i found a long list of processes when i was debugging my recipes in the crontab. Basically i had a ton of mcp entries lingering in the background which only went away after a reboot. (WSL, i was running for 4 days). I even had MCP entries which i did not remember starting at all , specifically a custom mcp server for task management. Since reboot, and thus process cleanup yesterday afternoon, running fine with v1.9.0

$ systemctl status cron ● cron.service - Regular background program processing daemon Loaded: loaded (/usr/lib/systemd/system/cron.service; enabled; preset: enabled) Active: active (running) since Mon 2025-10-06 13:57:29 CEST; 24h ago Docs: man:cron(8) Main PID: 448 (cron) Tasks: 1 (limit: 38274) Memory: 844.0K () CGroup: /system.slice/cron.service └─448 /usr/sbin/cron -f -P

I did not capture the output at that time, but it was about 2 screens full. I suspect the enable of mcp servers with platform might have caused it when i did not have the necessary mcp enabled for the prompt i passed in the run.

cbruyndoncx avatar Oct 07 '25 12:10 cbruyndoncx

I think you looked at this before @angelahning ?

DOsinga avatar Oct 11 '25 16:10 DOsinga

Hi @angelahning checking if this is still in progress?

zanesq avatar Oct 28 '25 22:10 zanesq

For what it's worth, i have not seen anything unusual anymore, but i am still running v1.9.3 because of subrecipe session issues.

cbruyndoncx avatar Oct 29 '25 16:10 cbruyndoncx

I saw goose was rate-limited by the google provider. For example, it can reply please retry in 56.803374332s and goose will wait however long the provider tells us to. This retry interaction is not apparent to user and it will come off hanging, but it will eventually finish with enough patience.

The above is a separate issue from goose just flopping, which we also saw with gemini... I still need to investigate deeper for that.

angelahning avatar Oct 30 '25 17:10 angelahning

Pretty sure the issue still exists, just tried creating a tamagotchi game from the new chat with Gemini on v1.12.1 and it needed to be prodded

Image

zanesq avatar Oct 30 '25 18:10 zanesq

can you share the diagnostics for that, @zanesq

DOsinga avatar Oct 31 '25 18:10 DOsinga

Handed off to @amed-xyz cuz I am OOO next week.

angelahning avatar Nov 01 '25 16:11 angelahning

This seems to be Gemini-specific. From a very simple request:

{
  "role": "user",
  "content": "develop a super minimal, lightweight tic-tac-toe game"
}

Gemini returns a planning/announcement message instead of taking action. The model had access to file creation tools but chose to respond conversationally, with zero tool requests:

{
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "I will start by creating a Python file named `tictactoe.py` for the game logic."
    }
  ]
}

Thus, closing the agent loop.

Perhaps we can tweak our prompts for Gemini specifically?

Note: I experienced exactly the same issue using Gemini's CLI, this bug is not directly related to Goose.

amed-xyz avatar Nov 04 '25 19:11 amed-xyz

Yeah I've seen gemini stop like this outside of goose but not as often so there must be something we can do.

zanesq avatar Nov 10 '25 18:11 zanesq

I'm downgrading this to a p2. as noted, it doesn't seem to be really a goose specific issue; in fact there's a long running discussion at Google's about this: https://discuss.ai.google.dev/t/gemini-2-5-pro-ending-the-turn-when-it-tries-calling-a-tool/78876/31

we could possibly do something where we have provider specific additions to the prompt and see if we can get gemini to continue that way?

if you run into this problem, can you change your AGENTS.md and add some instructions like, make sure to always do the toolcall and not just end with a statement saying you will call the tool. if that helps we could add it to the system prompt for gemini

DOsinga avatar Nov 17 '25 16:11 DOsinga

with gemini 3 as a step forward, I think we can close this. I also think a more general solution is required - where we have (another) loop evaluate if the task was completed, and coach it forward if not cc @DOsinga

michaelneale avatar Nov 24 '25 02:11 michaelneale