mirror of
https://github.com/stablyai/orca.git
synced 2026-10-25 16:03:53 +00:00
Add end-to-end mobile-fit override system that lets a phone client resize a PTY to phone dimensions and restore to desktop dimensions on disconnect or user request. Key changes: - Runtime: resizeForClient() manages override lifecycle with ownership, clamping, and auto-restore on client disconnect. Always resizes PTY directly on restore instead of relying on fragile renderer chain. - RPC: terminal.resizeForClient method for mobile clients via WebSocket. - Renderer: safeFit() respects active overrides, desktop banner with Restore button, override change listener with rAF + fallback safety net. - Mobile: fit-to-phone with CSS scale zoom, auto-fit only for terminals created during the mobile session (not existing desktop terminals). - Tests: 14 unit tests + 3 integration tests for override lifecycle. Co-authored-by: Orca <help@stably.ai>