Context
The architecture & security review (Section 5 - State Management) flagged a medium-severity concern:
Surface cache orphaning: If the projects array is modified without notification, orphaned Ghostty surfaces remain cached in memory. Currently mitigated through notification-based cleanup in ContentView, but direct mutation could bypass this.
Suggested action
Add a cleanup listener on project removal that explicitly evicts cached surfaces for deleted workstreams, rather than relying solely on NotificationCenter-based cleanup.
Context
The architecture & security review (Section 5 - State Management) flagged a medium-severity concern:
Surface cache orphaning: If the projects array is modified without notification, orphaned Ghostty surfaces remain cached in memory. Currently mitigated through notification-based cleanup in ContentView, but direct mutation could bypass this.
Suggested action
Add a cleanup listener on project removal that explicitly evicts cached surfaces for deleted workstreams, rather than relying solely on NotificationCenter-based cleanup.