Repository navigation
[CTX-1370] feat(vt): advertise resolved terminal font (kitty DCS + +show-font) - #2277
Merged
Merged
Conversation
|
Warning Review limit reachedYou'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 7 minutes. View limit details
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. Comment |
This was referenced Oct 19, 2026
Xuepoo
added a commit
that referenced
this pull request
Oct 20, 2026
… wall-clock expiry (#2281) `FsListBackend::list` spends the accepted RC-1 50 ms budget on the whole call and checks the deadline at walk index 0. Every cap, containment, and security test called it, so a saturated runner only had to burn 50 ms in pre-scan work (grant matching, canonicalization, `read_dir`) plus scheduling jitter for a tiny fixture listing to abort with `E_TIMEOUT` before reaching the property under test. That is what failed `granted_prefix_lists_expected_entries_deterministically` on PR #2277. - Route all 33 non-timing test call sites through the existing `list_with_generous_deadline` helper (test-only 60 s fixture deadline), so cap/containment/security assertions are decided by entries and bytes. - Keep `large_directory_aborts_near_the_scan_deadline` as the only test that depends on wall-clock expiry (already-expired deadline plus a 2 ms live budget over 20k entries). - Assert in that test that `LIST_SCAN_BUDGET` still equals `RC1_WALL_CLOCK_BUDGET_MS`, so the tests cannot be "fixed" by loosening the production deadline. Production deadlines, `list_with_expiry`, and the bridge expiry plumbing are unchanged. No `cfg(test)` in production logic, no sleep-based retries. Closes #2280 Co-authored-by: reviewer <[email protected]>
Xuepoo
added a commit
that referenced
this pull request
Oct 20, 2026
Cover the full `v0.0.23..main` range instead of the earlier partial passes: all 71 merged commits are grouped under Added, Changed, Fixed, Security, and Documentation, with PR numbers and the affected CTX tasks. Explicit call-outs: copy keeps combining marks and ZWJ (#2266), multi-line paste duplication and ghost fixed by the cursor clamp across wide spacers (#2272), combining marks paint so decomposed `é` matches precomposed (#2279), kitty font query and `bitty +show-font` (#2277), bounded native clipboard acquisition path B (#2273), bounded `bitty.fs.list` (#2271), the `bitty.history` Lua surface (#2268), the production ComponentBroker plus activation state (#2267, #2276), Enter-confirm paste (#2269), the `fill` DPI fix (#2283), landlock `no_new_privs` (#2284), and spawn descriptor reservation (#2289). Partials are marked honestly: #2254's request surface is still pending, the #2213 disposition stays open, #2286 is feature-gated and unwired, the macOS clipboard read stays a typed refusal, and the RC-1 fuel accounting fix is not claimed because PR #2292 is unmerged. The heading reads `unreleased` because the release is on hold; the tag date is set at tag time. Docs-only: no code, scripts, workflows, or pins touched.
Xuepoo
added a commit
that referenced
this pull request
Oct 20, 2026
Cover the full `v0.0.23..main` range instead of the earlier partial passes: all 71 merged commits are grouped under Added, Changed, Fixed, Security, and Documentation, with PR numbers and the affected CTX tasks. Explicit call-outs: copy keeps combining marks and ZWJ (#2266), multi-line paste duplication and ghost fixed by the cursor clamp across wide spacers (#2272), combining marks paint so decomposed `é` matches precomposed (#2279), kitty font query and `bitty +show-font` (#2277), bounded native clipboard acquisition path B (#2273), bounded `bitty.fs.list` (#2271), the `bitty.history` Lua surface (#2268), the production ComponentBroker plus activation state (#2267, #2276), Enter-confirm paste (#2269), the `fill` DPI fix (#2283), landlock `no_new_privs` (#2284), and spawn descriptor reservation (#2289). Partials are marked honestly: #2254's request surface is still pending, the #2213 disposition stays open, #2286 is feature-gated and unwired, the macOS clipboard read stays a typed refusal, and the RC-1 fuel accounting fix is not claimed because PR #2292 is unmerged. The heading reads `unreleased` because the release is on hold; the tag date is set at tag time. Docs-only: no code, scripts, workflows, or pins touched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Priority: P1 | Area: term | Labels: feat,P1,area:term | Milestone: 0.0.24 | RFC: N/A | Task: CTX-1370
Closes #2263
Summary
Advertise Bitty's resolved terminal font to detectors through two independent, read-only paths:
ESC P +q <hex-key>[;<hex-key>] ST, also APC): the parser classifies the bounded payload and the runtime answerskitty-query-font_family/kitty-query-font_sizewith the live resolved config, using the existing boundedReplychannel. The raw query is never echoed and no second PTY write path exists.bitty +show-font: printsfont_family: <family>,font_size: <points>, and optionalfont_fallback:lines from the same merged config startup uses; read-only, headless, and it creates no runtime/window/PTY/IPC/plugin VM.The upstream fastfetch change is
fastfetch-cli/fastfetch#2660(Xuepoo:terminalfont-bitty), which queries Bitty with the kitty font DCS and falls back tobitty +show-fonton non-Windows.Review findings addressed (independent review at
5e083e59)classify_dcs_query_bodyreturning font / reserved-font / XTGETTCAP) is now shared by the parser andfind_xtgettcap. A mixed capability+font payload can no longer be both answered as a font query and left in the XTGETTCAP queue; the followingCoquery is answered asCo, neverTN. Regressions:classification_is_shared_for_mixed_capability_and_font_payloads,find_xtgettcap_skips_a_mixed_font_payload_and_keeps_alignment, and the end-to-endmixed_font_and_capability_query_keeps_the_xtgettcap_queue_aligned.recording/ctx-1370-font-query/mutations/results.tsv, 3/3 caught).RuntimeConfig;+show-fontis a new process reading the config file. After a live zoom they can differ until the file is updated; the live value is what the running terminal uses.ShowFontError::Unavailable/ exit 3 remains defense-in-depth; config validation rejects unusable values at load time, so the CLI path reports exit 2. The usage text lists only reachable codes.Verification (pre-rebase commit
75d64802, re-checked after rebase ontoorigin/main00b20089)cargo fmt --all -- --checkcargo check --workspace --all-targets --lockedcargo clippy --workspace --all-targets --locked -- -D warningscargo nextest run -p bitty-vt -p bitty-runtime -p bitty-terminal --lockedcargo check --target x86_64-pc-windows-gnu --workspace --all-targets --lockedPost-rebase focused re-run: 33 kitty/finder/terminal-query tests pass, including the mixed-payload integration test.
Scope and residual
+show-fontonly loads config.Evidence (ignored, on-disk):
recording/ctx-1370-font-query/evidence.md,recording/ctx-1370-font-query/review/review.md,recording/ctx-1370-font-query/mutations/.