You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(daemon): merge blockingError to state, not explain, the save-script exclusion
Following up on the comment-trimming pass already on this branch: the
device-claim condition (!platformCloseError && !cleanupAggregate) and
the two-line throw sequence right below it both needed a paragraph
explaining why saveScriptError is excluded from one but not the other.
Merge platformCloseError and cleanupAggregate into a single named
blockingError — its name now states the exclusion the comment used to
argue for, and the throw sequence collapses from two ifs to one.
Trimmed the remaining long docblocks in this file the same way: state
what's non-obvious in 1-3 lines instead of re-deriving it in prose.
// #1391 P2: the handler-level test (`session-device-claims.test.ts`) proves
173
-
// `toOrdinaryCloseSaveScriptFailure` builds the right `AppError`, but calls
174
-
// `handleCloseCommand` directly — it never exercises `normalizeError`/
175
-
// `enrichDaemonError`'s own hoisting of `details.retriable` to the TOP-level
176
-
// wire field, the same layer BLOCKER 2's test above exists to catch a
177
-
// regression in. Exercised through the REAL router boundary so a regression
178
-
// in either layer is caught, unlike the direct-call test.
172
+
// Unlike the handler-level test in session-device-claims.test.ts, this goes
173
+
// through the real router boundary, so it also covers normalizeError's
174
+
// details.retriable hoisting.
179
175
test('#1391: an ordinary close-time script-save failure surfaces details.reason/path and retriable:false through the router, and the session is torn down',async()=>{
0 commit comments