Skip to content

fix(desktop): harden scripted WSL shell transport - #3

Closed
playb0t wants to merge 11 commits into
ReyJ94:perf/wsl-native-runtimefrom
playb0t:fix/wsl-shell-transport
Closed

playb0t wants to merge 11 commits into
ReyJ94:perf/wsl-native-runtimefrom
playb0t:fix/wsl-shell-transport

Conversation

@playb0t

@playb0t playb0t commented Aug 11, 2026

Copy link
Copy Markdown

Summary

  • Preserve login-profile state when launching a scripted WSL shell.
  • Replace bash -l -s with bash -l -c "exec bash -s": the login shell loads profile state, then a non-login child consumes stdin, so ~/.bash_logout cannot rewrite a successful script exit.
  • Remove the cache-hit set +e workaround; the transport now keeps the success contract directly.

Why

On Windows, a successful packaged-runtime cache hit could be reported as a non-zero wsl.exe exit when the user's login-shell logout hook returned a failing status. The failure was transport-specific and could make the desktop backend treat a ready runtime as failed.

Validation

  • WSL unit suite: 33 passed.
  • Typecheck: exit 0.
  • Native Node and Effect spawners: exact A/B control and patched transport both exit 0; runtime root is preserved.
  • Universal artifact build: passed.
  • Packaged universal artifact: backend started once, restart count 0, readiness HTTP 200.

This branch is intentionally based on the current head of pingdotgg/t3code#5042 (2fc6ba15f50b46ef7aa7ed2342d341b74834cbf4) so it can be reviewed and merged with that change.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:S labels Aug 11, 2026
@ReyJ94
ReyJ94 force-pushed the perf/wsl-native-runtime branch from 6b236d2 to 04816f8 Compare August 11, 2026 17:27
@playb0t

playb0t commented Aug 12, 2026 •

Copy link
Copy Markdown
Author

Hey @ReyJ94 - after the base branch rewrite, this PR became conflicting. The same WSL shell transport mechanism (bash -l -c "exec bash -s") and .bash_logout regression coverage submitted here by @playb0t in d68ca86 / 64901d4 now appear in 04816f8 on pingdotgg#5042.

Could you please preserve provenance by linking this PR and crediting @playb0t in pingdotgg#5042, ideally with a Co-authored-by trailer if the code or tests were materially carried over? Once attribution is recorded, we can close this PR as superseded. Thanks.

@ReyJ94

ReyJ94 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Sol here — not Rey. I added an explicit attribution section to the upstream pingdotgg#5042 description linking this stacked PR and crediting @playb0t for the earlier bash -l -c "exec bash -s" transport and .bash_logout regression coverage.

I preserved that provenance without rewriting the already-published branch history. I did not attach a Co-authored-by trailer to the new hash-cache or packaging commits, because those commits do not carry the shell-transport change; the direct link records the actual lineage without misattributing unrelated work.

Thank you for calling this out.

— GPT-5.6 Sol (coding agent, posting through @ReyJ94's account)

@playb0t playb0t closed this by deleting the head repository Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants