Skip to content

WSL port 7/7: bind the quit chord that WSL actually sends - #14

Merged
jainal09 merged 8 commits into
wsl/06-install-in-placefrom
wsl/07-quit-legacy
Aug 6, 2026
Merged

WSL port 7/7: bind the quit chord that WSL actually sends#14
jainal09 merged 8 commits into
wsl/06-install-in-placefrom
wsl/07-quit-legacy

Conversation

@jainal09

@jainal09 jainal09 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Stacked on #12. Found by pressing the key — which is exactly what checkpoint 5
said would be needed, because nothing automated can reach this.

What was wrong

Ctrl+Shift+Q did nothing on WSL.

Windows Terminal 1.24 is new enough to speak CSI-u and does not negotiate it
with nvim. So the chord arrives as the legacy 0x11 — plain <C-q> — and the
<C-S-q> mapping is never reached. The documented way out of the editor did not
exist on WSL, leaving :qa! — the one thing that whole section of the config
was written to stop being necessary.

Why no test caught it

  • suite_quit.sh writes ESC[113;6u straight onto the pty, so it passes on
    a terminal where the chord could never arrive.
  • demo.sh --check cannot send CSI-u over --remote-send at all (checkpoint 4).
  • vim.g.termfeatures is nil even in a real TUI on nvim 0.12, so there is no
    runtime signal to detect CSI-u from Lua either.

This one genuinely required a human to press it.

The fix

Bind what actually arrives. This is not a second key to learn — you press
Ctrl+Shift+Q, exactly as documented, and <C-q> is what nvim is handed.

Insert only, and gated on WSL, because both halves cost something:

  • normal mode keeps Ctrl+Q as visual block — it is the only way to ask for
    one, and drill's premise is that you are in insert anyway
  • in insert, vanilla <C-q> is literal-insert, the twin of <C-v>. In a
    Python scratchpad where <C-v> is already paste that is close to unreachable,
    and a quit prompt defaulting to Cancel is the better use of the key. But it is
    a real vim behaviour, so nowhere but WSL loses it.

Verification — both branches, forced each way

On WSL:

insert  <C-q>   : -> quit_drill (callback)
normal  <C-q>   : <C-V>
insert  <C-S-q> : -> quit_drill (callback)
insert  <C-v>   : <C-R><C-O>+

Forced non-WSL — what a Mac sees:

insert  <C-q>   : UNMAPPED (vanilla literal-insert)
normal  <C-q>   : <C-V>
insert  <C-S-q> : -> quit_drill
insert  <C-v>   : <C-R><C-O>+

Byte-for-byte the old behaviour off WSL.

Suite: 556/556, ALL SUITES PASSED. Every <C-q> case in the suite is
normal-mode (suite_options.sh asserts it maps to <C-V>; suite_comment.sh's
visual-block case is --start normal), so none of them touch the new binding.

The WSL probe is hoisted to one IS_WSL near the top, since the clipboard
fallback asks the same question.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx


Summary by cubic

Make the quit chord work on WSL by binding what Windows Terminal actually sends. On WSL, insert- and terminal‑mode <C-q> opens the quit prompt; normal‑mode <C-q> stays visual block. Off WSL, behavior is unchanged.

  • Bug Fixes

    • WSL: map insert- and terminal‑mode <C-q> to the quit prompt because Windows Terminal 1.24 doesn’t negotiate CSI‑u with nvim and sends 0x11; lets you quit from inside the REPL while keeping normal‑mode <C-q> for visual block.
    • Docs: clarify the IS_WSL gate (env, not protocol), the normal‑mode gap on non‑CSI‑u terminals, terminal‑mode quit, the insert‑mode literal‑insert trade‑off, and retract the earlier --remote-send collapse claim.
  • Refactors

    • Hoisted a single IS_WSL probe and applied the fallback in insert and terminal modes.
    • Tests: add suite_options.sh checks to ensure the <C-q> fallback binds only on WSL (i/t) and does not leak to Linux CI.
    • Comments: note readline binds ^Q to quoted‑insert; the fallback trades it for quit, with ^V still providing quoted‑insert.

Written for commit 69b5867. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • New Features
    • Added WSL support for terminals that send Ctrl+Shift+Q as Ctrl+Q.
    • In insert and terminal modes, the shortcut now opens the quit prompt; normal-mode Ctrl+Q retains visual-block selection.
    • Terminals supporting CSI-u continue to use the dedicated Ctrl+Shift+Q behavior.
  • Documentation
    • Clarified terminal compatibility, WSL-specific key behavior, quit instructions, and automated testing limitations.

Greptile Summary

The PR makes the documented quit chord work when Windows Terminal sends its legacy <C-q> encoding under WSL.

  • Adds a WSL-gated <C-q> fallback in insert and terminal modes while preserving normal-mode visual block.
  • Documents the CSI-u limitation and intentional keybinding trade-offs.
  • Adds platform-sensitive assertions that the fallback is present only on WSL.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the current WSL-gated mapping includes both insert and terminal modes, so the previously reported missing REPL fallback is fixed.

Important Files Changed

Filename Overview
nvimrc.lua Adds the missing terminal-mode fallback alongside insert mode, fully addressing the previous review thread while preserving normal-mode <C-q>.
tests/suite_options.sh Verifies that callback mappings exist in insert and terminal modes exactly when the shared WSL detection is true.
KEYS.md Documents the non-CSI-u normal-mode limitation and the WSL-specific fallback behavior.
docs/wsl.md Explains the terminal encoding behavior, affected modes, and deliberate loss of literal insert on WSL.
TODO.md Updates checkpoint evidence and records the manually verified WSL key-encoding behavior.

Reviews (25): Last reviewed commit: "Test the WSL quit fallback, and stop cal..." | Re-trigger Greptile

Copilot AI lite review requested due to automatic review settings August 5, 2026 22:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@jainal09

jainal09 commented Aug 5, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The change adds a WSL-only <C-q> fallback for insert and terminal modes, preserves normal-mode visual-block selection, and updates key documentation and validation gates for terminals without CSI-u support.

Changes

WSL Ctrl+Shift+Q fallback

Layer / File(s) Summary
WSL fallback mapping
nvimrc.lua, TODO.md
WSL maps legacy <C-q> input to quit_drill in insert and terminal modes. Normal mode remains unchanged.
Mode-specific behavior documentation
KEYS.md, docs/wsl.md
The documentation describes Windows Terminal encoding, CSI-u conditions, prompt behavior, and normal-mode limitations.
Validation and process checks
TODO.md
Validation gates cover installer, clipboard, timer, CI, demo, and measured WSL behavior. Timer matching now uses executable and argument checks.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant WindowsTerminal
  participant Neovim
  participant quit_drill
  participant confirm
  WindowsTerminal->>Neovim: Send Ctrl+Shift+Q as legacy <C-q>
  Neovim->>quit_drill: Invoke mapping in insert or terminal mode
  quit_drill->>confirm: Show quit prompt
  confirm-->>Neovim: Return quit decision
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the WSL-specific quit-chord binding added by the pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch wsl/07-quit-legacy

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

Comment @coderabbitai help to get the list of available commands.

codescene-access[bot]

This comment was marked as outdated.

Comment thread nvimrc.lua Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread nvimrc.lua Outdated
Comment thread docs/wsl.md
Comment thread KEYS.md Outdated
@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from afecef8 to f3b9045 Compare August 5, 2026 23:39
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from 46506ab to ebf2585 Compare August 5, 2026 23:39
codescene-access[bot]

This comment was marked as outdated.

@jainal09

jainal09 commented Aug 5, 2026

Copy link
Copy Markdown
Owner Author

@greptileai review

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from f3b9045 to 42f6b9f Compare August 6, 2026 00:00
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from ebf2585 to b1450e2 Compare August 6, 2026 00:00
codescene-access[bot]

This comment was marked as outdated.

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from 42f6b9f to d6b6c13 Compare August 6, 2026 00:02
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from b1450e2 to 1805547 Compare August 6, 2026 00:02
codescene-access[bot]

This comment was marked as outdated.

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from d6b6c13 to 094501b Compare August 6, 2026 00:30
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from 1805547 to 4f8520c Compare August 6, 2026 00:30
codescene-access[bot]

This comment was marked as outdated.

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from 094501b to bd300ab Compare August 6, 2026 01:53
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from 4f8520c to 43ced03 Compare August 6, 2026 01:53
codescene-access[bot]

This comment was marked as outdated.

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from bd300ab to 02a6dd1 Compare August 6, 2026 02:01
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from 43ced03 to eb12af7 Compare August 6, 2026 02:01
codescene-access[bot]

This comment was marked as outdated.

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from 02a6dd1 to eebcd48 Compare August 6, 2026 02:46
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from eb12af7 to 9fa6e01 Compare August 6, 2026 02:46
codescene-access[bot]

This comment was marked as outdated.

@jainal09

jainal09 commented Aug 6, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
nvimrc.lua (2)

1274-1280: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Change INSERT ONLY to match the terminal-mode mapping.

The mapping includes terminal mode t. Change the heading to INSERT AND TERMINAL ONLY so the comment matches the implementation.

Proposed fix
--- INSERT ONLY, and gated on WSL, because both halves cost something:
+-- INSERT AND TERMINAL ONLY, and gated on WSL, because both halves cost something:
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@nvimrc.lua` around lines 1274 - 1280, Update the comment heading above the
Ctrl+Q mapping from “INSERT ONLY” to “INSERT AND TERMINAL ONLY” so it accurately
reflects the terminal-mode mapping.

1289-1291: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Add PTY coverage for raw legacy 0x11.

The current PTY cases only send CSQ = "\x1b[113;6u", so they do not cover the WSL <C-q> fallback. Add insert and terminal-mode cases that send raw \x11 after disabling ixon, and assert the prompt plus Cancel/Quit behavior.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@nvimrc.lua` around lines 1289 - 1291, Add PTY coverage alongside the existing
CSQ cases for the WSL mapping in the <C-q> path: in both insert and terminal
modes, disable ixon, send raw 0x11, and assert the expected prompt followed by
the appropriate Cancel/Quit behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/wsl.md`:
- Around line 93-109: Update the WSL behavior documentation around the
nvimrc.lua keybinding description to include terminal mode alongside insert and
normal modes, and revise the consequences text so bare Ctrl+Q is documented as
quitting from both insert and terminal modes. Preserve the existing CSI-u and
non-WSL behavior details.

In `@TODO.md`:
- Around line 78-87: Rename the socket-check output and related gate wording
around the Ctrl+Shift+Q case to describe Neovim key-notation mapping or prompt
behavior, not CSI-u delivery. Keep the check unconditional and preserve the
existing test behavior; only remove the misleading “CSI-u” terminology from the
relevant labels.

---

Nitpick comments:
In `@nvimrc.lua`:
- Around line 1274-1280: Update the comment heading above the Ctrl+Q mapping
from “INSERT ONLY” to “INSERT AND TERMINAL ONLY” so it accurately reflects the
terminal-mode mapping.
- Around line 1289-1291: Add PTY coverage alongside the existing CSQ cases for
the WSL mapping in the <C-q> path: in both insert and terminal modes, disable
ixon, send raw 0x11, and assert the expected prompt followed by the appropriate
Cancel/Quit behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1c4dd2dc-145b-47e5-a62a-ea4a9c8b6528

📥 Commits

Reviewing files that changed from the base of the PR and between ee56816 and 0bcddf8.

📒 Files selected for processing (4)
  • KEYS.md
  • TODO.md
  • docs/wsl.md
  • nvimrc.lua

Comment thread docs/wsl.md
Comment thread TODO.md
@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from ee56816 to de2192d Compare August 6, 2026 10:12
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from 0bcddf8 to 1296659 Compare August 6, 2026 10:12
codescene-access[bot]

This comment was marked as outdated.

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from de2192d to d3cf20c Compare August 6, 2026 14:16
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from 1296659 to d3f3b42 Compare August 6, 2026 14:17
@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from d3cf20c to 716a400 Compare August 6, 2026 14:17
codescene-access[bot]

This comment was marked as outdated.

@jainal09
jainal09 force-pushed the wsl/06-install-in-place branch from 716a400 to e1a9c63 Compare August 6, 2026 14:18
@jainal09 jainal09 closed this Aug 6, 2026
@jainal09
jainal09 force-pushed the wsl/07-quit-legacy branch from d3f3b42 to e1a9c63 Compare August 6, 2026 14:20
jgosaliya and others added 7 commits August 6, 2026 10:21
Ctrl+Shift+Q did nothing on WSL. Nothing automated could have found it:
suite_quit.sh writes ESC[113;6u straight onto the pty, so it passes on a
terminal where the chord could never arrive, and demo.sh --check cannot send
CSI-u over --remote-send at all. It took pressing the key.

Windows Terminal 1.24 is new enough to speak CSI-u and does not negotiate it
with nvim. So the chord arrives as the legacy 0x11 -- plain <C-q> -- and the
<C-S-q> mapping is never reached. The documented way out of the editor did not
exist on WSL, leaving `:qa!`: the one thing that whole section was written to
stop being necessary.

So bind what actually arrives. This is not a second key to learn -- you press
Ctrl+Shift+Q, exactly as documented, and <C-q> is what nvim is handed.

Insert only, and gated on WSL, because both halves cost something. Normal mode
keeps Ctrl+Q as visual block: it is the only way to ask for one, and drill's
premise is that you are in insert anyway. In insert, vanilla <C-q> is
literal-insert, the twin of <C-v> -- in a Python scratchpad where <C-v> is
already paste that is close to unreachable, and a quit prompt defaulting to
Cancel is the better use of the key. But it is a real vim behaviour, so
nowhere but WSL loses it.

Verified both branches by loading the config with the detection forced each
way. On WSL insert <C-q> is quit_drill. Forced non-WSL -- what a Mac sees --
insert <C-q> is unmapped, normal <C-q> is <C-V>, insert <C-v> is still paste
and <C-S-q> is still quit: byte-for-byte the old behaviour.

The WSL probe is hoisted to one IS_WSL near the top, since the clipboard
fallback asks the same question.

Suite: 556/556, ALL SUITES PASSED.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx
Review, and correct. <C-S-q> is bound in n/i/t precisely so you can quit from
inside the interpreter without pressing <C-e> first -- KEYS.md advertises it --
and a fallback covering only insert silently drops that on the one platform
that needs the fallback at all.

Normal mode stays out: there <C-q> is visual block. python has no use for
<C-q>, and drill.sh's `stty -ixon` is what frees it from XON to begin with.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx
Review on the base PR: the gates named one condition each while the checkpoints
named several, so "gate passed" did not mean the checkpoint was done. Spell
them out -- including the one doing the least work: "CI green" says nothing
about whether xvfb and xclip made the clipboard cases real or whether they were
silently skipped, so require that evidence from the log instead.

Landed at the tip of the stack rather than on the base branch: TODO.md is
edited by every checkpoint, so the same change down there collides with all
five checkbox ticks above it for no benefit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx
Review: the checkpoint 4 entry still carried the socket/CSI-u explanation that
commit "Retract the socket-mode quit skip" explicitly withdrew, so the final
diff documented behaviour the final code does not have -- and documented a
false cause for it. Rewritten to say what was actually wrong and what the
measurement really showed, because "I got this wrong and here is why" is worth
more in a checklist than a tidy sentence that is false.

Checkpoint 3 was stale the same way: it credited `ps -o comm=`, which was
replaced by the source marker after that check turned out to accept
`python3 train.py --tag drill-timer`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx
Codex review of this branch, three findings, and all three are the docs
claiming more than the code does.

The P1 is real and I am fixing it in the documentation rather than the binding,
because the binding is the lesser evil. On a terminal with no CSI-u,
Ctrl+Shift+Q arrives as 0x11 from every mode; the fallback covers insert and
terminal but not normal, so from normal mode you get a visual block and no
prompt -- verified on a pty, mode goes n -> \x16 and the screen says VISUAL
BLOCK. KEYS.md guaranteed normal mode anyway.

Binding normal-mode <C-q> to the prompt would fix that and cost more than it
buys: <C-q> is the ONLY route to a visual block, because <C-v> in normal mode
is paste. Quitting from normal mode still has :qa!; a block would have nothing.
So the trade stands and the docs now say so plainly, including what to press
instead.

Second: docs/wsl.md said a WSL session that does speak CSI-u is unaffected. It
is not -- the gate is IS_WSL, not the protocol, because there is no runtime
signal for CSI-u (vim.g.termfeatures is nil even in a real TUI on 0.12). Such a
session gets the insert binding too, and loses literal-insert with it. Said
outright instead of implied away.

Third: the page still carried the "--remote-send collapses <C-S-q>" claim that
the checkpoint-4 commit in this same stack retracted. Corrected, and the
retraction is named so the next reader does not have to rediscover it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx
Review: this entry still said demo.sh --check "cannot send CSI-u over
--remote-send at all", which is the claim the checkpoint-4 commit in this same
stack retracted -- and it contradicted docs/wsl.md two files away. Fourth place
that retraction had to be chased down, after the code, the workflow docs and
this file's own checkpoint 4.

It also said "you press the documented chord and it works" without qualifying
it. That is true in insert and terminal mode and false in normal mode, where
<C-q> is visual block and stays that way on purpose -- it is the only route to
a block, while quitting still has :qa!. Recorded, with what to press instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx
Review: the WSL page listed insert and normal mode and left out terminal,
though nvimrc.lua binds <C-q> in {i,t} and KEYS.md advertises quitting from
inside the REPL. Quitting without pressing Ctrl+E first is the reason terminal
mode is in that mode list at all, so leaving it out of the page undersold the
fix. The "two consequences" line had the same omission.

TODO.md also quoted the old "(CSI-u)" check label, which the previous commit
renamed for overstating what --remote-send can prove.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx
@jainal09 jainal09 reopened this Aug 6, 2026
codescene-access[bot]

This comment was marked as outdated.

codescene-access[bot]

This comment was marked as outdated.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 4 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

Comment thread nvimrc.lua
Comment thread nvimrc.lua Outdated
Two review findings on the last branch in the stack.

The fallback had no coverage at all: the 556-case gate never launched the
config with WSL detection either way, so binding <C-q> in insert and terminal
could have regressed silently. Two assertions now check it from whichever side
the machine is on -- a WSL box proves the bindings exist, and CI on
ubuntu-latest, where /proc/version has no "microsoft", proves they do not leak
onto a normal Linux desktop. Neither machine can prove both halves; between the
two runs both are covered.

And the comment claimed "python has no use for <C-q>". It does: readline in
emacs mode binds ^Q to quoted-insert, so the rebind takes a live feature away.
It stays -- ^V is bound to the same command in readline, so quoted-insert
survives -- but it is a fair trade, not a free one, and the comment said free.

suite_options 86/86, up from 84.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WveBqAyhoM49p9gWfwBDBx

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No application code in the PR — skipped Code Health checks.

See analysis details in CodeScene

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@jainal09
jainal09 merged commit 219abcb into wsl/06-install-in-place Aug 6, 2026
5 checks passed
@jainal09
jainal09 deleted the wsl/07-quit-legacy branch August 6, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants