Skip to content

Crashes out when trying to run git status #45

Closed

Description

@gfodor

Not sure of the best way to report this, but hopefully this trace is enough. Was having o4-mini fix some issues with a 3rd party android repo, and it was wrapping up.

    command

    $ 'git status' --short

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│Shell Command                                                                                                                                                                                                                                                                           │
│                                                                                                                                                                                                                                                                                        │
│$ 'git status' --short                                                                                                                                                                                                                                                                  │
│                                                                                                                                                                                                                                                                                        │
│Allow command?                                                                                                                                                                                                                                                                          │
│                                                                                                                                                                                                                                                                                        │
│  ❯ Yes (y) ✔                                                                                                                                                                                                                                                                           │
│    Yes, always approve this exact command for this session (a)                                                                                                                                                                                                                         │
│    Edit or give feedback (e)                                                                                                                                                                                                                                                           │
│    No, and keep going (n)                                                                                                                                                                                                                                                              │
│    No, and stop for now (esc)                                                                                                                                                                                                                                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
node:events:485
      throw er; // Unhandled 'error' event
      ^

Error: spawn git status ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn git status',
  path: 'git status',
  spawnargs: [ '--short' ]
}

Node.js v23.7.0
zzz

Activity

  1. donutdan4114 commented on Apr 16, 2025

    @donutdan4114

    Related to #21

  2. tibo-openai commented on Apr 16, 2025

    @tibo-openai
    Collaborator

    Seems that the model generated 'git status' as a single command, but it should have been plainly git status --short. Should make this more resilient and retry when that happens.

  3. tibo-openai commented on Apr 16, 2025

    @tibo-openai
    Collaborator

    Should be fixed by #79, we'll cut a new release shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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