goose icon indicating copy to clipboard operation
goose copied to clipboard

`goose recipe list` can return duplicated entries

Open benoitf opened this issue 2 months ago • 5 comments

Describe the bug

duplicated entries using goose recipe list depending on env var or directories

To Reproduce Steps to reproduce the behavior:

  1. provide as env var the default recipe storage

GOOSE_RECIPE_PATH="$HOME/.config/goose/recipes" goose recipe list --format json

GOOSE_RECIPE_PATH="$HOME/.config/goose/recipes" goose recipe list --format json | jq .                                                                                               
[
  {
    "name": "my-task",
    "source": "Local",
    "path": "$HOME/.config/goose/recipes/my-task.yaml",
    "title": "my-task,
    "description": "my-task"
  },
  {
    "name": "my-task",
    "source": "Local",
    "path": $HOME/.config/goose/recipes/my-task.yaml",
    "title": "my-task,
    "description": "my-task"
  },
]

or if you go to the $HOME/.config/goose folder and try the env variable or not, you may have up to 3 duplicates. As it'll list from current folder, default folder and env variable folder.

IMHO It should filter out duplicated locations

Screenshots If applicable, add screenshots to help explain your problem.

Please provide following information:

  • OS & Arch: macOS latest
  • Interface: [CLI]
  • Version: 1.11.1
  • Extensions enabled: none
  • Provider & Model: none

Additional context was working in v1.9.3, fails in v1.10 and v1.11

benoitf avatar Oct 21 '25 16:10 benoitf

yup that is true. doesn't strike me as terrible, if you have the same place to search for multiple times, but still

DOsinga avatar Oct 21 '25 16:10 DOsinga

It's a regression since v1.9.3

benoitf avatar Oct 21 '25 17:10 benoitf

@Abhijay007 checking if still working on this?

zanesq avatar Oct 28 '25 17:10 zanesq

@Abhijay007 checking if still working on this?

Yeah @zanesq , I am ooo for a few days, will get back and fix this soon

Abhijay007 avatar Oct 29 '25 05:10 Abhijay007

how's it going @Abhijay007 ? can I help?

DOsinga avatar Nov 06 '25 23:11 DOsinga

how's it going @Abhijay007 ? can I help?

Hi @DOsinga, I was out for some work and just came back a few days ago. I was working on another PR and resolved it yesterday, apologies for the delay on this one 😅 . I’ll resolve it soon :)

Abhijay007 avatar Nov 08 '25 10:11 Abhijay007