Skip to content

Engine: Reconnecting Players' Toolshed Commands No Longer Run as the Server Console - #929

Merged
ImogenOC merged 2 commits into
mainfrom
engine/toolshed-detached-session
Nov 30, 2026
Merged

ImogenOC merged 2 commits into
mainfrom
engine/toolshed-detached-session

Conversation

@ImogenOC

@ImogenOC ImogenOC commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

About the PR

Moves the engine gitlink from c3bfa3409 to 10a1c5129 (VanguardControl/Lupine#8): the wolfgate/v295 tip 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, and AdminManager.CheckInvokable reads 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 every sudo caller, 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/v295 has 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.md adds 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 Connecting with no engine limit. Admin rights still load at InGame, 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

  • I have read relevant guidelines/documentation to this PR found on our devwiki.
  • I have added media to this PR or it does not require an ingame showcase.

How to test

  • Lupine's Build & Test on the fork's push (run 46517610099): Ubuntu and Windows pass, Robust.Shared.IntegrationTests 1231 of 1231 including the two new tests in Toolshed/ToolshedSessionTest.cs. The macOS job was cancelled while waiting for a runner.
  • ReconnectedPlayerIsNotConsole: a player runs a command in game, leaves and reconnects; while Connected, 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.
  • CI here: build and integration tests with content on the new engine. The module workflow's gitlink check fails until Lupine#8 is merged into wolfgate/v295, since 10a1c5129 is on the PR branch only.
  • python Tools/_WG/Ci/modules.py --check and --pr-check origin/main pass locally. Nothing else was run locally.

Breaking changes

None.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the engine build, restoring Lupine #5 and including changes related to ordered raises and reconnecting context.
  • Documentation
    • Updated engine guidance with the revised rollback point and steps for reproducing a door re-entering a client’s view.
    • Expanded the patch-stack and test lists to include the related changes.

…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.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d2e96a8a-965a-45f6-b5ce-ee9c9cc288fd
Commits

Reviewing files that changed from the base of the PR and between ddc494f and 6addbd6.

Files selected for processing: 2

  • Docs/_WG/Engine/README.md
  • RobustToolbox

No actionable comments were generated in the recent review.

Walkthrough

The RobustToolbox subproject reference changed. The engine README now documents the rollback context, two patch-stack entries, and their corresponding tests.

Changes: Engine update

Layer / File(s) Summary
Engine reference and patch-stack record
RobustToolbox, Docs/_WG/Engine/README.md
The RobustToolbox reference points to a new commit. The README updates the rollback note, adds two patch-stack entries, and lists their corresponding tests.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Suggested labels: Engine Update, Docs

Suggested reviewers: gandalf2k15

Merge Risk: Minimal · previous review ddc49

This updates the engine reference and its documentation so a reconnecting player's Toolshed context no longer runs as the console. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: Toolshed commands from reconnecting players no longer run with server console privileges. The PR moves the engine gitlink to a commit with a Toolshed reconnect fix tha…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: Toolshed commands from reconnecting players no longer run with server console privileges. The PR moves the engine gitlink to a commit with a Toolshed reconnect fix that reattaches the live session and refuses player contexts without a session, and the objectives describe the console-context binding to the calling shell. The title also omits the secondary ordered-raise buffer change, which is expected. The title is specific and accurate, so it passes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: cd890312-97af-4618-a230-6c48acd8ea0a
Commits

Reviewing files that changed from the base of the PR and between 83eba54 and ddc494f.

Files selected for processing: 2

  • Docs/_WG/Engine/README.md
  • RobustToolbox

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@GalacticCoalitionOps

Copy link
Copy Markdown
Contributor

This pull request was test merged on Wolfgate Test by moonridden through SSymphony (build request 8b665051).

@ImogenOC
ImogenOC merged commit 9b85c1c into main Nov 30, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants