@retasc/cli 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/watchdog.js +9 -0
- package/package.json +1 -1
package/dist/lib/watchdog.js
CHANGED
|
@@ -40,6 +40,15 @@ export function applyObservation(leases, o) {
|
|
|
40
40
|
const id = typeof o.args?.identifier === "string" ? o.args.identifier : undefined;
|
|
41
41
|
if (id && o.toolName === "release_issue")
|
|
42
42
|
leases.delete(id);
|
|
43
|
+
// RTSC-321: moving to `review` (RTSC-257) hands the lease back server-side (the
|
|
44
|
+
// author's work is done, pending a reviewer), so stop heartbeating it — like a
|
|
45
|
+
// release, NOT a terminal close. It must NOT reap: `terminalCloseId` stays
|
|
46
|
+
// done|canceled only, so the branch/worktree survives for the review + PR. (The
|
|
47
|
+
// reviewer's send-back review→todo also releases server-side but is undetectable
|
|
48
|
+
// from args alone — doing→todo does NOT release — so that case self-heals via the
|
|
49
|
+
// failed-heartbeat path instead.)
|
|
50
|
+
if (id && o.toolName === "save_issue" && o.args?.status === "review")
|
|
51
|
+
leases.delete(id);
|
|
43
52
|
const closeId = terminalCloseId(o);
|
|
44
53
|
if (closeId)
|
|
45
54
|
leases.delete(closeId);
|
package/package.json
CHANGED