Skip to content

The copilot errorOccured hook not invoked when copilot coding agent gets any errors during git push authentication / lfs #1253

@vgithib

Description

@vgithib

errorOccured hook not invoked when copilot coding agent gets any errors during git push authentication / lfs
I have a hooks.json
`{
"version": 1,
"hooks": {

"agentStop": [
  {
    "type": "command",
    "bash": "./.github/hooks/scripts/hook-handler.sh agentStop",
    "cwd": ".",
    "timeoutSec": 30
  }
],
"sessionEnd": [
  {
    "type": "command",
    "bash": "./.github/hooks/scripts/hook-handler.sh sessionEnd",
    "cwd": ".",
    "timeoutSec": 30
  }
],
"errorOccurred": [
  {
    "type": "command",
    "bash": "./.github/hooks/scripts/hook-handler.sh errorOccurred",
    "cwd": ".",
    "timeoutSec": 30
  }
]

}
}
`

When copilot is assigned to a GH issue, and for some reason copilot coding agent gets error in pushing the generated code for the issue, none of the above hooks (including errorOccurred) gets called .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions