You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 76fc8a6
Browse filesBrowse the repository at this point in the historyBrowse files
feat(desktop): update relaunch restores every window from manifest v2
## What Changed
| Area | Change |
| --- | --- |
| Manifest | v2: one row per window, `{ windowId, route, bounds?, workspace? }` |
| Restore | keyed by `windowId`; extra windows open via `createNew` |
| Bounds | the current main window saves them, and hands over on close |
| Token | only a window restored onto a workspace maps as `t3code-window-<WindowId>` |
| Rules | every rule staged on a token is removed when placement ends |
| Claims | exact title, else the one new client since show; atomic select and record |
## Why
Update relaunch dropped extra hub and same-project windows.
A New Window that became main never saved its bounds.
## Close conditions
### Manifest
- [x] **Route:** an invalid route falls back to `/`
- [x] **v1 project entry:** becomes a seeded window
- [x] **v1 hub entry:** becomes an all-projects window
- [x] **Bounds:** display-validated
- [x] **When:** update relaunch only
- [x] **Corrupt manifest:** still opens one window
### Placement
- [x] **Token:** the title carries the WindowId until claimed
- [x] **Claims:** serialized, never guessed
- [ ] **Live:** real Hyprland update relaunch
Placement boxes are proven against a faked compositor; the host arranges live proof.
### Notes
| Note | Detail |
| --- | --- |
| `project` field | required: a route alone cannot tell a project window from an all-projects one |
| Token scope | other windows keep their normal title, so user rules on it still fire |
| Rule cleanup | Lua: workspace and suppression rules disabled, handle globals cleared |
| Rule names | one compositor-wide counter; no name is ever reused |
| Legacy grammar | no unset for `suppress_event`, so tokens stage workspace only |
| No claim lock | select and record are atomic by construction |
| Known limit | all-projects windows without bounds open stacked at main's bounds |
| Known limit | two normal windows mapping at once, both retitled, stay unclaimed |
## Checklist
- [x] This PR is small and focused
- [x] I explained what changed and why
- [ ] I included before/after screenshots for any UI changes (none)
- [ ] I included a video for animation/interaction changes (none)
Closes#1345
Written by Claude Opus 5.5 in Claude Code, hosted by T3 Code.
## Fork trailers
Squashes:
- adf1305 feat(desktop): update relaunch restores every window from manifest v2 (#1577)
- d40e3ab fixup! feat(desktop): update relaunch restores every window from manifest v2
- 4d5a32f feat(desktop): update relaunch restores every window from manifest v2 (#1577)
- faa53bd refactor(multi-window): createWindow seams become marked insertions (#1811) (#1811)
Fork-Domain: multi-window
Fork-Tier: core
0 commit comments