Skip to content

[CTX-1788] fix(terminal,runtime): close PR #3109 review residuals - #3113

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-1788-pr3109-residuals
Nov 10, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-1788-pr3109-residuals

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Related #3108

Why

PR #3109 was squash-merged as 622c3b83 while the round-2 independent review
still had open findings, so main carries them. This lane closes all eight
without changing the intent of #3109. Nothing here re-litigates the merge.

Items

F2 — bitty <cmd> --help -v was byte-identical to --help

ctl, plugin, extension, list, dev, and inspect help bodies had no
verbosity tier, and -v after the subcommand word never even reached the
global flag: run/ctl/dev/plugin/extension capture their whole tail
into *_raw and stop the parse loop, so args.verbose stayed false.

  • Every help fn is now fn X_help_text(verbose: bool) returning the compact
    body plus a X_HELP_CONTRACT block when verbose.
  • cli::verbose_help_requested reads the captured tail for -v/--verbose
    and is consulted only on help paths (ctl.rs, dev.rs, plugin.rs,
    component.rs; component.rs inlines the same two-token check because that
    module is also built into the composition-root library, which has no cli).
  • help_width::verbose_tier_differs_and_carries_the_contract asserts each
    tier differs, extends the compact body, opens a contract: section, and
    carries a command-specific sentence.

Measured from the built binary (before -> after):

command --help max --help -v max identical before identical after
ctl 124 -> 90 124 -> 90 YES NO
plugin 126 -> 96 126 -> 96 YES NO
extension 109 -> 100 109 -> 100 YES NO
list 155 -> 91 155 -> 91 YES NO
dev 114 -> 98 114 -> 98 YES NO
inspect 106 -> 96 106 -> 96 YES NO

F3 — PresentStats was discarded

terminal_app.rs drained presenter acks before the band hit-test and threw
the committed frame's stats away; input.rs discarded them on the pointer
hot path. A frame committed off-tick was a real present that no tick reported,
so presented_frames and the bitty tick line under-counted.

  • Runtime gains offtick_present: Option<PresentStats>; the ack drains
    (poll_presenter_acks, drain_presenter_acks_at, and the three input-path
    call sites) park the stats there.
  • tick_at consumes them with a documented cadence: at most one present is
    reported per tick, and the tick's own frame wins when both happen.
  • terminal_app::note_presented(&PresentStats) is the single consumer
    (counters, first-frame marker, tick line, reply flush), shared by both
    sources.

F4 — pump_cold_commands ran twice per tick

AboutToWait pumped, ticked, then pumped again, re-entering the owning plugin
VM twice per cold phase. Now exactly one pump runs, before drive_tick, which
is the bitty#3108 ordering; the AboutToWait comment and the
pump_cold_commands doc (which claimed "once before and once after") say so.

F6 — dead corner-glyph API

ChromeCornerGlyphs, ChromeGlyphCoverage, CORNER_ORDER,
CHROME_CORNERS_ROUNDED/BOX, CHROME_CORNER_MASKS, their test, the
re-exports, and the module-doc paragraph are gone. git grep shows no
consumer outside chrome.rs/lib.rs; retiring beats documenting a future
consumer that does not exist. The module doc now states the actual rule:
cell-grid chrome paints the square fallback, rounded corners come from pixel
surfaces only.

F7 — help lines over the readable width

Wrapped to <=100 columns (table above) and gated by
crates/bitty-terminal/src/help_width.rs:

  • HELP_MAX_COLUMNS = 100, over_wide_lines, assert_help_width, all
    measured on rendered text (the bodies are \-continued literals whose
    indentation is carried by trailing spaces, so a source-line check would pass
    while the terminal wraps).
  • every_help_tier_fits_the_documented_width covers all six commands in both
    tiers; the_width_gate_rejects_an_over_wide_line proves the gate can fail
    (exactly 100 passes, 101 fails, and assert_help_width panics).

Kitty — t=f unicode-virtual zero-dimension fallback had no test

The nearest coverage uses the synchronous a=T form with explicit c=/r=,
which always carries decoded dimensions, so the fallback in present.rs
(uv.image_width == 0 -> stored pixel size) was dead in every existing test.

New: unicode_virtual_zero_dimension_span_keeps_the_stored_aspect
(crates/bitty-runtime/tests/kitty_images_present.rs) — store 18x19 px with
a=t, place bodiless with a=p,U=1,i=42,c=2,r=2, print both tile rows of the
2x2 span, and assert the painted red box is 18x19 (letterboxed) rather than
18x38 (stretched to the span).

Note on the shape: a fully spanless prototype (a=p,U=1 with no c=/r=)
never registers at all (virtual_count == 0, verified), and terminal truth
refuses a place with an empty axis, so c=2,r=2 is the only admitted form and
the aspect fit is the only thing the pixel size can still decide.

Discriminating revert (scratch copy of this tree under ~/.hermes/cache/scratch/,
own CARGO_TARGET_DIR, production hunk removed):

test unicode_virtual_zero_dimension_span_keeps_the_stored_aspect ... FAILED
panicked at crates/bitty-runtime/tests/kitty_images_present.rs:1631:
assertion `left == right` failed: the 18x19 store letterboxes into the 2-row
span; 38 means the pixel size was dropped and the span stretched it
  left: 38
 right: 19

With the hunk in place the same test passes.

Doc drift

  • band_host.rs: the token-table doc now sits on resolve_band_token, and
    default_band_run_fg_token has its own doc plus a test it did not have
    (default_band_run_fg_token_keys_off_the_hover_region_identity).
  • resize.rs / input.rs: the prose was wrong, not the code. The comment
    claimed ModifiersChanged "re-syncs every latch" while focus loss clears six
    and the platform snapshot writes four. Fixed the prose rather than the code:
    bitty_platform::ModifiersState has exactly four fields, so no backend can
    report Hyper/Meta; clearing them is still right because they re-latch from
    their own key press.

Recovery classification

recover_wall_failed_plugins classified by reason.contains("RC-1 wall"), and
a plugin chooses its own error text. PluginEntry now records a typed
FailureClass, set to WallSliceTimeout only where the timer pump inspected
SuspendReason::WallClockExceeded (fail_runtime_on_suspend); every other
path stays Unclassified. New test
a_lua_error_that_says_rc1_wall_is_never_auto_recovered runs error("RC-1 wall") in init.lua and asserts zero recoveries across the attempt budget.
The existing overrun test still recovers exactly once, so the positive path is
covered too.

Credit wording

HOST_CALL_CREDIT_MAX_MS is SPAWN_TIMEOUT_MS (5 s), a fixed constant, while
LuaVm::set_spawn_deadline_ms can raise the spawn deadline to 30 s. The module
table and the constant doc said the credit is "capped per callback at the spawn
deadline"; both now say it is capped at HOST_CALL_CREDIT_MAX_MS (the default
spawn deadline) independently of a raised deadline, and that a raised deadline
pays charged time for the extra wait.

User-facing behavior changes

change reference behavior
subcommand help wrapped same content, <=100 columns; no flag or verb removed
--help -v appends a contract: block; default help stays compact
present accounting at most one present counted per tick; an off-tick commit is now counted instead of dropped
cold pump one pump per tick, still before drive_tick (bitty#3108 ordering kept)
corner glyphs API removed; no painted output changed (it was never consumed)
recovery a plugin that fails with text naming "RC-1 wall" is no longer auto-reloaded; only a real wall-slice suspension is
modifiers doc comments only, no behavior change
credit doc comments only, no behavior change

Checks

  • cargo test -p bitty-terminal -p bitty-runtime -p bitty-render -p bitty-lua --offline
  • cargo +1.85 check -p bitty-terminal -p bitty-runtime -p bitty-render -p bitty-lua --offline
  • cargo clippy -p bitty-terminal -p bitty-runtime -p bitty-render -p bitty-lua --all-targets --offline -- -D warnings
  • rustfmt +stable --edition 2024 --check on every touched file

Checks not yet reported: CI on this PR.

PR #3109 merged as 622c3b8 with the round-2 review still open, so main
carries these eight findings. Each is closed with a real check.

F2: `bitty <cmd> --help -v` was byte-identical to `--help`. Every subcommand
help body now takes a `verbose` flag and appends a `*_HELP_CONTRACT` tier.
`-v` after the subcommand word never reached the global flag (those words
capture their whole tail into `*_raw`), so `cli::verbose_help_requested`
reads the captured tail on help paths only.

F3: `PresentStats` from an off-tick presenter-ack drain was discarded, so a
committed frame that no tick reported was never counted. The stats now park
in `Runtime::offtick_present` and the next `tick_at` reports them, with the
tick's own frame winning when both happen; `TerminalApp::note_presented` is
the single consumer for both sources.

F4: `pump_cold_commands` ran twice per tick. Exactly one pump now runs,
before `drive_tick` (the bitty#3108 ordering), and the comments say so.

F6: the unused corner-glyph API (`ChromeCornerGlyphs`, `ChromeGlyphCoverage`,
`CORNER_ORDER`, the corner tables) is retired instead of documented: nothing
outside `chrome.rs`/`lib.rs` ever read it.

F7: help lines wrapped to <=100 columns and gated by a new test-only
`help_width` module that measures rendered text, not source lines.

Kitty: the `t=f` unicode-virtual zero-dimension fallback had no test. Added a
discriminating one (18x19 store in a 2x2 span must letterbox to 18x19, not
stretch to 18x38) and proved it fails with the hunk reverted in a scratch
copy.

Doc drift: the band token-table doc moves back to `resolve_band_token` and
`default_band_run_fg_token` gains a doc and a test; the modifier-latch prose
is corrected (the platform snapshot has four fields, so Hyper/Meta cannot be
re-synced) rather than the code.

Recovery: `recover_wall_failed_plugins` no longer classifies by
`reason.contains("RC-1 wall")`. `PluginEntry` records a typed
`FailureClass`, set only where the timer pump saw
`SuspendReason::WallClockExceeded`, so a plugin that raises
`error("RC-1 wall")` is never auto-recovered.

Credit: `HOST_CALL_CREDIT_MAX_MS` is the default spawn deadline, not the live
one; the docs no longer claim it tracks a raised `set_spawn_deadline_ms`.

Checks: cargo test (4 crates, 315 result lines, 0 failures), cargo +1.85
check, clippy --all-targets -D warnings, rustfmt --check on every touched
file.
@Xuepoo Xuepoo added this to the v0.1.0 milestone Nov 10, 2026
@Xuepoo Xuepoo added fix Bug fix area:ui Area: UI / layout area:runtime Area: runtime orchestration P2 Priority: medium labels Nov 10, 2026
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 32d98adb-6ef0-4b5c-bade-63369b3f8511
Commits

Reviewing files that changed from the base of the PR and between 9daf197 and be9c875.

Files selected for processing: 23

  • crates/bitty-lua/src/lib.rs
  • crates/bitty-render/src/chrome.rs
  • crates/bitty-render/src/lib.rs
  • crates/bitty-runtime/src/plugin_runtime/mod.rs
  • crates/bitty-runtime/src/runtime.rs
  • crates/bitty-runtime/src/runtime/band_host.rs
  • crates/bitty-runtime/src/runtime/input.rs
  • crates/bitty-runtime/src/runtime/present.rs
  • crates/bitty-runtime/src/runtime/resize.rs
  • crates/bitty-runtime/tests/kitty_images_present.rs
  • crates/bitty-runtime/tests/plugin_timers.rs
  • crates/bitty-terminal/src/cli.rs
  • crates/bitty-terminal/src/component.rs
  • crates/bitty-terminal/src/ctl.rs
  • crates/bitty-terminal/src/ctl/request.rs
  • crates/bitty-terminal/src/ctl/tests.rs
  • crates/bitty-terminal/src/dev.rs
  • crates/bitty-terminal/src/help_width.rs
  • crates/bitty-terminal/src/inspect.rs
  • crates/bitty-terminal/src/list.rs
  • crates/bitty-terminal/src/main.rs
  • crates/bitty-terminal/src/plugin.rs
  • crates/bitty-terminal/src/terminal_app.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Xuepoo Xuepoo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review by hermes-planner-review-1788, head be9c875

Review — #3113 [CTX-1788] fix(terminal,runtime): close PR #3109 review residuals

Scope: git diff origin/main...HEAD at be9c875 (23 files, +1161/−486, no Cargo.lock).
Everything below is measured, not read off the PR prose: a head binary built from this
tree (cargo build -p bitty-terminal), the crates' own test targets, and three revert
probes in scratch copies under ~/.hermes/cache/scratch/ctx-1788-review/ with a private
CARGO_TARGET_DIR. The lane worktree was never modified.

Result

Two of the eight residuals are not closed and one guard test does not guard.

# Item Verdict Evidence
1 F2 -v verbose tier PASS (in scope) ctl, list, inspect, dev, plugin, extension: --help -v differs, extends, opens contract:; 11 other subcommands still byte-identical (see check 1)
2 F3 PresentStats consumed once PASS (code), no test present.rs:3420-3426, present.rs:7804-7811, terminal_app.rs:2482; PresentStats is Copy (present.rs:526)
3 F4 one pump_cold_commands per tick PASS single call site terminal_app.rs:5508; post-tick pump and its comment removed (terminal_app.rs:3626-3646)
4 F6 corner-glyph API retired PASS chrome.rs −101 lines, lib.rs:302 re-exports trimmed, only a doc mention of the old name remains (chrome.rs:44)
5 F7 every help line ≤110 rendered FAIL config --help 128 cols, doctor --help 113, shell-init --help 121, x --help 455; gate covers 6 of 18 help surfaces
6 Kitty t=f zero-dimension test discriminates PASS revert probe A: red 38≠19 without the hunk, green with it
7 Doc drift (band token, ModifiersChanged) PASS band_host.rs:802-813, band_host.rs:3035 (new test), resize.rs:1059-1080, input.rs:2236-2249
8 Typed FailureClass FAIL (partial) substring match is gone (mod.rs:3739-3752) but its guard test passes with the fix reverted (probe C) and rollback never clears the class (mod.rs:4755-4780)

Checks

1. Each item really closed — FAIL (items 5 and 8)

F2 — PASS for the six commands the diff claims. Measured from the built head binary,
--help -v differs and carries contract: for ctl (90 cols), list (91), inspect
(96), dev (98), plugin (96), extension (100). Mechanism is real: -v after the
subcommand word lands in ctl_raw/dev_raw/plugin_raw/component_raw
(cli.rs:1929), and cli::verbose_help_requested (cli.rs:718-721) is consulted only on
the help arms (ctl.rs:141, dev.rs:1842, plugin.rs:5526, component.rs:1163).

F2 scope gap (not counted as the FAIL above, reported for the record): --help -v is
still byte-identical to --help for run, config, init, doctor, upgrade, reload,
cmd, x, completion, shell-init, version — 11 of the 18 subcommands. Only
crates/bitty-terminal/src/{ctl,ctl/request,dev,plugin,component,inspect,list}.rs gained a
tier; cmd.rs, run.rs, reload.rs, shell_init.rs, version.rs, x.rs,
completion.rs, config_cli.rs, doctor.rs were untouched.

F7 — FAIL. Rendered widths of every subcommand help in the head binary:

run 87   ctl 90   config 128   init 94   doctor 113   upgrade 103   reload 85
list 91  inspect 96  dev 98   plugin 96  extension 100  cmd 76  x 455
completion 106  shell-init 121  version 80

Static help lines over the 110-column bound named by the finding:

  • crates/bitty-terminal/src/config_cli.rs:1246 — usage: bitty config ... renders 128 columns.
  • crates/bitty-terminal/src/doctor.rs:2541 — usage: bitty doctor ... renders 113 columns.
  • crates/bitty-terminal/src/shell_init.rs:490 — the nushell: line renders 121 columns.
  • bitty x --help line 12 renders 455 columns (dynamic catalog text, so arguably out of a
    static gate, but it is a rendered subcommand help line).

The gate itself is honest (see probe B) but help_width::sources()
(help_width.rs:63-80) lists exactly six commands, so config, doctor, shell-init,
run, cmd, x, completion, version, init, upgrade, reload can regress — and
three of them are already over the bound today — without failing anything.

F8 — production code is right, the guard is not. recover_wall_failed_plugins now filters
on entry.failure_class == FailureClass::WallSliceTimeout (mod.rs:3739-3752), the class is
set only where the pump inspected SuspendReason::WallClockExceeded
(mod.rs:4738-4745), and the positive path still recovers exactly once
(tests/plugin_timers.rs:486). Two defects:

  1. a_lua_error_that_says_rc1_wall_is_never_auto_recovered
    (tests/plugin_timers.rs:495-544) cannot fail on the bug it guards — probe C.
  2. rollback (mod.rs:4755) sets LifecycleState::Failed and clears VM/services but never
    resets failure_class. Every activation/reload failure goes through it
    (mod.rs:2886, 2921, 2933, 3042, 3302-3382), so a generation that once hit a real wall
    slice keeps WallSliceTimeout across a later failed activation and is auto-retried up to
    MAX_WALL_RECOVERY_ATTEMPTS on a plain Lua error. The doc claim "every other failure
    stays FailureClass::Unclassified" (mod.rs:650-662) is therefore false on that path.
    Bounded and self-healing, so low severity — but it is the same class of defect the item
    was opened to close.

2. New/changed tests discriminate — FAIL (2 of 3 probes discriminate)

Probe A — kitty t=f fallback. Removed present.rs:7579-7584 in a scratch copy, own
CARGO_TARGET_DIR:

test unicode_virtual_zero_dimension_span_keeps_the_stored_aspect ... FAILED
panicked at crates/bitty-runtime/tests/kitty_images_present.rs:1630:5:
  left: 38
 right: 19

Restored the hunk in the same tree → ok. Discriminates.

Probe B — help-width gate. Injected one 129-column line into CTL_HELP_CONTRACT
(ctl/request.rs:363):

test help_width::every_help_tier_fits_the_documented_width ... FAILED
ctl -v renders 1 line(s) over 100 columns: [(69, 129)]

Unmodified head: 4 passed. Discriminates, and the diagnostic names the tier, line and
width.

Probe C — F8 guard. Restored the old predicate at mod.rs:3746
(reason.contains("RC-1 wall")) plus a probe print inside the candidate filter:

PROBE1788 candidate selected for bitty-featured.walltext
PROBE1788 candidate selected for bitty-featured.walltext
PROBE1788 candidate selected for bitty-featured.walltext
test a_lua_error_that_says_rc1_wall_is_never_auto_recovered ... ok

Fixed tree: no candidate selected, same test ok. Does not discriminate. The old code
does reach the recovery path three times and the test cannot see it, because
recover_wall_failed_plugins returns only the count of successful recoveries
(mod.rs:3783) and this fixture's init.lua fails on every activation, so the count is 0
under both implementations. wall_recovery_attempts (the observable that does change) has no
accessor. A discriminating fixture needs a plugin that activates on the second attempt (or a
test-only accessor for the attempt counter / the class).

3. No behaviour regression smuggled in — FAIL (one undisclosed default-output change)

  • F3 cost: offtick_present: Option<PresentStats> with PresentStats: Copy
    (present.rs:526) — a plain copy into the slot, no allocation, no plugin work on the
    pointer path. PASS.
  • -v tier vs default: main.rs passes args.verbose (false by default) and
    verbose_help_requested is only reached on the Help arms, so --help output is not
    tier-dependent. PASS.
  • Help re-wrapping must not drop a documented flag: compared the rendered help of a build
    from origin/main against this head for all six commands. No flag and no sentence is
    lost
    (-- tokens identical; the only word-level deltas are the version string and the
    [--yes] [--force] ordering in plugin). PASS.
  • Default output did change in bitty list --help, which the PR body's "same content"
    row does not disclose:
    • crates/bitty-terminal/src/list.rs:447 appends Version: 0.0.38 to the compact body —
      new content in the default tier (origin/main had no Version: line there).
    • crates/bitty-terminal/src/list.rs:404 hardcodes bitty list — ... while the usage
      line still interpolates {invoked_as}, so bitty ls --help now prints
      bitty list — enumerate resources followed by Usage: bitty ls ....

4. MSRV 1.85 — PASS

cargo +1.85 check -p bitty-terminal -p bitty-runtime -p bitty-render -p bitty-lua --tests --offline
→ exit 0. --tests matters here because help_width.rs is #[cfg(test)] mod help_width
(main.rs:1816). No let-chains in the diff; no const read only in const-eval.

5. Scope / hygiene — PASS

23 files, all accounted for by the eight items; no Cargo.lock churn; no hardcoded host
paths (the WSL examples in the extension help carry the existing scratch-paths-exempt
markers); the only deleted assertions are the corner-glyph test's own
(chrome.rs:711-729 on main) whose API no longer exists — no gate was weakened. Full
bitty-terminal bin suite: 1525 passed, 0 failed; kitty_images_present 45,
plugin_timers 17, band_host 21, bitty-render 472 all green.

6. Docs truthfulness — FAIL

Claims the code does not support:

  • "F7 — Wrapped to <=100 columns … gated by help_width.rs" reads as covering subcommand
    help; four help surfaces still exceed 110 columns and are outside the gate (check 1).
  • "a plugin whose init.lua merely raises error("RC-1 wall") is never auto-recovered" is
    true of the filter but is not proven by the test the body cites as proof, and is false
    after a prior real wall failure because rollback keeps the class (check 1, F8).
  • "subcommand help wrapped — same content, <=100 columns" omits the new Version: line and
    the alias-title change in list (check 3).
  • The kitty revert transcript in the body cites kitty_images_present.rs:1631; the panic
    lands on :1630. Cosmetic.

Required before merge

  1. Close F7 for real: wrap config_cli.rs:1246, doctor.rs:2541, shell_init.rs:490
    (and decide the x catalog line), and add every help surface to
    help_width::sources() so the gate covers what the finding claims. Either that or narrow
    the finding and the PR body to the six commands explicitly.
  2. Make the F8 guard discriminate: a fixture that activates on the second attempt (so the
    old predicate returns 1) or a test-only accessor for wall_recovery_attempts/the class.
    Reset failure_class in rollback (or set it there explicitly to Unclassified) so the
    doc claim holds.
  3. Either restore alias-aware/unchanged compact output in list.rs or disclose the
    Version: line and the title change in the PR body's behaviour table.

Optional: F3 has no test at all; the offtick_present carry (including the documented
"tick's own frame wins, the parked frame is dropped" case) is unverified.

VERDICT: CHANGES-REQUESTED

@Xuepoo
Xuepoo merged commit 0acc9a9 into main Nov 10, 2026
21 checks passed
@Xuepoo
Xuepoo deleted the ctx-1788-pr3109-residuals branch November 10, 2026 15:00
Xuepoo added a commit that referenced this pull request Nov 10, 2026
…ailure class on rollback

Close the three required items from the independent review of PR #3113.

F7 (help width): `help_width::sources()` now enumerates `crate::cli::SUBCOMMANDS`
instead of a hand-picked six, and an exhaustive match maps each canonical name to
its compact and `-v` text. A new test asserts the enumeration is one-to-one with
the table, so a new subcommand fails the gate instead of being silently skipped.
`cli.rs` gains `HELP_WRAP_COLUMNS` and `push_wrapped_line`, used by the
interpolated surfaces. Wrapped: `config` 128 -> 79, `doctor` 113 -> 76,
`upgrade` 103 -> 87, `completion` 106 -> 95, `shell-init` 121 -> 98,
`bitty help help` 177 -> 99, and the `bitty x --help` catalog rows 455 -> 94.
The rendered word and `--flag` multisets are unchanged for all 18 subcommands:
the diff is line breaks only.

F8 (failure class): `rollback()` resets `failure_class` to `Unclassified`, so a
generation that hit a real RC-1 wall cannot carry `WallSliceTimeout` into a
later, unrelated activation failure. `fail_runtime_classified` re-applies its
typed class after the rollback call, so the timer pump's verdict still survives.
The guard test now rewrites `init.lua` to a valid plugin before recovering, so
the old substring predicate would recover once and the test fails on it (revert
probe: left 1, right 0). The new `rollback_clears_a_previous_wall_slice_class`
test covers the reset (probe without the reset: left 1, right 0).

`list.rs`: the title interpolates the invoked spelling (`bitty ls --help` no
longer says `bitty list`), and the Version line moved to the `-v` tier,
restoring the compact default output that `origin/main` printed.

Gates: `cargo fmt --all -- --check`; `cargo check -p bitty-terminal --tests`;
`cargo test -p bitty-terminal help_width` (7 passed);
`cargo test -p bitty-runtime rollback`;
`cargo clippy -p bitty-terminal -p bitty-runtime --tests -- -D warnings`;
`cargo +1.85 check -p bitty-terminal -p bitty-runtime --tests`.
`just check`: 11,014 tests, 11,012 passed. The two RC-1 wall-clock soak budgets
(`opencode_soak`, `soak`) exceeded 60 s under the full parallel run; `soak`
passes standalone (55 s) and `opencode_soak` fails standalone on the pre-change
tree too, so neither is caused by this diff.
Xuepoo added a commit that referenced this pull request Nov 10, 2026
…witch freeze and SwashSingle font RSS (#3116)

- Move pre_present_notify() into Surface::present* right before frame.present() so deferred/skipped ticks never leave winit in FrameCallbackState::Requested without a wl_surface.commit.
- Keep FrameCallbackState::Received intact across request_frame_callback(), reset frame_callback_state on resume from XdgWindowState::SUSPENDED, and suppress RedrawRequested while suspended in vendored winit.
- Keep speculative_present_reopen open across driver commits into free swapchain slots until compositor confirmation, hold back extra frames while awaiting confirmation, and close the visibility gate back when unconfirmed.
- Share Source::File font buffers across SwashSingle instances via SHARED_FONT_FILES and reuse a single scratch probe_buf during scan_dynamic_face().
- Land PR #3113 (PX-8623) review follow-ups and restore component.rs scratch-paths-exempt markers.

Priority: P0 | Area: runtime, render, platform | Labels: fix, P0, area:runtime, area:render, area:platform | Milestone: v0.1.0 | RFC: OQ-none | Task: CTX-1791

Closes #3116
Xuepoo added a commit that referenced this pull request Nov 10, 2026
…witch freeze and SwashSingle font RSS (#3116)

- Move pre_present_notify() into Surface::present* right before frame.present() so deferred/skipped ticks never leave winit in FrameCallbackState::Requested without a wl_surface.commit.
- Keep FrameCallbackState::Received intact across request_frame_callback(), reset frame_callback_state on resume from XdgWindowState::SUSPENDED, and suppress RedrawRequested while suspended in vendored winit.
- Keep speculative_present_reopen open across driver commits into free swapchain slots until compositor confirmation, hold back extra frames while awaiting confirmation, and close the visibility gate back when unconfirmed.
- Share Source::File font buffers across SwashSingle instances via SHARED_FONT_FILES and reuse a single scratch probe_buf during scan_dynamic_face().
- Land PR #3113 (PX-8623) review follow-ups and restore component.rs scratch-paths-exempt markers.

Priority: P0 | Area: runtime, render, platform | Labels: fix, P0, area:runtime, area:render, area:platform | Milestone: v0.1.0 | RFC: OQ-none | Task: CTX-1791

Closes #3116
Xuepoo added a commit that referenced this pull request Nov 10, 2026
…witch freeze and SwashSingle font RSS (#3116) (#3118)

- Move pre_present_notify() into Surface::present* right before frame.present() so deferred/skipped ticks never leave winit in FrameCallbackState::Requested without a wl_surface.commit.
- Keep FrameCallbackState::Received intact across request_frame_callback(), reset frame_callback_state on resume from XdgWindowState::SUSPENDED, and suppress RedrawRequested while suspended in vendored winit.
- Keep speculative_present_reopen open across driver commits into free swapchain slots until compositor confirmation, hold back extra frames while awaiting confirmation, and close the visibility gate back when unconfirmed.
- Share Source::File font buffers across SwashSingle instances via SHARED_FONT_FILES and reuse a single scratch probe_buf during scan_dynamic_face().
- Land PR #3113 (PX-8623) review follow-ups and restore component.rs scratch-paths-exempt markers.

Priority: P0 | Area: runtime, render, platform | Labels: fix, P0, area:runtime, area:render, area:platform | Milestone: v0.1.0 | RFC: OQ-none | Task: CTX-1791

Closes #3116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:runtime Area: runtime orchestration area:ui Area: UI / layout fix Bug fix P2 Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant