Skip to content

fix(desktop): honor rendered screenshot clipboard source - #2185

Merged
richiemcilroy merged 1 commit into
CapSoftware:mainfrom
Alx8g:fix/render-styled-screenshot-clipboard
Sep 2, 2026
Merged

fix(desktop): honor rendered screenshot clipboard source#2185
richiemcilroy merged 1 commit into
CapSoftware:mainfrom
Alx8g:fix/render-styled-screenshot-clipboard

Conversation

@Alx8g

@Alx8g Alx8g commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Rendered screenshot clipboard automations now use Cap's project renderer instead of silently copying the original capture.

When a screenshot trigger selects Edited / rendered, the desktop host renders its Cap project after earlier actions, so an Apply preset action is reflected in the clipboard result. Raw copies and explicit output files keep their existing behavior.

One-off project exports now load the source and configuration without starting an unused preview WebSocket and continuous preview renderer. Editor windows and editor prewarming keep the existing preview path.

Three focused source-selection tests cover raw copies, rendered projects and explicit output precedence. Rust formatting and diff checks pass. Local desktop test execution is blocked before reaching this crate because the shell cannot expose the installed Windows SDK headers to Clang while generating FFmpeg bindings. No native clipboard acceptance run was performed for this branch; CI remains the compile and test gate.

Greptile Summary

Rendered screenshot clipboard actions now render the associated Cap project, while raw copies and explicit output files preserve their existing source-selection behavior.

  • Adds explicit clipboard image-source resolution with focused unit tests.
  • Adds an export-only screenshot editor initialization path that avoids starting preview infrastructure.
  • Routes rendered screenshot clipboard data through the existing project PNG renderer.

Confidence Score: 5/5

The PR appears safe to merge with no actionable correctness or security issues identified.

The rendered clipboard path receives PNG-encoded project output, and the export-only editor instance retains all state consumed by the renderer while omitting only unused preview infrastructure.

Important Files Changed

Filename Overview
apps/desktop/src-tauri/src/automation.rs Selects raw, explicit-output, or project-rendered clipboard sources and decodes rendered PNG bytes using the established clipboard path.
apps/desktop/src-tauri/src/screenshot_editor.rs Adds a non-preview standalone instance mode while retaining every source, configuration, and dimension field consumed by one-off exports.

Reviews (1): Last reviewed commit: "fix(desktop): honor rendered screenshot ..." | Re-trigger Greptile

@Alx8g
Alx8g marked this pull request as ready for review September 2, 2026 02:08
@superagent-security

Copy link
Copy Markdown

🚨 Contributor flagged. Click here for more info: Superagent Dashboard

@richiemcilroy
richiemcilroy merged commit 7b752f5 into CapSoftware:main Sep 2, 2026
5 of 7 checks passed
@richiemcilroy

Copy link
Copy Markdown
Member

Thanks for the pr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants