small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

fix(acp): answer a compaction once when the session is lost under it

Marking a session lost answers its running compaction with the failure and leaves the activity finishing until that answer is written. If the compaction call returned, or the editor cancelled, before the write, completeCompact and cancel answered the same JSON-RPC request again: the editor saw two responses to one request. Both now leave a finishing compaction to its write. Found by the generated session-state histories.


Author aly.codes
Date Commit Parent 7753e1d6
+34 -2
2 changed files
+34 -2
2 changed files