Skip to content

Capture application screenshot when copying Unity console context - #22

Merged
dudetru25 merged 1 commit into
mainfrom
agent/copy-console-application-screenshot
Aug 13, 2026
Merged

Capture application screenshot when copying Unity console context#22
dudetru25 merged 1 commit into
mainfrom
agent/copy-console-application-screenshot

Conversation

@dudetru25

@dudetru25 dudetru25 commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • capture the current Camera.main application view when the Unity toolbar copy button is clicked
  • write the PNG to the stable Unity temp path unity-cursor-toolkit-application.png, replacing the prior image on every successful click
  • append the absolute screenshot path to the copied profiler and console context
  • preserve the existing clipboard output when no main camera exists or capture fails
  • restore camera/render state and release temporary textures in all cases

User impact

The copied diagnostics now tell an agent where to load the screenshot that matches the current Unity application state. Repeated clicks reuse one temp path, so stale captures do not accumulate.

Validation

  • npm run validate
  • 206 tests passed across runtime, simplified-context, and remote-shell suites
  • vendor integrity passed
  • npm audit reported 0 vulnerabilities
  • independent read-only review found no functional issues

Limits

The screenshot is the application/game camera view from Camera.main. It does not capture the full desktop or Unity Editor chrome.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@dudetru25
dudetru25 merged commit d729077 into main Aug 13, 2026
8 checks passed
@dudetru25
dudetru25 deleted the agent/copy-console-application-screenshot branch August 13, 2026 15:06
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.

1 participant