From 25533327fc21a10a19eec173cd7b8cb71ad745e3 Mon Sep 17 00:00:00 2001 From: mounika63020-blip Date: Thu, 2 Apr 2026 17:57:36 +0530 Subject: [PATCH 1/2] Fix UI rendering by properly injecting JSON data into index.html --- internal/staticserve/static/index.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/internal/staticserve/static/index.html b/internal/staticserve/static/index.html index b98d773..2829a3e 100644 --- a/internal/staticserve/static/index.html +++ b/internal/staticserve/static/index.html @@ -22,7 +22,7 @@ - + @@ -35,7 +35,12 @@ - - - + + + + From 459b936094d528d0798fe089561b73aac700923c Mon Sep 17 00:00:00 2001 From: mounika63020-blip Date: Thu, 2 Apr 2026 18:17:34 +0530 Subject: [PATCH 2/2] Fix: improve Windows sync error handling using errors.As for syscall.Errno --- interactive/sync_errors_windows.go | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/interactive/sync_errors_windows.go b/interactive/sync_errors_windows.go index 82311b8..92c4bb4 100644 --- a/interactive/sync_errors_windows.go +++ b/interactive/sync_errors_windows.go @@ -1,17 +1,20 @@ -//go:build windows - -package interactive +func isIgnorableSyncError(err error) bool { + if err == nil { + return false + } -import ( - "errors" - "syscall" -) + // Direct match + if errors.Is(err, windowsErrorInvalidHandle) { + return true + } -// ERROR_INVALID_HANDLE from Win32 API (winerror.h). -const windowsErrorInvalidHandle syscall.Errno = 6 + // Handle wrapped syscall errors + var errno syscall.Errno + if errors.As(err, &errno) { + return errno == windowsErrorInvalidHandle || + errno == syscall.EINVAL || + errno == syscall.ENOTSUP + } -func isIgnorableSyncError(err error) bool { - // Keep this list narrow and Windows-specific; unexpected sync errors should be surfaced. - // ERROR_INVALID_HANDLE is common when stdout/stderr are attached to non-syncable console handles. - return errors.Is(err, syscall.EINVAL) || errors.Is(err, syscall.ENOTSUP) || errors.Is(err, windowsErrorInvalidHandle) + return false }