I’ve written an own kit agent that handles spawning new kit processes when required. My agent uses output redirection to read the console output from kit.exe and waits for the “app started” line.
The problem is that my agent does not get informed because a c++ app uses a buffer for stout and only when this buffer is full its content is written to the console stream. The result is, that my agent cannot read the output until the buffer is full.
Would it be possible to flush the buffer every time a message is written to the console? Or even after the “app started” line?
Another solution would be an event that is raised when the startup phase is completed, that my kit extension could fetch. In this case my extension could inform the agent about the completion of the startup phase… if this would be possible could someone share a snippet how to implement this in a kit extension?