Repository navigation
fix(tabs): a draft's tab stays in its project's group while the page is another server's - #1258
Merged
Merged
Conversation
…is another server's Group tabs > By project gave a draft tab no project whenever the window worked against another server than the draft's, so it dropped below the divider and came back when a tab of its own server was shown. Official takes a draft's project from its folder on its own server (packages/app/src/shell/titlebar/auto-tab-sections.tsx:39-42). Its project is now kept with the server's other tabs' when the window leaves that server.
Hona
marked this pull request as ready for review
November 25, 2026 19:32
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.
With Settings > Group tabs > By project and more than one server, a draft tab loses its group whenever the page is a tab of another server: it drops below the divider, among the tabs with no project, and comes back when a tab of its own server is shown. A fault of #1215, found by the run of its two-server case on the merged code. Run on this PR's build with two servers: it holds (below). Official paths are under
packages/app/src/.What official does
A draft tab's project is its folder's, asked of the tab's own server whichever server the page is on:
shell/titlebar/auto-tab-sections.tsx:39-42(global.serverCtx(tab.server)?.projects.forDirectory(tab.directory)).What ours did
apps/desktop/src/shell/tabs/auto_groups.rsproject_ofgave a draft no project when its server was not the one the window works against. A session's tab did not have this: its project is kept from the last time the window worked against its server (apps/desktop/src/workspace/servers/runtime.rssnap).The change
runtime.rssnap: a draft tab's project (its folder's) is kept with its server's other tabs' when the window leaves that server.auto_groups.rsproject_of: a draft on another server takes that kept project, as a session's tab does.Seen in the run of #1215's case 7
Two servers, the same project open on both, a draft tab on the app's own server, the page on the second server's tab. The list read: a header
acme-webover the first server's tab; a secondacme-webwith the second server's tag over its tab; then the divider and the draft. With one server the same draft stood under aDefault Projectheader.Case to run (needs two servers: the test server)
The same set-up as above on this PR's Windows x64 build, Side tabs, By project.
Default Projectin that set-up), no divider, nothing below one. Before (the build ofdev): the draft below the divider.What has run
Headless, on this PR's Windows x64 CI build (head
71947f458), with the test server and a second server; a fresh profile; Consolidated, Side tabs, By project; the same project open on both servers; a draft tab on the first.71947f45871947f4581170f8b9f: the build of #1215's merged head, which is whatdevgotNot run (by reading)