Repository navigation
toolshed: a reconnecting player's context never runs as the console (v297) - #9
Merged
ImogenOC merged 2 commits intoNov 30, 2026
Conversation
* Fix stale Toolshed context after reconnect * This bothers me for some reason :3 (cherry picked from commit 415d0d9)
The console context is shared by the host and every sudo caller, and it kept the shell of whoever created it, so command output and errors went to that caller. Bind it to the calling shell on every call, as upstream's reconnect fix now does for player contexts. Tests: a reconnected player is checked as themselves before InGame, and console output reaches the shell that ran the command. (cherry picked from commit 10a1c51)
Open
3 tasks done
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.
Carries Lupine#8 onto
wolfgate/v297, unchanged: upstream's "Fix stale Toolshed context after reconnect (space-wizards#7257)" and "toolshed: bind the invocation context to the calling shell". A reconnecting player's Toolshed context never runs as the console.Why now: Wolfgate's
mainwent back to v295 for one evening (Wolfgate#924) and took Lupine#8 there (Wolfgate#929). Wolfgate#926 brings v297 back with the door collision fix, and without this the move to v297 would drop the Toolshed fix.-xonto thewolfgate/v297tip4680ec80f(same tree aseb1f79625, which Wolfgate pinned before). Both apply cleanly, and their code lines are identical to the v295 commits (415d0d916,10a1c5129).ToolshedSessionTest.