Fix/project focus order - #42
Closed
matej21 wants to merge 3 commits into
Closed
Conversation
Worktrees now live in parent's `worktree_ids` instead of `project_order`, mirroring how folders use `folder.project_ids`. This gives deterministic ordering, drag-and-drop reordering in the sidebar, and automatic folder membership when the parent is in a folder. Migration in `validate_workspace_data` populates `worktree_ids` from existing `worktree_info` back-references and removes worktrees from `project_order`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When a project is focused, only that project is shown — not its worktree children. When a worktree is focused, only that worktree is shown — found through its parent's worktree_ids. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
matej21
added a commit
that referenced
this pull request
Aug 19, 2026
The width guards cannot decide the narrow case: word-wrapping at width W produces rows no wider than W, and Claude Code's PR line lands the URL row exactly on W, making it the widest row in the block. ● Hotovo — contember/webmaster#567 (feat/browser-and-edge-worker-sentry) → main, samostatně od #566, nepřekrývají se). A hard wrap breaks a token mid-way — it never starts a new one, so read the break lexically instead: - an opening paren starts a bracketed token, so it is a parenthetical after the URL, not the URL's tail; - a wholly numeric last segment (`/pull/567`, `/issues/42`) can only continue with more digits, or with a delimiter opening the next segment. The numeric rule covers GitHub PR and issue links without knowing about GitHub, and still joins a wrap that falls inside the number (`…/pull/56` + `7`), which an explicit list of complete URL shapes would have had to special-case anyway. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RusYtFivQgiGheLoKVcTaK
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.
No description provided.