Skip to content

runbook: fix init race and Windows encoding#213

Merged
webispy merged 1 commit intomainfrom
pr/support_windows
Mar 24, 2026
Merged

runbook: fix init race and Windows encoding#213
webispy merged 1 commit intomainfrom
pr/support_windows

Conversation

@webispy
Copy link
Owner

@webispy webispy commented Mar 24, 2026

Summary

  • Fix default System Check group not appearing in the Runbook sidebar until a manual group is added, by firing the tree data change event after async initialization completes
  • Fix garbled non-ASCII (e.g. Korean) error messages on Windows by setting console code page to UTF-8 (chcp 65001) before executing runbook scripts

Test plan

  • Install extension fresh on Windows → verify System Check group appears immediately in the Runbook sidebar
  • Run health-check commands on Windows with Korean locale → verify error messages display correctly without garbled characters
  • Verify existing behavior on macOS/Linux is unchanged

🤖 Generated with Claude Code

The default System Check group does not appear in the sidebar
until the user manually adds a new group. This happens because
the async initialization populates items but never notifies
the tree view. Fire the change event after loadConfig() so the
view updates immediately.

On Windows, non-ASCII error messages (e.g. Korean) from
runbook script execution are garbled because cmd.exe outputs
in the system OEM code page (cp949) while Node.js decodes as
UTF-8. Prepend chcp 65001 to switch the console to UTF-8
before running the user script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@webispy webispy self-assigned this Mar 24, 2026
@webispy webispy added the bug Something isn't working label Mar 24, 2026
@webispy webispy added this to the v1.6.6 milestone Mar 24, 2026
@webispy webispy linked an issue Mar 24, 2026 that may be closed by this pull request
@github-actions
Copy link

📦 Artifact Ready

Download the extension package here:
logmagnifier-1.6.5-dev.20260324091546.vsix

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.21%. Comparing base (a1d4ecc) to head (9d313a6).

Files with missing lines Patch % Lines
src/views/RunbookWebviewPanel.ts 0.00% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #213      +/-   ##
==========================================
- Coverage   59.33%   59.21%   -0.13%     
==========================================
  Files          59       59              
  Lines       14744    14747       +3     
  Branches     1012     1009       -3     
==========================================
- Hits         8749     8732      -17     
- Misses       5975     5995      +20     
  Partials       20       20              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@webispy webispy merged commit 619e5dc into main Mar 24, 2026
4 checks passed
@webispy webispy deleted the pr/support_windows branch March 24, 2026 09:17
@github-project-automation github-project-automation bot moved this from Todo to Done in LogMagnifier Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Windows 환경 동작 확인

2 participants