Skip to content

[codex] harden winit platform backends#31

Draft
ola-893 wants to merge 3 commits into
worka-ai:mainfrom
ola-893:codex/platform-crash-stability
Draft

[codex] harden winit platform backends#31
ola-893 wants to merge 3 commits into
worka-ai:mainfrom
ola-893:codex/platform-crash-stability

Conversation

@ola-893
Copy link
Copy Markdown

@ola-893 ola-893 commented May 24, 2026

Summary

Hardens the winit shell against missing or non-AppKit native window handles.

  • Makes macOS IME trait configuration no-op safely when no AppKit view is available
  • Adds safe mock fallbacks for native video and web overlay backends
  • Adds regression coverage for no-window video and web backend construction

Why

The shell previously assumed AppKit handles in places that can be reached by cross-platform or background/test shell paths. That made platform integration brittle and could panic instead of falling back to deterministic mock behavior.

Impact

Desktop/macOS behavior continues to use native backends when an AppKit view exists. Other paths now degrade to mock backends instead of crashing.

Validation

  • cargo test -p fission-shell-winit --lib --locked -- --nocapture

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