File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ _sync_dir_from_mount() {
5353
5454 if [ -d " ${source_dir} " ]; then
5555 mkdir -p " ${target_dir} " 2> /dev/null || true
56- if ! cp -a " ${source_dir} /." " ${target_dir} /" 2>&1 ; then
56+ if ! cp -a " ${source_dir} /." " ${target_dir} /" 2> /dev/null ; then
5757 echo " ⚠️ cp -a failed for ${config_name} , falling back to file-by-file copy"
5858 find " ${source_dir} " -maxdepth 1 -type f -exec cp -f {} " ${target_dir} /" \;
5959 fi
Original file line number Diff line number Diff line change @@ -237,13 +237,13 @@ hooks = data.setdefault("hooks", {})
237237
238238# VS Code hook event names (PascalCase, auto-mapped from lowerCamelCase by VS Code).
239239# See https://code.visualstudio.com/docs/copilot/customization/hooks#_hook-lifecycle-events
240- new_entries = {
240+ # VS Code/Copilot hook event names as written in hooks.json.
241241 "SessionStart": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh SessionStart"}],
242242 "UserPromptSubmit": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh UserPromptSubmit"}],
243243 "PostToolUse": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh PostToolUse"}],
244244 "Stop": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh Stop"}]
245245}
246-
246+ "ErrorOccurred": [{"type": "command", "bash": "bash ~/.claude/hooks/peon-ping/adapters/copilot.sh ErrorOccurred"}]
247247for event, entries in new_entries.items():
248248 event_list = hooks.setdefault(event, [])
249249 existing_cmds = [e.get("bash", e.get("command", "")) for e in event_list]
You can’t perform that action at this time.
0 commit comments