mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
2b0aa5ed8e
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
82 B
Plaintext
9 lines
82 B
Plaintext
{
|
|
"folders": [
|
|
{
|
|
"name": "pi-mono",
|
|
"path": "."
|
|
}
|
|
],
|
|
"settings": {}
|
|
} |