Skip to content

fix: remove 'system' from theme type - #79

Merged
idosal merged 1 commit into
mainfrom
fix/remove-system-theme
Dec 8, 2025
Merged

fix: remove 'system' from theme type#79
idosal merged 1 commit into
mainfrom
fix/remove-system-theme

Conversation

@antonpk1

@antonpk1 antonpk1 commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Summary

Remove 'system' from the theme type, leaving only 'light' | 'dark'.

Rationale

  1. Spec alignment: The spec already only defines "light" | "dark" (line 402 in apps.mdx)
  2. OpenAI Apps SDK compatibility: Their theme API only supports 'light' | 'dark'
  3. Host responsibility: The host should resolve system preference to an actual theme value before sending to the app

Changes

  • src/types.ts: theme?: "light" | "dark" | "system"theme?: "light" | "dark"

🤖 Generated with Claude Code

Remove 'system' option from theme, leaving only 'light' | 'dark'.

This aligns the SDK with:
- The spec (which already only has light/dark)
- OpenAI Apps SDK compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@idosal
idosal merged commit 47d1b37 into main Dec 8, 2025
5 checks passed
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