@christang/keel 5.167.0 → 5.169.0
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/.claude-plugin/plugin.json +1 -1
- package/assets/bootstrap/AGENTS.md +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/keel/.claude-plugin/plugin.json +1 -1
- package/plugins/keel/.codex-plugin/plugin.json +1 -1
- package/scripts/validate_plugin.py +29 -66
- package/src/core/shift.js +31 -49
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.169.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christang/keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.169.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@christang/keel",
|
|
9
|
-
"version": "5.
|
|
9
|
+
"version": "5.169.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fission-ai/openspec": "^1.4.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.169.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.169.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -51,8 +51,8 @@ REQUIRED_SCRIPTS = [
|
|
|
51
51
|
"scripts/validate_plugin.py",
|
|
52
52
|
]
|
|
53
53
|
|
|
54
|
-
PACKAGE_VERSION = "5.
|
|
55
|
-
PROTOCOL_VERSION = "5.
|
|
54
|
+
PACKAGE_VERSION = "5.169.0"
|
|
55
|
+
PROTOCOL_VERSION = "5.169.0"
|
|
56
56
|
LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
|
|
57
57
|
OPENSPEC_SCHEMA_NAME = "keel-spec-driven"
|
|
58
58
|
# Mirrors KEEL_PACKAGE_NAME in scripts/install_to_repo.py, one of the two
|
|
@@ -8370,29 +8370,24 @@ def validate_shift_cli_self_shift_scenario() -> int:
|
|
|
8370
8370
|
return 1
|
|
8371
8371
|
|
|
8372
8372
|
# Finished: idle, though its state still labels its last message `working` (#393, keel-maint's
|
|
8373
|
-
# ended turn). The waiter
|
|
8374
|
-
write_text(stoplag, "late")
|
|
8373
|
+
# ended turn). The waiter stops it and starts the next, named for its start, with no tick (#399).
|
|
8375
8374
|
agents_row("idle", "working")
|
|
8376
8375
|
if not wait_for(lambda: len(starts()) >= 1):
|
|
8377
8376
|
report(f"{label} the waiter did not hand over without a tick: {acted()!r}")
|
|
8378
8377
|
return 1
|
|
8379
|
-
|
|
8380
|
-
if any(
|
|
8381
|
-
report(f"{label} the
|
|
8378
|
+
order = acted()
|
|
8379
|
+
if any(argv[:2] == ["--bg", "--resume"] for argv in order):
|
|
8380
|
+
report(f"{label} the hand-over woke the old session to rename it: {order!r}")
|
|
8382
8381
|
return 1
|
|
8383
|
-
if
|
|
8384
|
-
report(f"{label} the old session
|
|
8382
|
+
if order[:1] != [["stop", OLD[:8]]] or len(order) != 2:
|
|
8383
|
+
report(f"{label} the old session was not retired as one stop before the new start: {order!r}")
|
|
8385
8384
|
return 1
|
|
8386
|
-
|
|
8387
|
-
order
|
|
8388
|
-
|
|
8389
|
-
if (order[0] != ["stop", OLD[:8]] or order[1][:3] != ["--bg", "--resume", OLD] or len(order[1]) != 4
|
|
8390
|
-
or not shifted.match(order[1][3]) or order[2] != ["stop", OLD[:8]] or order[3][:5] != ["--bg", "-n", "verify", "--permission-mode", "auto"]
|
|
8391
|
-
or len(order) != 4):
|
|
8392
|
-
report(f"{label} the old session was not retired as stop, rename-by-resume, stop, then the new start: {order!r}")
|
|
8385
|
+
named = re.compile(r"^verify · \d{2}-\d{2} \d{2}:\d{2}$")
|
|
8386
|
+
if order[1][:2] != ["--bg", "-n"] or not named.match(order[1][2]) or order[1][3:5] != ["--permission-mode", "auto"]:
|
|
8387
|
+
report(f"{label} the new session is not started as `verify · <MM-DD HH:MM>`: {order[1]!r}")
|
|
8393
8388
|
return 1
|
|
8394
|
-
if "keel shift resume" not in order[
|
|
8395
|
-
report(f"{label} the new session does not start fresh with a keel shift resume prompt: {order[
|
|
8389
|
+
if "keel shift resume" not in order[1][-1] or "--resume" in order[1]:
|
|
8390
|
+
report(f"{label} the new session does not start fresh with a keel shift resume prompt: {order[1]!r}")
|
|
8396
8391
|
return 1
|
|
8397
8392
|
if os.path.realpath(starts()[0]["cwd"]) != os.path.realpath(verify):
|
|
8398
8393
|
report(f"{label} the new session started in {starts()[0]['cwd']}, not verify's worktree.")
|
|
@@ -8402,12 +8397,12 @@ def validate_shift_cli_self_shift_scenario() -> int:
|
|
|
8402
8397
|
report(f"{label} a claude the hand-over ran inherited the old session's {leaked[0]['claude_env']!r}.")
|
|
8403
8398
|
return 1
|
|
8404
8399
|
text = status_text()
|
|
8405
|
-
for needle in ("delivered", "newsess1", f"claude attach {OLD[:8]}",
|
|
8400
|
+
for needle in ("delivered", "newsess1", f"claude attach {OLD[:8]}", order[1][2]):
|
|
8406
8401
|
if needle not in text:
|
|
8407
8402
|
report(f"{label} shift status does not show {needle!r} for the delivered hand-off: {text!r}")
|
|
8408
8403
|
return 1
|
|
8409
8404
|
tick()
|
|
8410
|
-
if len(starts()) != 1 or len(acted()) !=
|
|
8405
|
+
if len(starts()) != 1 or len(acted()) != 2:
|
|
8411
8406
|
report(f"{label} a tick after the hand-over acted again: {acted()!r}")
|
|
8412
8407
|
return 1
|
|
8413
8408
|
|
|
@@ -8431,45 +8426,6 @@ def validate_shift_cli_self_shift_scenario() -> int:
|
|
|
8431
8426
|
report(f"{label} a second tick started another session.")
|
|
8432
8427
|
return 1
|
|
8433
8428
|
|
|
8434
|
-
# A rename that never shows is recorded, and the new session still starts.
|
|
8435
|
-
calls.write_text("")
|
|
8436
|
-
agents_row("idle", "done")
|
|
8437
|
-
write_text(norename, "x")
|
|
8438
|
-
run_keel(verify, "shift", "ready", "--wake", "next: rerun R015", env={**cli_env, "KEEL_SHIFT_HANDOVER_TIMEOUT_MS": "1"})
|
|
8439
|
-
ticked = tick()
|
|
8440
|
-
text = status_text()
|
|
8441
|
-
if len(starts()) != 1:
|
|
8442
|
-
report(f"{label} a rename that did not show stopped the new session from starting: {acted()!r} {ticked.stderr!r}")
|
|
8443
|
-
return 1
|
|
8444
|
-
if "delivered" not in text:
|
|
8445
|
-
report(f"{label} a rename that did not show kept the hand-off from being delivered: {text!r}")
|
|
8446
|
-
return 1
|
|
8447
|
-
if "rename not shown" not in text:
|
|
8448
|
-
report(f"{label} shift status does not say the rename did not show: {text!r}")
|
|
8449
|
-
return 1
|
|
8450
|
-
norename.unlink()
|
|
8451
|
-
|
|
8452
|
-
# A session that never shows as stopped is not resumed for its rename (#395), and the new session still starts.
|
|
8453
|
-
calls.write_text("")
|
|
8454
|
-
agents_row("idle", "done")
|
|
8455
|
-
write_text(stoplag, "never")
|
|
8456
|
-
run_keel(verify, "shift", "ready", "--wake", "next: rerun R016", env={**cli_env, "KEEL_SHIFT_HANDOVER_TIMEOUT_MS": "1"})
|
|
8457
|
-
ticked = run_keel(verify, "tick", "--repo", str(rtl), env={**tick_only, "KEEL_SHIFT_STOP_WAIT_MS": "1000"})
|
|
8458
|
-
text = status_text()
|
|
8459
|
-
if any(argv[:2] == ["--bg", "--resume"] for argv in acted()):
|
|
8460
|
-
report(f"{label} a session that never stopped was resumed for its rename: {acted()!r}")
|
|
8461
|
-
return 1
|
|
8462
|
-
if len(starts()) != 1:
|
|
8463
|
-
report(f"{label} a session that never stopped kept the new session from starting: {acted()!r} {ticked.stderr!r}")
|
|
8464
|
-
return 1
|
|
8465
|
-
if "delivered" not in text:
|
|
8466
|
-
report(f"{label} a session that never stopped kept the hand-off from being delivered: {text!r}")
|
|
8467
|
-
return 1
|
|
8468
|
-
if "rename not shown" not in text:
|
|
8469
|
-
report(f"{label} shift status does not say a session that never stopped was not renamed: {text!r}")
|
|
8470
|
-
return 1
|
|
8471
|
-
stoplag.unlink()
|
|
8472
|
-
|
|
8473
8429
|
# A start that fails stays visible and is a patrol risk.
|
|
8474
8430
|
calls.write_text("")
|
|
8475
8431
|
agents_row("idle", "done")
|
|
@@ -8498,8 +8454,9 @@ def validate_shift_cli_keeps_old_sessions_scenario() -> int:
|
|
|
8498
8454
|
After a delivered hand-over, the newest `shift: keep_old_sessions:`
|
|
8499
8455
|
(default 3) stopped background sessions in the role's bound worktrees stay
|
|
8500
8456
|
listed; each older one is removed with `claude rm` once Keel's store holds
|
|
8501
|
-
a copy of its transcript.
|
|
8502
|
-
|
|
8457
|
+
a copy of its transcript. Only a session with a transcript, the host's or
|
|
8458
|
+
Keel's copy, counts (#401): one whose transcript is nowhere takes no slot and
|
|
8459
|
+
stays, and so do another role's sessions and the new one.
|
|
8503
8460
|
"""
|
|
8504
8461
|
label = "shift-cli-keeps-old-sessions:"
|
|
8505
8462
|
OLD = "5b14fbae-b6aa-40b6-a72a-b3f89d2c6eea"
|
|
@@ -8573,22 +8530,28 @@ def validate_shift_cli_keeps_old_sessions_scenario() -> int:
|
|
|
8573
8530
|
def removed() -> list[dict]:
|
|
8574
8531
|
return [json.loads(line) for line in calls.read_text().splitlines() if json.loads(line)["argv"][:1] == ["rm"]]
|
|
8575
8532
|
|
|
8576
|
-
|
|
8577
|
-
|
|
8533
|
+
# #401: a session never given a prompt has no transcript and is not a shift, so it takes no kept slot even
|
|
8534
|
+
# when it is newer than the others; one whose host transcript is gone but Keel holds a copy still counts.
|
|
8535
|
+
copy_only = old_row(1, bound["verify"], with_transcript=False)
|
|
8536
|
+
kept_dir.mkdir(parents=True, exist_ok=True)
|
|
8537
|
+
(kept_dir / f"{copy_only['sessionId']}.jsonl.gz").write_bytes(gzip.compress(b'{"type": "user"}\n'))
|
|
8538
|
+
olds = [copy_only, old_row(2, bound["verify"]), old_row(3, bound["verify"]), old_row(4, bound["verify"]),
|
|
8539
|
+
old_row(6, bound["verify"], with_transcript=False), old_row(5, bound["rtl"])]
|
|
8578
8540
|
setup("2", olds)
|
|
8579
8541
|
gone = removed()
|
|
8580
8542
|
if not gone:
|
|
8581
8543
|
report(f"{label} the hand-over removed no old session: {calls.read_text()!r}")
|
|
8582
8544
|
return 1
|
|
8583
8545
|
ids = sorted(r["argv"][1] for r in gone)
|
|
8584
|
-
if ids != ["01010101", "02020202"]:
|
|
8585
|
-
report(f"{label} with keep_old_sessions 2 the removed sessions are {ids!r},
|
|
8546
|
+
if ids != ["01010101", "02020202", "03030303"]:
|
|
8547
|
+
report(f"{label} with keep_old_sessions 2 the removed sessions are {ids!r}, "
|
|
8548
|
+
"not the oldest beyond the two newest with a transcript.")
|
|
8586
8549
|
return 1
|
|
8587
8550
|
if not all(r["kept"] for r in gone):
|
|
8588
8551
|
report(f"{label} a session was removed before Keel's store held its transcript: {gone!r}")
|
|
8589
8552
|
return 1
|
|
8590
8553
|
left = {row["id"] for row in json.loads(agents.read_text())}
|
|
8591
|
-
for keep_id, why in (("
|
|
8554
|
+
for keep_id, why in (("06060606", "the session with no transcript"), ("05050505", "rtl's session"),
|
|
8592
8555
|
("newsess1", "the new session"), (OLD[:8], "the shift just handed over"), ("04040404", "the second newest old session")):
|
|
8593
8556
|
if keep_id not in left:
|
|
8594
8557
|
report(f"{label} {why} ({keep_id}) was removed: {sorted(left)!r}")
|
package/src/core/shift.js
CHANGED
|
@@ -523,43 +523,18 @@ function listAgents(claude) {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
// Stop the old session
|
|
527
|
-
//
|
|
528
|
-
//
|
|
529
|
-
//
|
|
530
|
-
// running starts a copy of it (#395). The row loses its status before the process
|
|
531
|
-
// exits too (0.83 s against 2.68 s, measured), so the resume waits for the process
|
|
532
|
-
// the row showed before the stop (#397 D1); a row with no pid was already stopped.
|
|
526
|
+
// Stop the old session; `claude stop` keeps its conversation. It is not resumed:
|
|
527
|
+
// renaming it took a resume, and a session running with Remote Control writes
|
|
528
|
+
// its claude.ai title back over a rename (#399 F1, F2). The new session carries
|
|
529
|
+
// a name of its own instead.
|
|
533
530
|
function retire(claude, entry, row) {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
const listed = pid ? null : listAgents(claude);
|
|
542
|
-
const now = listed && listed.find((item) => item && item.sessionId === entry.session);
|
|
543
|
-
if (pid ? !alive(pid) : listed && (!now || !now.status)) break;
|
|
544
|
-
if (Date.now() >= stopBy) {
|
|
545
|
-
spawnSync(claude, ["stop", id], { encoding: "utf8" });
|
|
546
|
-
return null;
|
|
547
|
-
}
|
|
548
|
-
Atomics.wait(pause, 0, 0, 500);
|
|
549
|
-
}
|
|
550
|
-
const stamp = store.isoLocal(new Date()).slice(0, 16).replace("T", " ");
|
|
551
|
-
const name = `${entry.role} · shifted ${stamp}`;
|
|
552
|
-
spawnSync(claude, ["--bg", "--resume", entry.session, `/rename ${name}`], { encoding: "utf8", cwd: row.cwd || entry.worktree });
|
|
553
|
-
const deadline = Date.now() + envMs("KEEL_SHIFT_RENAME_WAIT_MS", 30000);
|
|
554
|
-
let shown = false;
|
|
555
|
-
for (;;) {
|
|
556
|
-
const now = (listAgents(claude) || []).find((item) => item && item.sessionId === entry.session);
|
|
557
|
-
shown = Boolean(now && now.name === name);
|
|
558
|
-
if (shown || Date.now() >= deadline) break;
|
|
559
|
-
Atomics.wait(pause, 0, 0, 500);
|
|
560
|
-
}
|
|
561
|
-
spawnSync(claude, ["stop", id], { encoding: "utf8" });
|
|
562
|
-
return shown ? name : null;
|
|
531
|
+
if (row.state !== "stopped") spawnSync(claude, ["stop", row.id || entry.session.slice(0, 8)], { encoding: "utf8" });
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// The new session's name: the role and its local start time (#399 D1), which
|
|
535
|
+
// reaches claude.ai at creation, so each shift has a name of its own.
|
|
536
|
+
function sessionName(role, now = new Date()) {
|
|
537
|
+
return `${role} · ${store.isoLocal(now).slice(5, 16).replace("T", " ")}`;
|
|
563
538
|
}
|
|
564
539
|
|
|
565
540
|
// The host's transcript of a session in `cwd`, under either spelling of the path.
|
|
@@ -588,21 +563,26 @@ function keptCopyOf(where, role, transcript) {
|
|
|
588
563
|
|
|
589
564
|
// After a delivered hand-over, the newest `keep` stopped background sessions in
|
|
590
565
|
// the role's bound worktrees stay listed; each older one is removed with
|
|
591
|
-
// `claude rm` once Keel's store holds its transcript
|
|
592
|
-
//
|
|
566
|
+
// `claude rm` once Keel's store holds its transcript (#397 D2). `claude rm`
|
|
567
|
+
// leaves the host's transcript (F4). Only a session with a transcript, the
|
|
568
|
+
// host's or Keel's copy, is a shift: one never given a prompt has neither, so
|
|
569
|
+
// it takes no slot and stays (#401).
|
|
593
570
|
function removeOldSessions(claude, where, entry, keep) {
|
|
594
571
|
const bound = new Set(Object.entries(store.readJsonFile(path.join(where.root, "roles.json")))
|
|
595
572
|
.filter(([, name]) => name === entry.role).map(([worktree]) => realpath(worktree)));
|
|
596
573
|
const listed = listAgents(claude);
|
|
597
574
|
if (!listed) return [];
|
|
575
|
+
const { keptFile } = require("./chat/notice");
|
|
598
576
|
const old = listed
|
|
599
577
|
.filter((row) => row && row.kind === "background" && !row.status && row.cwd && bound.has(realpath(row.cwd))
|
|
600
578
|
&& row.sessionId && row.id !== entry.new_session)
|
|
601
|
-
.
|
|
579
|
+
.map((row) => ({ row, transcript: hostTranscript(row.cwd, row.sessionId),
|
|
580
|
+
kept: keptFile(where, entry.role, `${row.sessionId}.jsonl`) }))
|
|
581
|
+
.filter(({ transcript, kept }) => transcript || fs.existsSync(kept))
|
|
582
|
+
.sort((a, b) => (Number(b.row.startedAt) || 0) - (Number(a.row.startedAt) || 0));
|
|
602
583
|
const removed = [];
|
|
603
|
-
for (const row of old.slice(keep)) {
|
|
604
|
-
|
|
605
|
-
if (!transcript || !keptCopyOf(where, entry.role, transcript)) continue;
|
|
584
|
+
for (const { row, transcript } of old.slice(keep)) {
|
|
585
|
+
if (transcript && !keptCopyOf(where, entry.role, transcript)) continue;
|
|
606
586
|
const gone = spawnSync(claude, ["rm", row.id || row.sessionId.slice(0, 8)], { encoding: "utf8" });
|
|
607
587
|
if (!gone.error && gone.status === 0) removed.push(row.id || row.sessionId.slice(0, 8));
|
|
608
588
|
}
|
|
@@ -656,16 +636,17 @@ function handOver(where, only = null) {
|
|
|
656
636
|
if (!finished(row)) return null;
|
|
657
637
|
// `stop`, `attach` and `logs` take the 8-character job id, not the full
|
|
658
638
|
// session id (`No job matching`, measured 2026-10-19).
|
|
659
|
-
if (row)
|
|
639
|
+
if (row) retire(claude, entry, row);
|
|
660
640
|
const declared = readShiftDeclaration(entry.worktree);
|
|
661
641
|
const mode = declared.permissionMode;
|
|
662
|
-
const
|
|
642
|
+
const name = sessionName(entry.role);
|
|
643
|
+
const started = spawnSync(claude, ["--bg", "-n", name, "--permission-mode", mode, SHIFT_START_TEXT(entry.role)], {
|
|
663
644
|
cwd: entry.worktree, encoding: "utf8",
|
|
664
645
|
});
|
|
665
646
|
const output = `${started.stdout || ""}`;
|
|
666
647
|
if (!started.error && started.status === 0) {
|
|
667
648
|
const id = (output.match(/backgrounded\s*·\s*(\S+)/) || [])[1] || null;
|
|
668
|
-
Object.assign(entry, { state: "delivered", delivered_at: store.isoLocal(new Date()), new_session: id });
|
|
649
|
+
Object.assign(entry, { state: "delivered", delivered_at: store.isoLocal(new Date()), new_session: id, new_name: name });
|
|
669
650
|
entry.removed = removeOldSessions(claude, where, entry, declared.keepOldSessions);
|
|
670
651
|
if (declared.message) entry.notice = declared.message;
|
|
671
652
|
} else {
|
|
@@ -707,9 +688,10 @@ function waitForHandOver(where, role) {
|
|
|
707
688
|
|
|
708
689
|
function describeHandOff(entry) {
|
|
709
690
|
const tail = entry.state === "delivered"
|
|
710
|
-
? `delivered ${entry.delivered_at} as session ${entry.new_session || "(id not printed)"}`
|
|
691
|
+
? `delivered ${entry.delivered_at} as session ${entry.new_session || "(id not printed)"}${entry.new_name ? ` "${entry.new_name}"` : ""}`
|
|
711
692
|
: entry.state === "failed" ? `failed ${entry.failed_at}: ${entry.error}` : "pending: waits for the session to go idle";
|
|
712
|
-
|
|
693
|
+
// An entry from before #399 recorded whether the old session's rename showed.
|
|
694
|
+
const renamed = entry.state === "delivered" && "renamed" in entry ? (entry.renamed ? `; old session renamed "${entry.renamed}"` : "; rename not shown") : "";
|
|
713
695
|
const removed = (entry.removed || []).length ? `; older sessions removed from \`claude agents\` (transcripts kept by Keel): ${entry.removed.join(", ")}` : "";
|
|
714
696
|
const notice = entry.notice ? `; ${entry.notice}` : "";
|
|
715
697
|
const own = entry.session.slice(0, 8);
|
|
@@ -1223,8 +1205,8 @@ const CLEAR_HINT = [
|
|
|
1223
1205
|
function clearHint(result) {
|
|
1224
1206
|
if (result.queued) {
|
|
1225
1207
|
return "This is a Claude Code CLI session, which cannot clear itself (#357). End your turn now: once this session has finished, "
|
|
1226
|
-
+ `a waiter stops it
|
|
1227
|
-
+ `in ${result.worktree} that runs \`keel shift resume\`; \`keel tick\` does the same if the waiter is gone. \`keel shift status\` shows the hand-off.`;
|
|
1208
|
+
+ `a waiter stops it — its conversation is kept, \`claude attach ${result.cli.session.slice(0, 8)}\` reopens it — and starts a new session `
|
|
1209
|
+
+ `named for its start, \`${result.role} · <MM-DD HH:MM>\`, in ${result.worktree} that runs \`keel shift resume\`; \`keel tick\` does the same if the waiter is gone. \`keel shift status\` shows the hand-off.`;
|
|
1228
1210
|
}
|
|
1229
1211
|
let last;
|
|
1230
1212
|
if (!result.role) last = `Without a chat role nothing wakes the new session; ${result.startedBy} — tell it to run \`keel shift resume\`.`;
|