DreamWeave: web links open the stage site on the stage world #5

Open
AwfulWaffle wants to merge 1 commit from AwfulWaffle/RynthServers:dreamweave-stage-site into main
First-time contributor

Problem

A launch code is minted in the shard of the world that answered /weblogin. On DreamWeave-Stage the plugin still opened www.acdreamweave.com, so the stage code reported "expired or already used".

Fix

When the engine reports the world DreamWeave-Stage, the plugin builds the launch URL on www-stage.acdreamweave.com and restricts the web panel and browser allowlist to that host only. Any other or unknown world keeps the live site and its allowlist. The world is read once per launch, so the URL and the allowlist always name the same site. The change is in DreamWeaveWeb.cs (new helpers and a LaunchUrl overload argument) and DreamWeaveWebTools.cs (WorldName, OpenLaunch).

Testing

RynthServerPack.Tests: 111 test(s), 3885 check(s): 111 passed, 0 failed, 0 known failure(s). The new tests pin the helpers (case and whitespace handling, unknown and null worlds, allowlist separation in both directions) and the plugin wiring. The RynthDreamWeave plugin builds in Release with 0 errors (built with RynthSuiteRoot pointing at a suite checkout that carries ValueBankLuminance, the same root the tests use). Verified in game on DreamWeave-Stage: Class Abilities signs in.

🤖 Generated with Claude Code

## Problem A launch code is minted in the shard of the world that answered /weblogin. On DreamWeave-Stage the plugin still opened www.acdreamweave.com, so the stage code reported "expired or already used". ## Fix When the engine reports the world DreamWeave-Stage, the plugin builds the launch URL on www-stage.acdreamweave.com and restricts the web panel and browser allowlist to that host only. Any other or unknown world keeps the live site and its allowlist. The world is read once per launch, so the URL and the allowlist always name the same site. The change is in DreamWeaveWeb.cs (new helpers and a LaunchUrl overload argument) and DreamWeaveWebTools.cs (WorldName, OpenLaunch). ## Testing RynthServerPack.Tests: 111 test(s), 3885 check(s): 111 passed, 0 failed, 0 known failure(s). The new tests pin the helpers (case and whitespace handling, unknown and null worlds, allowlist separation in both directions) and the plugin wiring. The RynthDreamWeave plugin builds in Release with 0 errors (built with RynthSuiteRoot pointing at a suite checkout that carries ValueBankLuminance, the same root the tests use). Verified in game on DreamWeave-Stage: Class Abilities signs in. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A launch code is minted in the shard of the world that answered /weblogin, so a DreamWeave-Stage code opened on www.acdreamweave.com reports "expired or already used". The plugin now picks www-stage.acdreamweave.com and a stage-only allowlist when the engine reports world DreamWeave-Stage; any other or unknown world keeps the live site. The world is read once so the URL and allowlist always agree. Tests pin the helpers and the plugin wiring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u dreamweave-stage-site:AwfulWaffle-dreamweave-stage-site
git switch AwfulWaffle-dreamweave-stage-site

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff AwfulWaffle-dreamweave-stage-site
git switch AwfulWaffle-dreamweave-stage-site
git rebase main
git switch main
git merge --ff-only AwfulWaffle-dreamweave-stage-site
git switch AwfulWaffle-dreamweave-stage-site
git rebase main
git switch main
git merge --no-ff AwfulWaffle-dreamweave-stage-site
git switch main
git merge --squash AwfulWaffle-dreamweave-stage-site
git switch main
git merge --ff-only AwfulWaffle-dreamweave-stage-site
git switch main
git merge AwfulWaffle-dreamweave-stage-site
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rynth/RynthServers!5
No description provided.