]> git.giacomolli.uk - onechat/commit
Wait until the view has no pending summary
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 13:18:02 +0000 (10:18 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 13:18:02 +0000 (10:18 -0300)
commit4a931bccab5879ab708647b2df8dadc052f128bf
treeb2246152818c49a48c7c3cbc23494e9aef656a92
parenteb05edcf5d575e8a3b1040debfb57423312e8320
Wait until the view has no pending summary

Memory.Settle returns when every line of the chat view is built, so a
subagent that starts gets a view with no pending summary, and the view
holds every message so far. A pending line with no running build belongs
to a failed build, which waits for the next message, so Settle returns
an error in place of a wait that never ends. It also ends with its
context, so an interrupted turn does not wait.

Issue: b1ac698
memory.go
memory_test.go
view.go