Repository navigation
detached-transport test: the mid-drain kill case settles on its drain, not on a recycle race - #768
Merged
Merged
Conversation
… ask, so it settles on the drain, not on a recycle race The fake had no host.handover handler, so the take-back's ask failed and main recycled the link; a kill landing between the recycle's close and its reconnect was read as no exit at all (restarts 0, the CI flake at :668). The fake now defers as a real host with a call in flight does, and the kill waits for that answer. Sminos-Session: master-landing-architect#37052769 (MAWS on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…e is replaced uncounted (docs only) Sminos-Session: master-landing-architect#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 19, 2026
…e and DL163, #782 stopped rows, #779, #763, #765, #768) Conflicts, each kept both sides: - src/renderer/src/shell/DocumentSessionSpace.tsx: U10b's bar room (useBarRoom, --float-bar-room on the root) and ticket 760's measure on [requested, enabled] with data-document-session-width; the root carries both the attribute and the style. - src/renderer/src/shell/DocumentSessionSpace.test.tsx: U10b's bar-room case, then ticket 760's column-in-the-floating-render case. - docs/tech-debt-tracker.md: the union's rows, then master's two of 2026-11-19 (master's removal of the anchoring row kept). The wire is unchanged on master: WIRE_MINOR stays 57. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the flake at
src/shared/host/detached-transport.test.ts:668(expected +0 to be 1, twice on CI, green on re-run): the case "a host killed mid-drain, after it said draining and before its rows detached, is a crash" from #683 (#473).Cause (the test's). The fake supervisor in that case had no
host.handoverhandler. When it saiddraining, main took it back into the handover and asked it to hand over; the ask failed ("no handler for host.handover") and main recycled the link. So the case never ran the drain path it names. The kill then raced the recycle:restartsstays 0, the failure seen on CI.Reproduced locally by killing the fake at the moment main logs
recycling the connection: same assertion,restarts: 0, no "exited unexpectedly".Fix. The fake answers the ask as a real engine host with a call in flight does (
deferred,inFlight: 1,artifact_list), and the kill waits for that answer. The close is then the handover's (replace) on a link that carried the host's events, which counts a death the exit cannot show as clean. That is the #473 path. A run where the kill lands before the answer also counts (checked with a delayed answer).Checks. The file locally: 104/104; the case 5/5 on repeat. Class 1a on Linux (
scripts/ci-gate.sh --gates static,unit,probes): run 44434627607, all green.Not changed (noted). A recycle that follows a failed handover ask (a host that never answers it) relaunches without judging the exit, so a host that dies inside that window restarts uncounted. Real hosts answer the ask, so #473's scenario never reaches this path; it is a separate, narrow gap.
Sminos-Session: master-landing-architect#37052769 (MAWS on macbook)