Repository navigation
Engine: Reconnecting Players' Toolshed Commands No Longer Run as the Server Console - #929
Conversation
…no longer run as the console The gitlink moves from c3bfa3409 to 10a1c5129, the wolfgate/v295 tip plus the Toolshed fix, which also brings in Lupine#5 (ordered raises). The engine README records both patches and updates the v297 rollback note.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
This pull request was test merged on Wolfgate Test by moonridden through SSymphony (build request 8b665051). |
About the PR
Moves the engine gitlink from
c3bfa3409to10a1c5129(VanguardControl/Lupine#8): thewolfgate/v295tip plus the Toolshed reconnect fix.Toolshed fix (Lupine#8). A player's cached Toolshed context lost its shell on disconnect and got it back only at
InGame, while the console accepts commands from the moment a session exists. In that window the context had no session, andAdminManager.CheckInvokablereads a missing session as the server console, so every Toolshed permission check passed. Lupine#8 cherry-picks upstream space-wizards/RobustToolbox#7257, which reattaches the live session on each command and completion and refuses a player context that has none. It also binds the console context, shared by the host and everysudocaller, to the calling shell, so console output and errors stop going to whoever used it first. Old-style console commands (bans, kicks,setadmin, cvars) check the real player and were never affected.Lupine#5 (ordered raises).
wolfgate/v295has carried it since before the v297 rollback, so moving to its tip brings it in. Ordered raises rent a pooled buffer instead of building a new list and a closure per handler; handler order is unchanged. It ran live as part of the v297 engine on 2026-11-30, but not yet on v295.Docs/_WG/Engine/README.mdadds both patches to the patch table and their tests, and updates the v297 rollback note.Why / Balance
Any player could run admin-level Toolshed commands (delete, spawn, teleport, mind control, chat purges, persistence edits) between connecting and joining. The join queue keeps a player in that state for the whole wait, and a modified client can stay in
Connectingwith no engine limit. Admin rights still load atInGame, so admin Toolshed commands are refused until then; before the fix they passed in that window only because they ran as the console.Media
Not needed; engine change only.
Requirements
How to test
Robust.Shared.IntegrationTests1231 of 1231 including the two new tests inToolshed/ToolshedSessionTest.cs. The macOS job was cancelled while waiting for a runner.ReconnectedPlayerIsNotConsole: a player runs a command in game, leaves and reconnects; whileConnected, the command is refused, the context holds the new session, and completions return the insufficient-permissions hint.ConsoleContextWritesToCallingShell: two console-side shells each receive their own output.wolfgate/v295, since10a1c5129is on the PR branch only.python Tools/_WG/Ci/modules.py --checkand--pr-check origin/mainpass locally. Nothing else was run locally.Breaking changes
None.
Summary by CodeRabbit
#5and including changes related to ordered raises and reconnecting context.