Repository navigation
Add character: one card per character, connect logs in as it, vault checkbox - #43
Merged
MHohlios merged 2 commits intoNov 4, 2026
Conversation
added 2 commits
November 4, 2026 15:43
…heckbox A connect target now carries its character. A character's card logs in as that character, with its saved password if the vault holds one, and otherwise answers only the name. Quick connect sends nothing. While one character is connected, choosing another from the session menu asks "Log out X and connect Y?" first. Where to today? shows one card per character, each tagged with whether its password is saved, and "Add character" replaces "Add a server". The Add character dialog picks the server from a pull-down with "New server…" last, and its "Save the password in MUDling's vault" box sets up the vault first when there is none. Settings → Servers & characters groups characters under their server, with Edit and Remove. Settings → Vault loses "Add a password". Removing a character writes a synced `character.removed.<id>` meta row, so the removal reaches other devices while the character's stats and history stay. A restart to update reopens the server as the same character. Adds --ax-check stops for the dialog with both server choices and for the switch question, and broadens the Servers page stop. Adds --where-to-today and --settings-section servers to measured runs.
…lay by name A password change asked while a vault job runs now waits in a queue and starts when that job finishes, instead of dropping the job in flight. A dropped job could delete the old password without saving the new one. Choosing a character from the session menu is the one in play when the server matches and the game named that character. That holds even when the game was opened from a server card, so it no longer asks "Log out Bren and connect Bren?". The remove question now says the removal reaches every synced device. Adds persist::character_id and EntryKey::is_for so the dialog, the card tags and login share one rule. add_character takes the character's name. Adds tests for removing a character with a vault, the vault box's default, overlapping password changes, and the named character in play.
MHohlios
deleted the
wiffletree/add-character-one-card-per-character-connect-log
branch
November 4, 2026 21:18
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.
Summary
Until now, every card on a server logged in as the last character played there, so there was no way to play a second character on the same server. Now each character has its own card and connects as itself. You add a character, not a server: pick its server from a pull-down and tick whether MUDling keeps its password in the vault. Linear: VYT-268.
Changes
Targetnow carries the character.launcher::login_forsends the saved password if the vault holds one; otherwise it sends only the name, and you type the password at the game.--characteralongside--reopen).character.removed.<id>, honoured only while it is newer than the character row, so adding the character again or playing it brings it back.--ax-checkstops cover Add character with both server choices, the grouped Servers page and the switch question.docs/accessibility.mdis updated.Checks
cargo fmt --checkandcargo clippy --workspace --all-targets --release --locked -- -D warningsare clean.cargo test --workspace --no-fail-fast --lockedpasses, 1807 tests at review.Release
--synthetic --ax-checkpasses all its checks.New tests cover:
None of them depend on timing.
Frame p99, release build: Where to today? 4.6 ms, Servers page 5.7–5.9 ms. The budget is 8 ms.
Follow-ups
begin_pane,alone_dialogandactions()in settings/mod.rs (crates/mudling-desktop/src/settings/character.rs:654).crates/mudling-desktop/src/launcher.rs:75).Reviewed with Wiffletree: 1 full review and 1 re-check, 2 rounds (Tests, Claude, Style)