ChatMessageCapture

Thread-safe singleton that captures chat messages injected via the mixin.

The MCP command executor starts/stops capturing around command execution, then polls for resulting server feedback messages.

Functions

Link copied to clipboard
fun captureMessage(message: String)

Called from the mixin when a chat message is added to the HUD.

Link copied to clipboard

Begins capturing messages. Clears any stale messages from the queue.

Link copied to clipboard

Stops capturing messages.

Link copied to clipboard
fun waitForMessage(timeoutMs: Long): String?

Blocks up to timeoutMs for a message, returns null if none arrives.