Skip to content

feat: add window layout snapshots and recovery - #5

Merged
ai-eks merged 7 commits into
mainfrom
feat/window-layout-recovery
Sep 2, 2026
Merged

feat: add window layout snapshots and recovery#5
ai-eks merged 7 commits into
mainfrom
feat/window-layout-recovery

Conversation

@ai-eks

@ai-eks ai-eks commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • add manual and automatic window-layout snapshots, display-canvas previews, and restoration for standard macOS application windows
  • manage saved layouts under each display arrangement with rename, apply, delete, and automatic-to-manual promotion actions
  • reorganize display controls, persist the resizable sidebar width, add ignored-app search, and polish portal-list scrolling and layout
  • bump MousePortal to 1.1.0 and update localization, privacy documentation, changelog, and tests

UI

Display arrangements
└─ Current arrangement
   ├─ [Automatic] Before lock  [Apply] [Promote] [Rename] [Delete]
   └─ [Manual] Layout name     [Apply]           [Rename] [Delete]

Behavior

  • the global window-recovery switch is independent from remembering windows before sleep or lock
  • when automatic wake restoration is off, wake performs no display scan, prompt, or window movement
  • automatic snapshots retain runtime window identity when available; matching falls back to document, title, and stable ordering
  • restoration is limited to standard, non-minimized, non-full-screen windows; Split View, Stage Manager groups, and Spaces are not restored

Validation

  • swift test: 146 tests passed
  • swift build -c release: passed
  • git diff --check: passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d41e4fb99

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread MousePortal/Services/WindowLayoutService.swift Outdated
Comment thread MousePortal/Services/WindowLayoutService.swift Outdated
@ai-eks

ai-eks commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e5607bed1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread MousePortal/Services/WindowLayoutEngine.swift
Comment thread MousePortal/Services/WindowLayoutService.swift Outdated
@ai-eks

ai-eks commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7e72f0dd50

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread MousePortal/Services/WindowLayoutService.swift Outdated
Comment thread MousePortal/Services/WindowLayoutService.swift Outdated
@ai-eks

ai-eks commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 82b29d8b81

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread MousePortal/ContentView.swift
@ai-eks

ai-eks commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2e723b0944

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread MousePortal/ContentView.swift
Comment thread MousePortal/Views/SettingsView.swift
@ai-eks

ai-eks commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: dcc00bd413

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ai-eks
ai-eks merged commit bf623dd into main Sep 2, 2026
1 check 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.

1 participant