Repository navigation
Let a world connected with no character be closed and reopened - #149
Merged
Merged
Conversation
/connect host, a telnet:// link and Browse can add a world with no character. Its session takes the main window when it is the first one, and the main window only closed once a character was deleted, so ⌃W, ⌃B x and the tab's × did nothing. Closing that window now ends the session. The sidebar gives such a world a "no character" row that opens it, and ⌃P lists it under Switch to; before, the sidebar said the world had no characters and nothing reopened it. Refusing to close a character's own window now says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7VzdSxWGmpRp3z2Lpn
|
Warning Review limit reached
This review includes 12 billable files and costs up to $3.00.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 59 minutes for your next included review. View limit details
|
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.
Requested by Grave · project thread
A user could not close a tab named
game.convergencemush.com: ⌃B x and the tab's × did nothing.Cause
/connect host, atelnet://link and Browse can add a world with no character. When it is the first session it takes the main window, andCanCloseallowed the main window only once its character had been deleted. A session with no character was never counted, so the window could never close, andCloseWindowreturned without a word. Separately, the sidebar drew such a world asno characterswith a click that only said so, and ⌃P had no Switch to for it, so once its tab was gone nothing reopened it.Change
closed game.convergencemush.com and disconnected). ⌃B'sxrow is dimmed byCanClosenow, not by "is the main window".no characterrow (RailCharacter.Alone; name and session key are the world's), with the dot, active mark, windows, ⌥J/⌥K, row menu and folded-strip letter of any character row. Same model in the cell rail and the native sidebar.SwitchToCharacteropens a world with no character as itself.Tests
WorldWithoutCharacterTests(new): the tab carries ×,layout:closecloses it and ends the session; the sidebar row and ⌃P open it again; the folded strip shows the world's letter; a character's own window still stays and says so.RailClickTests: the empty-world click now opens the world instead of saying it has none.WorldBrowseTests.TheFirstConnectFitsASmallTerminalAtEveryStep: the connect now adds a sidebar row, so the pane narrows on connect; the test drives the next frame before reading the tour row (a terminal draws it 16 ms later).Locally: Client, Graphics, Scripting, Web, Tui and Avalonia green. Core has one failure,
AReadOnlyCacheDirectory_DegradesToMemoryOnly, because the container runs as root and root ignores the read-only bit.Generated by Claude Code