Skip to content

feat(windows): native console events + PowerShell install (consolidates #40)#54

Open
Mineru98 wants to merge 4 commits into
Ouro-labs:release/bootstrapfrom
Mineru98:feat/windows-tui-helper-events
Open

feat(windows): native console events + PowerShell install (consolidates #40)#54
Mineru98 wants to merge 4 commits into
Ouro-labs:release/bootstrapfrom
Mineru98:feat/windows-tui-helper-events

Conversation

@Mineru98

@Mineru98 Mineru98 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Problem

The Windows TUI helper needs to understand native console input directly so keyboard, mouse, resize, login, and helper lifecycle behavior can work predictably on Windows terminals.

Proposed change

  • Add a Windows helper entrypoint and packaging scripts.
  • Translate native Windows console records into the same event stream the TUI already consumes.
  • Keep helper discovery, login input, and TUI driver sessions aligned with the Windows helper.

Acceptance criteria

  • Windows console key, mouse, and resize events are converted into TUI events.
  • The helper can be packaged and discovered on Windows.
  • Existing IPC and TUI driver behavior continues to pass tests.

Verification

  • git diff --check
  • mix format --check-formatted on changed Elixir files
  • cargo fmt --manifest-path rust/ourocode_ipc/Cargo.toml --check
  • cargo test --manifest-path rust/ourocode_ipc/Cargo.toml -> 34 Rust tests passed across lib/bin/doc-test targets
  • mix test test/ourocode/ipc/helper_port_test.exs test/ourocode/ipc/rpc_test.exs test/ourocode/runtime/mcp_daemon/process_test.exs test/ourocode/runtime/mcp_daemon_test.exs test/ourocode/runtime/stream_supervisor_test.exs test/ourocode/terminal/tty_driver_test.exs test/ourocode/terminal/tui_driver_session_test.exs test/ourocode/terminal/tui_input_loop_test.exs test/ourocode/terminal/tui_login_test.exs -> 89 passed

Closes #49
Refs #39

@Mineru98
Mineru98 force-pushed the feat/windows-tui-helper-events branch from 15510fd to 5b14d4e Compare July 21, 2026 05:51
@Mineru98

Copy link
Copy Markdown
Collaborator Author

#40 통합 (rebase)

이 PR을 #40(PowerShell 설치) 위로 rebase 하여 두 Windows PR을 하나로 합쳤습니다.

  • 헬퍼 충돌 해결: feat(install): support Windows PowerShell installs #40 과 이 PR이 rust/ourocode_ipc/src/bin/ourocode_tty.rs 를 서로 다른 와이어 프로토콜로 각각 재작성했는데, 이 PR의 콘솔 이벤트 구현(ReadConsoleInputW, PROTO 0/1)으로 통일했습니다. Cargo.toml, scripts/package-windows.ps1 도 이 PR 버전을 채택했습니다.
  • 테스트 union: test/ourocode/terminal/tty_driver_test.exsfeat(install): support Windows PowerShell installs #40.exe 경로 탐색 테스트와 이 PR의 프레임 디코딩 테스트를 모두 유지합니다.
  • Windows CI 추가: .github/workflows/windows-ci.yml — 네이티브 헬퍼/런처 빌드 + cargo test + Windows에서 mix test (#[cfg(windows)] 코드 커버).

검증(Linux): cargo build ✅ · mix compile --warnings-as-errors ✅ · 관련 테스트(tty_driver + tui_login) 25개 0실패 ✅. Windows 실기 검증은 위 windows-ci.yml 이 담당합니다.

#40 은 이 PR에 완전히 포함되어 닫았습니다.

@Mineru98 Mineru98 changed the title feat(tui): handle native Windows console events feat(windows): native console events + PowerShell install (consolidates #40) Jul 21, 2026
Covers the #[cfg(windows)] ourocode_tty helper that the Unix regression
runner never compiles. Runs on push to this branch and via workflow_dispatch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Mineru98
Mineru98 force-pushed the feat/windows-tui-helper-events branch from 5b14d4e to df69091 Compare July 21, 2026 05:53
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.

Make the Windows TUI helper handle native console events

1 participant