Skip to content

fix(terminal,ui): harden wheel config bridge and align Hyprland layout naming #3145

Closed

Description

@Xuepoo

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

Summary

  1. Address the 8 post-merge review items on bitty.wheel / bitty.config.wheel (PR [CTX-1817] feat(lua): expose bitty.wheel bridge under config.manage #3144):
    • Charge actual string bytes in wheel_get via list_row_bytes across top-level fields, WheelProviderRow, WheelPermissionRow, and WheelApprovalRow.
    • Decode UTF-16 surrogate pairs in wheel_manage::parse_string (\uD800..\uDBFF followed by \uDC00..\uDFFF) and reject unpaired surrogates.
    • Format finite JSON floats in write_json_value so values such as 1e20 retain a decimal point or exponent and round-trip through parse_number.
    • Bound single-handle file reads to WHEEL_MAX_FILE_BYTES + 1 in read_private_json_for_write and scan_lua_assignments.
    • Reject candidate JSON documents exceeding WHEEL_MAX_FILE_BYTES before preview/commit.
    • Preserve legacy thinking enabled state in prepare_wheel_setting_write when thinking_enabled is absent and thinking_gear is updated.
    • Strip providers. prefix and .model suffix sequentially before validating provider IDs so overlapping keys like "providers.model" never slice an invalid range.
    • Serialize Wheel store read-check-replace mutations under a shared owner-only lock directory (.wheel-manage.lock) with PID liveness verification, and harmonize thinking_gear (max/xhigh), approval_mode (terminal/prompt), and permissions.<tool> (read_file/write_file/edit_file/glob/grep/bash + fs_read/fs_write/run_command/git/network) allowlists between wheel and dashboard.
  2. Align Hyprland layout naming and semantics in bitty-ui and bitty-runtime:
    • Add canonical LayoutNode::dwindle_split, LayoutNode::dwindle_split_with_multiplier, and dwindle_split_axis (keeping smart_split* as forwarding aliases) and clarify Hyprland dwindle (split_width_multiplier, force_split) vs dwindle:smart_split cursor-quadrant division and dwm-fibonacci spiral.
    • Clarify DwindleProvider and PanelLayoutMode docs/tests and bump the docs submodule pin to bitty-terminal-docs origin/main.

Activity

  1. added this to the v0.1.0 milestone on Nov 13, 2026
  2. added
    fix
    P1
    area:ui
    area:runtime
    on Nov 13, 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:uifix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions