github / github/copilot-cli

sessionStart hook in .github/hooks/ does not fire in Copilot CLI (v0.0.420)

オープン
#1,730 コメント 8 件 リアクション 3 件 担当者 0 名 GitHub で見る
area:plugins
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the bug

`sessionStart` hooks defined in `.github/hooks/*.json` do not execute when starting a Copilot CLI session.

### Environment
- **CLI version:** v0.0.420
- **OS:** Windows 11
- **Shell:** PowerShell 7

### Hook configuration

**File:** `.github/hooks/test-hook.json`
```json
{
"version": 1,
"hooks": {
"sessionStart": [
{
"type": "command",
"bash": "echo \"Session started: $(date)\" >> logs/session.log",
"powershell": "Add-Content -Path logs/session.log -Value \"Session started: $(Get-Date)\"",
"cwd": ".",
"timeoutSec": 10
}
]
}
}
```

### Expected behavior

`logs/session.log` should be created with a timestamp entry when a CLI session starts.

### Actual behavior

`logs/session.log` is never created. The `sessionStart` hook does not fire.

### Additional context

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。