⚡ Sangsakala Proxy 🏠 Home
Skip to content

Denied by preToolUse hook from ".github/hooks/rtk-rewrite.json" (hook errored) #5326

Open

Description

@thepearl

Describe the bug

Whenever i want to launch a copilot session in cloud i get this error
Denied by preToolUse hook from ".github/hooks/rtk-rewrite.json" (hook errored)

Image

Affected version

GitHub Copilot CLI 1.0.104

Steps to reproduce the behavior

  1. Configure rtk-rewrite.json file as mentionned in read me
  2. Launch a new copilot session in github
  3. Ask it to change anything in code

Expected behavior

Cloud sessions works correctly without permission denied by hook error

Additional context

My rtk-rewrite.json file content:

{
  "version": 1,
  "hooks": {
    "PreToolUse": [
      {
        "type": "command",
        "command": "rtk hook copilot",
        "cwd": ".",
        "timeout": 5
      }
    ],
    "preToolUse": [
      {
        "type": "command",
        "bash": "rtk hook copilot",
        "powershell": "rtk hook copilot",
        "cwd": ".",
        "timeoutSec": 5
      }
    ]
  }
}
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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions