Skip to content

Conversation

@webcoyote
Copy link

@webcoyote webcoyote commented Sep 27, 2025

I want to detect whether a VM is running with a window or without for ClodPod, a VM sandbox for AI agents, so I added a feature to tart:

  • Added NoGraphics field to the tart get command output
  • Returns false when window is present, true when window not present, and null when VM is not running
  • Includes integration tests to verify the functionality

Glad to make changes; I agonized over whether the field should be NoGraphics: true/false or Graphics: false/true.

NOTE: this is an awkward feature to test because in CI mode (like GitHub actions), the CI environment never creates windows, so I can only test for "--no-graphics" and "not running".

@CLAassistant
Copy link

CLAassistant commented Sep 27, 2025

CLA assistant check
All committers have signed the CLA.

@webcoyote webcoyote force-pushed the get-no-graphics branch 5 times, most recently from d5e3e28 to bc3f1d4 Compare September 28, 2025 18:30
@webcoyote webcoyote marked this pull request as ready for review September 28, 2025 19:40
@edigaryev
Copy link
Collaborator

I want to detect whether a VM is running with a window or without for ClodPod, a VM sandbox for AI agents

Have you considered storing this state in your software instead?

As far as I understand, it is ClodPod that invokes tart run with --no-graphics conditionally in the first place.

Since you also use SQLite, you can just store an additional no_graphics boolean column and set it at the time VM creation to achieve the same result.

@webcoyote
Copy link
Author

That's a reasonable solution, though whatever cached state ClodPod has might not accurately reflect the actual state of the virtual machine.

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.

3 participants