feat: event-stream event for when a screenshot is taken (#2565)

* feat: event-stream event for when a screenshot is taken

* ScreenshotTaken --> ScreenshotCaptured

* review comments

* fix: screenshot completion event path serializatation

* fixes

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
This commit is contained in:
Kainoa Kanter
2025-10-25 23:33:49 -07:00
committed by GitHub
parent 4310c20c32
commit e6f3c538da
5 changed files with 48 additions and 4 deletions
+8
View File
@@ -1483,6 +1483,14 @@ pub enum Event {
/// For example, the config file couldn't be parsed.
failed: bool,
},
/// A screenshot was captured.
ScreenshotCaptured {
/// The file path where the screenshot was saved, if it was written to disk.
///
/// If `None`, the screenshot was either only copied to the clipboard, or the path couldn't
/// be converted to a `String` (e.g. contained invalid UTF-8 bytes).
path: Option<String>,
},
}
impl FromStr for WorkspaceReferenceArg {