Add persistent scratchpads and multi-window session restoration - #5
Open
jeanmonet wants to merge 1 commit into
Open
Add persistent scratchpads and multi-window session restoration#5jeanmonet wants to merge 1 commit into
jeanmonet wants to merge 1 commit into
Conversation
Signed-off-by: jeanmonet <15112920+jeanmonet@users.noreply.github.com>
6 tasks
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.
Summary
⌘Tcreate a scratchpad tab,⌘Ncreate a scratchpad window, and⌘⇧Spromote a scratchpad to a named Markdown filePer-window macOS Space assignment is intentionally not claimed here: AppKit does not expose a supported API for restoring a window to a specific Space.
Verification
make release— passed; production app and CLI built and signatures validatedmake smoke— passed; bundle, CLI, document inspection/comparison, and app-window launch checks passedmake benchmark-matrix— passed all five startup cases locally; worst visible-window p95 was 419.884 ms against the 500 ms limit, and worst target-ready p95 was 1,159.897 ms against the 1,250 ms limitgit diff --cached --check— passed before commitmake test— unavailable in this environment because only Command Line Tools are installed and the XCTest module is missing; focused XCTest coverage was added for scratchpad/session behavior but could not be executed locallyThe startup matrix measured commit
e2aa550on macOS 26.5.2, Apple M1 Pro, with three warm-ups and ten measured direct launches per case. This is a single-machine development run, not a broad performance claim. The reproducible GitHub startup run is awaiting upstream approval for this fork PR; once approved, it will run on the repository's pinned runner and retain the JSON measurements for 90 days.Compatibility and safety
Scratchpads are private ordinary Markdown files under Application Support, use atomic autosave, flush synchronously during normal termination, and are removed after successful promotion or explicit discard. Physical-display placement falls back to a usable on-screen frame if a display is unavailable.
Documentation