Repository navigation
[CTX-0715] feat(config): Leader key binding contract (OQ-088) - #1307
Merged
Merged
Conversation
Alt+Space default, Ctrl+Space Windows fallback set, fail-open timeout with Esc cancel, and leader_key/leader_timeout_ms config overrides through the lua/plan/merge pipeline. Leader stays independent of ModKey (OQ-052 deferred); app input-path wiring rides OQ-089 (#981).
This was referenced Sep 23, 2026
Xuepoo
added a commit
that referenced
this pull request
Sep 23, 2026
#1312) * [CTX-0723] feat(present): wire fold/hint/composer into live input path Leader chord (OQ-088, via #1307) arms a live hint session from the single cross-panel engine: operator+label keystrokes dispatch with prefix completion behind the operator-conflict gate, with fail-open timeout expiry and Esc cancel. Fold verbs (fold_toggle/expand/collapse) resolve the focused view's latest OSC 133 command block. Composer opens for real with modal input routing and single-frame PTY submit; the $EDITOR request stays a loud routing flag (no terminal fd in the GUI root). Fold persistence replays anchor ordinals; provider unregister completes the P6 dispose symmetry. Engine now includes command targets by default (headless-neutral). Tests: 14 runtime integration (cw_uipresent.rs), 5 app intercept, 1 config. fmt/clippy/test green (workspace). Closes #980, Closes #983, Closes #984. Relates #981, #982, #985, #990, #1088 (HOLD, see per-issue comments). Task: CTX-0723 * [CTX-0723] fix(app): hint tests use platform leader mods (Ctrl+Space on Windows) * [CTX-0723] fix(app): fail-closed leader fallback in ChromeState::new (review PX-3309) --------- Co-authored-by: reviewer <[email protected]> Co-authored-by: hermes-planner <hermes-planner@local>
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: area:config | Labels: feat,P1,area:config | Milestone: v0.1.0 | RFC: OQ-088 | Task: CTX-0715
Implements the OQ-088 Leader key binding contract (adopted 2026-09-23), leader half of #981 (hint/leader overlay) and #1045 (UX-38 Mod - Leader part only; Mod unification stays OQ-052 deferred and is untouched).
Relates #981 #1045 (NOT Closes - needs review + OQ-089 engine sequencing before the overlay/dispatch half can land).
What changed
Alt+Space(LEADER_DEFAULT_CHORD_RAW) + Windows fallback set (Ctrl+Space,Alt+Spaceis OS-reserved on Windows) in `bitty-config/src/keymap.rs"; reuses the shared chord grammar, no duplication.LEADER_TIMEOUT_MS_DEFAULT = 1000ms, override range100..=60000) +Esccancel via headlessLeaderStatemachine (caller clock, saturating deadline, expiry returns to Idle so keys route back to the shell).leader_key(chord string) +leader_timeout_ms(integer) through lua extraction -> plan -> scalar-replace merge with attribution -> Live reload diff -> project-trust rejection (keymap-adjacent).ModKey: overrides keep exact spelling under any mod; platform defaults never rewrite (pinned by test).Verified
cargo check --workspace,RUSTFLAGS="-D warnings" cargo clippy --workspace --all-targets,cargo fmt --check, fullcargo test --workspace(zero failures),cargo +1.85 check(MSRV, no let-chains).Left for follow-up (OQ-089)
HintSession, paint overlay (CW-02: Wire hint overlay + dispatch #981 engine half).config check/inspectdisplay rows for the resolved Leader.