Skip to content

Let a world connected with no character be closed and reopened - #149

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-4m8gcp
Nov 24, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-4m8gcp

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

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, a telnet:// link and Browse can add a world with no character. When it is the first session it takes the main window, and CanClose allowed the main window only once its character had been deleted. A session with no character was never counted, so the window could never close, and CloseWindow returned without a word. Separately, the sidebar drew such a world as no characters with a click that only said so, and ⌃P had no Switch to for it, so once its tab was gone nothing reopened it.

Change

  • Closing the own window of a world's session with no character (or a window a resumed workspace recorded for one) is allowed and ends that session, with a notice (closed game.convergencemush.com and disconnected). ⌃B's x row is dimmed by CanClose now, not by "is the main window".
  • Refusing to close a character's own window says so instead of doing nothing.
  • The sidebar gives such a world a no character row (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.
  • ⌃P lists it as Switch to game.convergencemush.com; SwitchToCharacter opens a world with no character as itself.
  • The header's character menu names it by the world alone.

Tests

  • WorldWithoutCharacterTests (new): the tab carries ×, layout:close closes 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

/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
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 12 billable files and costs up to $3.00.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 60 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

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: Essentials
  • Run ID: 790bf416-a263-434e-b46a-4f51a2073e62
Commits

Reviewing files that changed from the base of the PR and between d8cbb1d and 2e4c038.

Files selected for processing: 12

  • CHANGELOG.md
  • src/SharpMUTerm.Avalonia/NativeChrome.cs
  • src/SharpMUTerm.Client/Chrome/SidebarModel.cs
  • src/SharpMUTerm.Client/Commands/BuiltInCommands.cs
  • src/SharpMUTerm.Core/Workspaces/RailModel.cs
  • src/SharpMUTerm.Tui/RailRenderer.cs
  • src/SharpMUTerm.Tui/SharpMUTermApp.CharacterMenu.cs
  • src/SharpMUTerm.Tui/SharpMUTermApp.RailKeys.cs
  • src/SharpMUTerm.Tui/SharpMUTermApp.cs
  • tests/SharpMUTerm.Tui.Tests/RailClickTests.cs
  • tests/SharpMUTerm.Tui.Tests/WorldBrowseTests.cs
  • tests/SharpMUTerm.Tui.Tests/WorldWithoutCharacterTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review November 24, 2026 01:17
@HarryCordewener
HarryCordewener merged commit 63f4950 into main Nov 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants