fix: use pointer to dispatcher state in process callback for real-time access

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-04 22:25:33 +00:00
parent 4eed81ae06
commit d4ba1589ff
4 changed files with 18 additions and 5 deletions

View File

@@ -117,6 +117,10 @@ void dispatcher_get_state(AppState *out) {
pthread_mutex_unlock(&dispatcher.state_mutex);
}
AppState* dispatcher_get_state_ptr(void) {
return &dispatcher.state;
}
// ============================================================
// Reducer implementation
// ============================================================