Skip to content

Commit e5ba732

Browse files
committed
fix: correct Windows OS detection typo in session environment
runtime.GOOS returns "windows" (with an s), but the switch case was matching "window", causing Windows sessions to always fall through to the default case and inject incorrect environment context into every LLM prompt.
1 parent 429fed8 commit e5ba732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/session/environment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func getOperatingSystem() string {
2929
switch runtime.GOOS {
3030
case "darwin":
3131
return "MacOS"
32-
case "window":
32+
case "windows":
3333
return "Windows"
3434
case "linux":
3535
return "Linux"

0 commit comments

Comments
 (0)