Repository navigation
feat(id-native-shell): step-2 Screen renderer, native event mapping, parity tests (#788) - #10526
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
F13.6 design #788 step 2 (slice): Bevy Screen renderer + native event mapping
Task 9341 · Issue #788. Step 1 landed in PR #5573. This PR is the
first step-2 slice; the design (§7) makes each step a separate
reviewable PR, and step 2's remaining piece is named below instead of
being silently bundled.
What lands
id-native-shellenablesbevy_render/bevy_core_pipeline/bevy_text/bevy_ui/bevy_window/bevy_winit(x11 + wayland,default_font), andpkgs/id/nix-common.nixadds the system libraries those featureslink (
wayland,libxkbcommon,libX11/libXcursor/libXrandr/libXi,vulkan-loader) tobuildInputsplus the runtimeLD_LIBRARY_PATHin the dev shell hook — the "flake system-librarywiring" step 1's crate comment promised. (Evidence it is needed:
without it,
cargo check -p id-native-shellfails inwayland-sys' build script: "Package wayland-client was not found".)src/render.rs): a Bevy-independent styled rendermodel (
ScreenGrid: per-cell symbol, xterm-256 fg/bg mapped tosRGB, bold, column width) built from a validated
WorldSurface—Screensurfaces render per-cell;Text/Formsurfaces andsurface-less views fall back to the deterministic text projection /
legacy
data, the terminal shell's own rule.ShellRenderPluginpresents the current view as a Bevy UI node tree (one row node per
grid row, one
TextSpanper run of equally-styled cells), rebuiltwhen the view sequence changes.
src/events.rs): key bytes, clipboardpaste, window-pixel resizes (converted with the font cell size and
clamped to the contract bounds), and chat map to exactly the
F13.1 frames the terminal builders produce. No new frame kinds.
tests/parity.rs+ unit tests): native framesare byte-identical to the terminal builders' frames for the same
logical inputs, and the native grid's text projection equals the
surface's own
text_projection()for a scriptedsnapshot/event/view stream.
main.rsnow runsDefaultPlugins+ the renderplugin; the startup line states the session loop is not yet
connected rather than implying otherwise.
prerequisites, run/test commands.
What does not land (remaining step-2 work, stays on #788)
WorldClientsession loop feedingPresentedView.running host, same journal) that the design's step-2 "done when"
pairs with the loop.
Verification
cargo test -p id-native-shell(nix-shell with the GUI librariesabove): PASS — lib 21/21, parity integration 3/3, transcript
integration 3/3, 2026-11-15 (task 9341, lane code-a).
cargo check -p id-native-shellclean after warning fixes(5m28s cold Bevy-stack check).
cargo tree -p id | grep -ci bevy= 0 — thedefault
idbuild remains Bevy-free; the crate stays anon-default workspace member.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit