mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
Previously, Agent.emit() was called before state was updated (e.g., appendMessage). This meant event handlers saw stale state - when message_end fired, agent.state.messages didn't include the message yet. Now state is updated first, then events are emitted, so handlers see consistent state that matches the event.
9 lines
No EOL
82 B
Text
9 lines
No EOL
82 B
Text
{
|
|
"folders": [
|
|
{
|
|
"name": "pi-mono",
|
|
"path": "."
|
|
}
|
|
],
|
|
"settings": {}
|
|
} |