macOS: remove @DeferredProperty usage from TerminalEntity

This fixes an Apple Shortcuts crash for macOS 15 and earlier.
Unfortunately it looks like we can't guard these with `@available`. I'm
going to report an Apple Feedback about this but for now this gets
shortcuts working on macOS 15 and earlier.
This commit is contained in:
Mitchell Hashimoto
2025-07-04 07:30:24 -07:00
parent 887a77fbab
commit d8838cff0b

View File

@ -14,26 +14,6 @@ struct TerminalEntity: AppEntity {
@Property(title: "Kind") @Property(title: "Kind")
var kind: Kind var kind: Kind
@MainActor
@DeferredProperty(title: "Full Contents")
@available(macOS 26.0, *)
var screenContents: String? {
get async {
guard let surfaceView else { return nil }
return surfaceView.cachedScreenContents.get()
}
}
@MainActor
@DeferredProperty(title: "Visible Contents")
@available(macOS 26.0, *)
var visibleContents: String? {
get async {
guard let surfaceView else { return nil }
return surfaceView.cachedVisibleContents.get()
}
}
var screenshot: Image? var screenshot: Image?
static var typeDisplayRepresentation: TypeDisplayRepresentation { static var typeDisplayRepresentation: TypeDisplayRepresentation {