Skip to content

Hook output cleanups#3679

Merged
roblourens merged 2 commits intomainfrom
roblou/single-haddock-main
Feb 12, 2026
Merged

Hook output cleanups#3679
roblourens merged 2 commits intomainfrom
roblou/single-haddock-main

Conversation

@roblourens
Copy link
Member

Port of #3678 to main

Copilot AI review requested due to automatic review settings February 11, 2026 23:27
@roblourens roblourens enabled auto-merge February 11, 2026 23:27
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 11, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ports hook output logging cleanups to main, improving how hook execution issues and hook outputs are surfaced in logs/output channels.

Changes:

  • Route hook spawn/timeout/cancellation/non-JSON output messages to the Hooks output channel (and ILogService) from the Node hook executor.
  • Simplify Hooks output formatting in ChatHookService (remove manual timestamps, round elapsed ms).
  • Add validation + logging for invalid permissionDecision (PreToolUse) and invalid decision (PostToolUse) values.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/platform/chat/node/hookExecutor.ts Adds Hooks output channel logging for spawn failures, timeout/cancellation, and non-JSON stdout; tracks kill reason.
src/extension/chat/vscode-node/chatHookService.ts Cleans up output formatting, rounds timing, and adds validation/logging for invalid hook decision fields.

@roblourens roblourens added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit 756fb54 Feb 12, 2026
19 checks passed
@roblourens roblourens deleted the roblou/single-haddock-main branch February 12, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants