Skip to content

toolshed: a reconnecting player's context never runs as the console (v297) - #9

Merged
ImogenOC merged 2 commits into
VanguardControl:wolfgate/v297from
ImogenOC:wolfgate/v297-toolshed
Nov 30, 2026
Merged

ImogenOC merged 2 commits into
VanguardControl:wolfgate/v297from
ImogenOC:wolfgate/v297-toolshed

Conversation

@ImogenOC

@ImogenOC ImogenOC commented Nov 30, 2026 •

Copy link
Copy Markdown

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 main went 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.

  • Cherry-picked with -x onto the wolfgate/v297 tip 4680ec80f (same tree as eb1f79625, which Wolfgate pinned before). Both apply cleanly, and their code lines are identical to the v295 commits (415d0d916, 10a1c5129).
  • Not built or tested locally (the machine hosts the live server); this branch's CI runs the engine tests, including ToolshedSessionTest.

Axionyxx and others added 2 commits December 1, 2026 00:07
* 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)
@ImogenOC
ImogenOC merged commit a45bd33 into VanguardControl:wolfgate/v297 Nov 30, 2026
3 checks passed
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