macOS Memory UI design
The macOS Memory surface edits project-scoped Draft overlays while showing organization authority as read-only context. It cannot bypass Review or publish directly to the organization Ref.
Product boundary
- The tree presents effective Memory for the selected Project.
- A resource opens the authoritative body plus its project-carried Draft overlay.
- Create, rename, update, and delete actions produce Draft proposals.
- Review publishes to the selected Project or Organization owner. Project edits default to Project ownership; Propose Organization Change… creates an explicit Org proposal.
State and synchronization
Project selection controls effective Memory, Drafts, and Review context. A project or session change invalidates stale document work before asynchronous results publish. Desktop and MCP use the same daemon and Draft contract; revision conflicts, offline state, and sync failures remain visible instead of appearing as publication success.
The UI restores a selection only when it remains valid. Loading, conflict, offline, selection, and error states do not rely on color alone, and keyboard navigation remains available.
The tree retains file-type icons and change colors: green for additions, amber for modifications, and red for deletions, including submitted changes until they are merged. Draft records with no remaining operations do not mark files as changed, override published content in open tabs, or enter new Review requests. Their records remain available for history and later edits. Inbox collects Review events, remote shared updates affecting referenced Memory, and sync failures; the global sidebar shows its unread count. Background state no longer adds trailing file-tree badges or a global sync toolbar button.
Documents have no extra Draft, Review, or remote-update status strip. View Review, Review Remote Changes, and Update from Remote Version remain available in the existing document and file menus where applicable. A deletion Draft explains the pending deletion in the document content. Conflict resolution and save failures stay visible at the operation; reading or archiving a notification does not publish, reconcile, or discard content.
File menus use Rename… and Delete…. Their confirmations explain the Draft and publication target. Project publication affects its members; Org publication affects Projects using that Org resource. Remove from Project only removes that project's reference.
Review requests
Directory and multi-selection Review requests include open Drafts with one publication owner. The Project-wide request collects Project Drafts. Org proposals are submitted independently. Every Draft must be synced and have a Server ID; directory operations and document synchronization also block the entry point.
Behind Drafts, including those with conflicts, can open the request sheet. Clean changes reconcile automatically; only real conflicts require choices. Drafts already matching the published version are kept but excluded from the Review. If no changes remain, the sheet explains that there is nothing to review. Conflict resolutions and the resulting Review are submitted together. The entry point does not require freshness to be current.
The request sheet can record selected Project entries for an independent Org contribution after Project merge. The Project Review shows the linked Org PR, or a retryable creation failure. Org rejection never reverses Project publication.
Verified published updates install automatically for unedited files. Pending editor text and Draft baselines remain protected; clean Drafts reconcile automatically and conflicting Drafts notify their authors.
ZIP export
The top toolbar exports all Memory in the current Project or Organization view, independent of the search filter. The file-tree context menu exports a file, multiple selected files, or every descendant of a selected folder, including files hidden by search. Mixed file/folder selections are deduplicated into one ZIP. Memory Actions also exports the open file.
Exports preserve the original relative paths and UTF-8 contents, including local Draft renames, edits, new files, and pending editor text. Deletion Drafts are excluded. The native save dialog chooses the ZIP destination; Finder reveals the completed archive. Export uses the captured workspace view without publishing changes or refreshing it to a newer remote version.
Unloaded bodies go through the existing version/hash-validated reader. Missing bodies, unsafe paths, or file-path collisions fail the export rather than omit files or overwrite a conflicting entry. Loading Draft inventory and active document synchronization block export. Compression runs off the main thread using macOS ditto, and the destination is replaced only after the archive is complete.
This is a file snapshot. The org-admin /api/v1/admin/memory-export JSON endpoint separately exports migration state, including Draft operations, selections, and Bundles.
Implementation boundary
SwiftUI lives under apps/macos/; Draft persistence, synchronization, and authority checks live in the shared daemon and Server contracts. Planned interactions are tracked as gaps, not documented as shipped behavior.
Resolving remote changes
The Memory conflict action opens a separate native window with standard close, minimize, and zoom/full-screen controls. The main workspace remains usable; closing the source tab does not discard the resolution. The window remembers its frame and uses the same conflict choices and result diff as Review details. Remote and Draft conflict sections appear side by side as unified diffs against their common original, with the choice button in each side's header. Each choice updates the merged result without dropping automatically merged changes. Completed choices show the resulting diff, with Reset File Choices in its menu. Path and deletion conflicts require explicit choices; a path collision is explained even when the file bodies are identical. Save to Draft stays disabled until all choices are complete; it does not approve or publish. Cancel, the close button, and Command-W confirm edited input; saving blocks closing. Signing out or quitting also checks these windows before discarding unsaved edits.