Repository navigation
Shared core 8.7.1: a cancellation resumes a suspended invocation - #317
Conversation
… invocation restate-sdk-shared-core now points at main at the commit of sdk-shared-core#120, which makes a cancellation resume an invocation that Restate shut down while it waits for a call. The fix is merged but not in a crates.io release yet, so this is a git dependency until the next release. The four server tests that showed the gap lose their expected-failure markers, because they pass. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01RePHkSS8KRKmJ93hcd9asV
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
I reviewed the switch to a git-pinned shared core and the removal of the four xfail markers. I checked the pinned source against the 8.7.0 crate.
- Shared-core pin:
restate-sdk-shared-coreis now a git dependency atb15c972, with the same features.Cargo.lockchanges only that package'ssource.cargo metadata --lockedandcargo check --lockedboth pass, andb15c972is currently identical to sdk-shared-coremain. - What the pin changes: the published 8.7.0 crate matches the old lock checksum. Its
src/differs fromb15c972only inexplicit_recovery. InHitShutdown, the suspension now awaitsCANCEL_SIGNAL_IDunlesscontext.cancelledis set, and the module docs explain why. That is the behavior the un-xfailed tests check: resume on cancel, and no repeated resumes once the attempt knows about the cancellation. - Tests: the
NEEDS_SHARED_COREstrict xfail is removed fromagents_suspended_stop_server.py(1 test) andsessions_suspended_server.py(3 tests). No other references to it remain, and no docs in this repo describe the old gap.
ℹ️ The git pin should not ship in a release
release.yml builds an sdist. While the dependency is a git rev, anyone building from that sdist would fetch shared-core from GitHub instead of crates.io. It would be best to switch back to a crates.io version before the next v* tag.
Technical details
# Git-pinned shared-core in release artifacts
## Affected sites
- Cargo.toml:24-26 — `restate-sdk-shared-core = { git = ..., rev = "b15c972..." }`
- .github/workflows/release.yml:124-137 — `sdist` job
## Required outcome
- Before tagging a release, pin `restate-sdk-shared-core` to a crates.io version that contains sdk-shared-core#120.claude-opus-5-5 | 𝕏
8.7.1 is released with restatedev/sdk-shared-core#120, so the extension takes it as an ordinary version again instead of the git revision of main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RePHkSS8KRKmJ93hcd9asV
There was a problem hiding this comment.
✅ No new issues found. This resolves the earlier note about the git pin.
Reviewed changes
I reviewed the switch from the git pin to the published 8.7.1 crate, and checked that the release contains the same code that was pinned before.
- Shared core
8.7.1from crates.io:Cargo.tomlnow asks forversion = "8.7.1"with the same features. InCargo.lock, only that package's version and checksum change. The.crateI downloaded hashes to the lockeded583844…, andcargo metadata --lockedpasses. - Same code as the pin: the crate's
.cargo_vcs_info.jsonnamesb7765f5f. That commit is one commit ahead of the old pinb15c972, and that commit is the release bump, which changes onlyCargo.toml.diff -rfinds no differences insrc/between the pin and the8.7.1crate. So the test results reported against the pin still hold.
claude-opus-5-5 | 𝕏

restate-sdk-shared-core8.7.1, from crates.io. It is 8.7.0 plus sdk-shared-core#120. The first commit pinned shared-core's main at that commit as a git dependency; the second replaces the pin with the release.What changes for a handler
Cancelling a session object's invocation that Restate shut down while it waits for a call now starts its next attempt, which is given the cancellation. On 8.7.0 it took effect only when the call answered, and never if it did not: an agent's
stopanswered 200 and left a turn that waits on an approval suspended. This was the regression from the journal-replay path that #316 recorded as not fixed.In this PR
Cargo.toml: version 8.7.1, with the same features. InCargo.lockonly that package changes, from crates.io, with its checksum.tests/sessions_suspended_server.py,tests/agents_suspended_stop_server.py). They pass.The TypeScript side is sdk-sessions#42.
Run locally, on 8.7.1
To know
🤖 Generated with Claude Code
https://claude.ai/code/session_01RePHkSS8KRKmJ93hcd9asV