Skip to content

feat(ui,runtime): add move_split/toggle_split actions, fix Wayland frame-callback stall and bar wall-recovery, and release v0.0.42 #3155

Closed

Description

@Xuepoo

Priority: P1 | Area: area:ui, area:runtime | Labels: feat, fix, P1, area:ui, area:runtime | Milestone: v0.1.0 | RFC: OQ-none | Task: CTX-1825

Summary

  1. Wayland frame-callback flush & false-occlusion recovery (codex TUI ~10s freeze fix):
    • Flush the Wayland client socket inside WindowState::request_frame_callback (vendor/winit/src/platform_impl/linux/wayland/window/state.rs, patch 0004-wayland-flush-frame-callback-before-present.diff) so wl_surface.frame reaches the compositor before the off-thread presenter worker calls vkQueuePresentKHR (wl_surface.commit).
    • Only call win.request_redraw() in AboutToWait when drive_tick() actually presented a frame (if presented), preventing cold command ticks that did not present a frame from arming the 300 ms redraw-starvation probe without an accompanying surface commit.
    • Keep present_confirm_at armed across set_surface_visibility_at(now, false) even when retained damage is present so a false-positive synthetic occlusion during streaming TUI output still gets the single bounded speculative reopen at PRESENT_CONFIRM_BOUND.
  2. Plugin wall-slice recovery across events, commands, and transient reload failures (bitty-terminal.bar long-uptime disappearance fix):
    • Classify SuspendReason::WallClockExceeded in deliver_event, dispatch_command, and pump_parked_commands via fail_runtime_on_suspend (FailureClass::WallSliceTimeout) and reset wall_recovery_attempts = 0 on healthy completions.
    • Preserve FailureClass::WallSliceTimeout in recover_wall_failed_plugins when a recovery reload_inner attempt fails so remaining attempts (< MAX_WALL_RECOVERY_ATTEMPTS) are retried on subsequent ticks.
    • Invoke recover_wall_failed_plugins at the end of deliver_runtime_events as well as pump_plugin_timers.
  3. Export KITTY_WINDOW_ID to spawned terminal shells:
    • Export KITTY_WINDOW_ID (view.0 in spawn_shell_for_view_impl and "1" in spawn_shell_in, unless listed in scrub_env) so TUI tools that detect Kitty graphics via KITTY_WINDOW_ID work out of the box.
  4. Hyprland-aligned Panel/Workspace layout actions (move_split:<dir> and toggle_split):
    • Add ChromeAction::MoveSplit(SplitDir) (move_split:<left|right|up|down>, aliases move_panel, swap_split, movewindow, swapwindow) bound by default to Mod-aware ctrl+alt+h/j/k/l and ctrl+alt+left/down/up/right: swaps the focused tiled leaf with the spatially adjacent tiled leaf in dir while keeping focus on the moved leaf, or nudges a focused floating/pinned panel by 4 cells in dir.
    • Add ChromeAction::ToggleSplit (toggle_split, aliases togglesplit, split_toggle) bound by default to Mod-aware alt+s: flips the innermost enclosing Split axis of the focused tiled leaf between Horizontal and Vertical.
  5. Release v0.0.42:
    • Advance docs submodule pin to bitty-terminal-docs 896923d and bump workspace, crate, and packaging versions to 0.0.42.

Activity

  1. added this to the v0.1.0 milestone on Nov 14, 2026
  2. added
    feat
    fix
    P1
    area:ui
    area:runtime
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area:runtimearea:uifeatfix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions