Skip to content

Change mac to macos in platform detection#2

Open
kipkaev55 wants to merge 1 commit into
bigdata2211it-web:mainfrom
kipkaev55:patch-1
Open

Change mac to macos in platform detection#2
kipkaev55 wants to merge 1 commit into
bigdata2211it-web:mainfrom
kipkaev55:patch-1

Conversation

@kipkaev55
Copy link
Copy Markdown

@kipkaev55 kipkaev55 commented May 12, 2026

Summary

On macOS, kiroOsName() returns "mac" but the Kiro/CodeWhisperer API expects "macos" as the operatingSystem value. This causes every chat request from macOS to fail with:
ValidationException: Improperly formed request.

Root cause

The API rejects "mac" as invalid and returns HTTP 400. "linux" and "macos" are accepted.

Testing

Tested on macOS (Apple Silicon). Confirmed:

  • "mac" → 400 ValidationException
  • "macos" → 200 success
    envState: {operatingSystem: "mac", ...} → 400
    envState: {operatingSystem: "macos", ...} → 200
    envState: {operatingSystem: "linux", ...} → 200

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.

1 participant