Skip to content

Goose could not find the file if the file name is the default screenshot name #2020

@lifeizhou-ap

Description

@lifeizhou-ap

Describe the bug

When attaching a file, Goose could not find the file if the file name is the default screenshot name

To Reproduce
Steps to reproduce the behavior:

  1. Use macbook (CMD+SHIFT+4) screenshot command to create a screenshot image.
  2. Attach a file with name containing whitespace. For example Screenshot 2025-04-03 at 10.18.19 am.png
  3. Goose shows the output: Execution failed: File 'Screenshot 2025-04-03 at 10.04.57 am.png' does not exist
    Expected behavior
    Goose should find the file

**More Context

  • Screenshot 2025-04-03 at 12.04.00 pm => not work
  • Screenshot 2025-04-03 => work

Maybe something related to the part of 12.04.00 pm.
When I list the files in the directory in my command console, it shows Screenshot\ 2025-04-03\ at\ 12.04.00  pm.png
There is a space between 12.04.00 and  pm. But when i copy the file name in the console, the space is not there

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

Please provide following information:

  • OS & Arch: OS arm64
  • Interface: UI
  • Version: 1.0.16
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions