feat: abandonAll, explicitly, instead of replacing a session on start

Ending a session breaks every reference and pending answer that lives
only in it, so it takes its own update method rather than happening as
a side effect of start. A second start traps again; the clients take
--abandon-all to end the session a previous run left open.

Generated-by: Claude Code (claude-opus-5-5)
This commit is contained in:
dckc committed 2026-11-18 06:43:15 -06:00
1 parent 9db91b1b9c
commit 6c437ec2f1
9 files changed
+73 -26

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void {
}),
});
canister.entry = .disabled;
canister.root_module.export_symbol_names = &.{ "canister_init", "canister_post_upgrade", "canister_update start", "canister_update deliver" };
canister.root_module.export_symbol_names = &.{ "canister_init", "canister_post_upgrade", "canister_update start", "canister_update deliver", "canister_update abandonAll" };
const canister_step = b.step("canister", "Build the canister to zig-out/bin/counter.wasm");
canister_step.dependOn(&b.addInstallArtifact(canister, .{}).step);