From eeb6ae26998362936367d5d62b28bd289e694d40 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Aug 2026 13:33:29 +0000 Subject: [PATCH 1/2] Initial plan From fcb4281a57829f3cceb811c76b08966d48c122bd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Aug 2026 13:45:30 +0000 Subject: [PATCH 2/2] Fix failing regression tests: mise shim argv0 and webapp placement x position Co-authored-by: timmo001 <28114703+timmo001@users.noreply.github.com> --- tests/scripts/launch-floating-webapp.test.sh | 2 +- tests/scripts/mise.test.sh | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/scripts/launch-floating-webapp.test.sh b/tests/scripts/launch-floating-webapp.test.sh index 3ecd277a..224a4356 100755 --- a/tests/scripts/launch-floating-webapp.test.sh +++ b/tests/scripts/launch-floating-webapp.test.sh @@ -43,4 +43,4 @@ mapfile -t args <"$HYPRCTL_ARGS" [[ ${args[0]} == *"workspace = '3', window = 'address:0xnew', follow = false"* ]] [[ ${args[1]} == *"action = 'enable', window = 'address:0xnew'"* ]] [[ ${args[2]} == *"x = 380, y = 500, window = 'address:0xnew'"* ]] -[[ ${args[3]} == *"x = 1520, y = 534, window = 'address:0xnew'"* ]] +[[ ${args[3]} == *"x = 1514, y = 534, window = 'address:0xnew'"* ]] diff --git a/tests/scripts/mise.test.sh b/tests/scripts/mise.test.sh index 712509be..ba9101d1 100755 --- a/tests/scripts/mise.test.sh +++ b/tests/scripts/mise.test.sh @@ -50,9 +50,18 @@ explicit_write=$(run_mise --write-global-config use -g gh@2.97.0) [[ $explicit_write == $'args=use -g gh@2.97.0\nglobal=' ]] ln -s /usr/bin/perl "$binary_bin/mise" +perl_script="$test_root/argv0.pl" +cat >"$perl_script" <<'PERL' +open(my $fh, '<', "/proc/$$/cmdline") or die $!; +local $/; +my $data = <$fh>; +close $fh; +my @args = split /\0/, $data; +print $args[0], "\n"; +PERL shim="$binary_bin/starship" ln -s "$mise_wrapper" "$shim" -shim_output=$(PATH="$binary_bin:/usr/bin" "$shim" -e 'print $0') +shim_output=$(PATH="$binary_bin:/usr/bin" "$shim" "$perl_script") [[ $shim_output == "$shim" ]] printf 'mise global config guard tests passed\n'