Skip to content

chore(lane): daily maintenance 2026-11-30 - #190

Merged
kirillDevPro merged 2 commits into
masterfrom
lane/daily-2026-11-30
Nov 30, 2026
Merged

kirillDevPro merged 2 commits into
masterfrom
lane/daily-2026-11-30

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

Docs

The crate README describes what each moon-gpui-platform feature
gives per platform, but never mentioned gpui_platform::gpu_selection,
added in #178: on Linux and FreeBSD, with wayland or x11 enabled,
an application can hand the renderer an adapter and present mode
before its first window (set_gpu_selection) and enumerate the
adapter ids it accepts (list_gpus); without a selection the renderer
picks both itself.

Verified against crates/moon-gpui-platform/src/gpui_platform.rs (the
cfg-gated re-export), crates/moon-gpui-linux/src/gpui_linux.rs and
crates/moon-gpui-wgpu/src/gpu_selection.rs. Also read and found
current: crates/moon-gpui/docs/contexts.md, README.md and
docs/COMPONENT_AUDIT.md. No issue opened.

Reviewed by Codex.

Hunt

Input: ShellKind::Cmd / PowerShell / Pwsh .to_shell_variable("$"), the
rewrite ShellBuilder::build and build_no_quote apply to every task
argument.

Wrong output: "%%" for cmd and "$env:" for PowerShell and pwsh, an empty
variable reference. Through ShellBuilder cmd printed %% and PowerShell
printed $env: (build) or raised a parse error (build_no_quote) where the
task asked for a literal $.

Expected output: "$" unchanged. A lone $ names no variable (POSIX sh
prints it as a literal $), and ShellKind::Nushell.to_shell_variable("$")
already returns "$", pinned by the upstream test
test_nu_shell_variable_substitution. The fix returns the input unchanged
when nothing follows the $; every other input keeps its output.

Test: shell::shell_tests::cmd_and_powershell_keep_a_lone_dollar_literal
failed before the fix (left: "%%", right: "$") and passes now.
Re-run: cargo test -p moon-util --lib keep_a_lone_dollar

Reviewer: Codex. A first, wider version also ended a $NAME at the first
non-name character ($HOME/bin -> %HOME%/bin); Codex showed it breaks cmd
names that work today ($ProgramFiles(x86), $HOME:~0,3), so that part was
dropped and filed as #189. Codex found the narrowed fix changes
exactly "$" for Cmd, PowerShell and Pwsh and regresses no other input.

Fix: quiet — every open auto-found issue carries needs-human; none re-triaged.

The crate README describes what each `moon-gpui-platform` feature
gives per platform, but never mentioned `gpui_platform::gpu_selection`,
added in #178: on Linux and FreeBSD, with `wayland` or `x11` enabled,
an application can hand the renderer an adapter and present mode
before its first window (`set_gpu_selection`) and enumerate the
adapter ids it accepts (`list_gpus`); without a selection the renderer
picks both itself.

Verified against crates/moon-gpui-platform/src/gpui_platform.rs (the
cfg-gated re-export), crates/moon-gpui-linux/src/gpui_linux.rs and
crates/moon-gpui-wgpu/src/gpu_selection.rs. Also read and found
current: crates/moon-gpui/docs/contexts.md, README.md and
docs/COMPONENT_AUDIT.md. No issue opened.

Reviewed by Codex.
…Shell

Input: ShellKind::Cmd / PowerShell / Pwsh .to_shell_variable("$"), the
rewrite ShellBuilder::build and build_no_quote apply to every task
argument.

Wrong output: "%%" for cmd and "$env:" for PowerShell and pwsh, an empty
variable reference. Through ShellBuilder cmd printed %% and PowerShell
printed $env: (build) or raised a parse error (build_no_quote) where the
task asked for a literal $.

Expected output: "$" unchanged. A lone $ names no variable (POSIX sh
prints it as a literal $), and ShellKind::Nushell.to_shell_variable("$")
already returns "$", pinned by the upstream test
test_nu_shell_variable_substitution. The fix returns the input unchanged
when nothing follows the $; every other input keeps its output.

Test: shell::shell_tests::cmd_and_powershell_keep_a_lone_dollar_literal
failed before the fix (left: "%%", right: "$") and passes now.
Re-run: cargo test -p moon-util --lib keep_a_lone_dollar

Reviewer: Codex. A first, wider version also ended a $NAME at the first
non-name character ($HOME/bin -> %HOME%/bin); Codex showed it breaks cmd
names that work today ($ProgramFiles(x86), $HOME:~0,3), so that part was
dropped and filed as #189. Codex found the narrowed fix changes
exactly "$" for Cmd, PowerShell and Pwsh and regresses no other input.
@kirillDevPro
kirillDevPro merged commit a5f82a9 into master Nov 30, 2026
4 checks passed
@kirillDevPro
kirillDevPro deleted the lane/daily-2026-11-30 branch November 30, 2026 05:34
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.

1 participant