@christang/keel 5.133.0 → 5.135.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/README.md CHANGED
@@ -236,16 +236,15 @@ refused too. Declaring it turns the push check on by itself, and a bare `push` b
236
236
  refused.
237
237
 
238
238
  `shift-restore` (#319) covers the two things a session started by a shift change on the Claude
239
- desktop app must do right after `keel shift resume`: turn its own Remote Control back on, and rename
240
- itself back to its working title. A clear there keeps neither. Without the declaration, the woken
239
+ desktop app must do right after `keel shift resume`: turn its own Remote Control back on if it came
240
+ back off, and rename itself back to its working title. A clear there keeps no title. Without the declaration, the woken
241
241
  session reads that restore as another session's request and stops to ask you. It reaches only that
242
242
  session, so it takes no scope, and it covers no other session, no clear or archive, and no repository
243
243
  action.
244
244
 
245
- `self-shift` (#319) is its outgoing counterpart: the four steps `keel shift ready --wake` prints on
246
- the desktop app once the note is stored — turn the session's own Remote Control off and wait, create
247
- the one-shot wake task (which unarchives the session first if needed, #326), rename the session,
248
- clear it. It does not
245
+ `self-shift` (#319) is its outgoing counterpart: the three steps `keel shift ready --wake` prints on
246
+ the desktop app once the note is stored — create the one-shot wake task (which unarchives the
247
+ session first if needed, #326), rename the session, clear it. Remote Control stays on (#324). It does not
249
248
  decide that a shift happens; that stays with the task-boundary rule and the coordinator. It takes no
250
249
  scope.
251
250
 
@@ -1,4 +1,4 @@
1
- <!-- keel:start version=5.133.0 -->
1
+ <!-- keel:start version=5.135.0 -->
2
2
  ## Keel Bootstrap
3
3
 
4
4
  - Start every session with `keel context`; OpenSpec artifacts and Git are the only durable authority — never native memory, goals, or transcripts.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@christang/keel",
3
- "version": "5.133.0",
3
+ "version": "5.135.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@christang/keel",
9
- "version": "5.133.0",
9
+ "version": "5.135.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@fission-ai/openspec": "^1.4.1"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@christang/keel",
3
3
  "displayName": "Keel",
4
4
  "description": "Keel OpenSpec execution discipline CLI for Claude Code, Codex, and OpenCode.",
5
- "version": "5.133.0",
5
+ "version": "5.135.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.133.0",
3
+ "version": "5.135.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.133.0",
3
+ "version": "5.135.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",
@@ -47,8 +47,8 @@ REQUIRED_SCRIPTS = [
47
47
  "scripts/validate_plugin.py",
48
48
  ]
49
49
 
50
- PACKAGE_VERSION = "5.133.0"
51
- PROTOCOL_VERSION = "5.133.0"
50
+ PACKAGE_VERSION = "5.135.0"
51
+ PROTOCOL_VERSION = "5.135.0"
52
52
  LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
53
53
  OPENSPEC_SCHEMA_NAME = "keel-spec-driven"
54
54
  # Mirrors KEEL_PACKAGE_NAME in scripts/install_to_repo.py, one of the two
@@ -6789,7 +6789,7 @@ def validate_shift_change_scenario() -> int:
6789
6789
 
6790
6790
 
6791
6791
  def validate_self_shift_authorization_scenario() -> int:
6792
- """Issue #319: `self-shift` lets a desktop session take its own four steps.
6792
+ """Issue #319: `self-shift` lets a desktop session take its own three steps.
6793
6793
 
6794
6794
  The name is read and listed by `--doctor`, a scoped form is refused, and a
6795
6795
  desktop `keel shift ready --wake` says the steps are standing-authorized
@@ -6816,9 +6816,9 @@ def validate_self_shift_authorization_scenario() -> int:
6816
6816
  if "Standing-authorized by `self-shift`" not in granted.stdout:
6817
6817
  report(f"{label} a desktop ready --wake with self-shift declared does not say the steps are standing-authorized: {granted.stdout.strip()} {granted.stderr.strip()}")
6818
6818
  return 1
6819
- # Four again once the PR-dismiss step went (#326).
6820
- if "take these four steps now" not in granted.stdout:
6821
- report(f"{label} a desktop ready --wake with self-shift declared does not cover four steps: {granted.stdout.strip()}")
6819
+ # Three once the Remote Control step went (#324).
6820
+ if "take these three steps now" not in granted.stdout:
6821
+ report(f"{label} a desktop ready --wake with self-shift declared does not cover three steps: {granted.stdout.strip()}")
6822
6822
  return 1
6823
6823
  run_keel(verify, "shift", "resume", env=desktop)
6824
6824
 
@@ -6909,6 +6909,52 @@ def validate_shift_restore_authorization_scenario() -> int:
6909
6909
  return 0
6910
6910
 
6911
6911
 
6912
+ def validate_shift_desktop_wake_overdue_scenario() -> int:
6913
+ """`keel shift status` flags a desktop note whose wake is overdue.
6914
+
6915
+ A wake task that never runs leaves no trace anywhere else; the waiting
6916
+ note with its recorded desktop session is the one place a coordinator or
6917
+ patrol can see it (D2 of shift-desktop-wake-confirm).
6918
+ """
6919
+ label = "shift-desktop-wake-overdue:"
6920
+ with tempfile.TemporaryDirectory(prefix="keel-shift-overdue-") as raw:
6921
+ base = Path(raw)
6922
+ _rtl, verify, env, _ = shift_scratch(base)
6923
+ env = {**env, "KEEL_SHIFT_WAKE_TIMEOUT_MS": "2000"}
6924
+ desktop = {**env, "CLAUDE_CODE_ENTRYPOINT": "claude-desktop", "CLAUDE_CODE_HOST_SESSION_ID": "local_test-319"}
6925
+ armed = run_keel(verify, "shift", "ready", "--wake", "verify note: next is R021", env=desktop)
6926
+ if armed.returncode != 0:
6927
+ report(f"{label} ready --wake on the desktop app failed: {armed.stderr.strip()}")
6928
+ return 1
6929
+ young = run_keel(verify, "shift", "status", env={**env, "KEEL_SHIFT_WAKE_OVERDUE_MS": "3600000"})
6930
+ if "overdue" in young.stdout:
6931
+ report(f"{label} a note written just now is already called overdue: {young.stdout.strip()}")
6932
+ return 1
6933
+ late = run_keel(verify, "shift", "status", env={**env, "KEEL_SHIFT_WAKE_OVERDUE_MS": "0"})
6934
+ for needle in ("overdue", "local_test-319", "list_task_runs", "send_message"):
6935
+ if needle not in late.stdout:
6936
+ report(f"{label} status past the overdue time does not name {needle}: {late.stdout.strip()}")
6937
+ return 1
6938
+ run_keel(verify, "shift", "resume", env=env)
6939
+ plain = run_keel(verify, "shift", "ready", "--wake", "verify note: next is R022", env=env)
6940
+ if plain.returncode != 0:
6941
+ report(f"{label} ready --wake outside the desktop app failed: {plain.stderr.strip()}")
6942
+ return 1
6943
+ other = run_keel(verify, "shift", "status", env={**env, "KEEL_SHIFT_WAKE_OVERDUE_MS": "0"})
6944
+ if "overdue" in other.stdout:
6945
+ report(f"{label} a note with no desktop session is called overdue: {other.stdout.strip()}")
6946
+ return 1
6947
+ for relative, word in (("docs/shift-change.md", "overdue"), ("docs/shift-change.zh-CN.md", "超时")):
6948
+ if word not in (ROOT / relative).read_text(encoding="utf-8"):
6949
+ report(f"{label} {relative} does not say {word}.")
6950
+ return 1
6951
+ if "shift-desktop-wake-overdue" not in {name for name, _ in SCENARIOS}:
6952
+ report(f"{label} scenario is not registered.")
6953
+ return 1
6954
+ report("shift-desktop-wake-overdue scenario passed.")
6955
+ return 0
6956
+
6957
+
6912
6958
  def validate_shift_desktop_wake_scenario() -> int:
6913
6959
  """Issue #319: on the desktop app a clear starts no session until a prompt.
6914
6960
 
@@ -6932,16 +6978,25 @@ def validate_shift_desktop_wake_scenario() -> int:
6932
6978
  if "Desktop session: local_test-319" not in note.read_text(encoding="utf-8"):
6933
6979
  report(f"{label} the note does not record the desktop session id.")
6934
6980
  return 1
6935
- # Remote Control off, then the task, so the wake cannot fire before the
6936
- # clear; then rename and clear (#319 comments 6143435530, 6144856601).
6981
+ # Remote Control stays on: a clear is accepted with it on, and turning it
6982
+ # off waits for a person's approval (#324 comments 6164793777, 6165454422).
6983
+ for needle in ('set_remote_control("self", false)', "cannot be cleared"):
6984
+ if needle in armed.stdout:
6985
+ report(f"{label} the desktop clear hint still says {needle}: {armed.stdout.strip()}")
6986
+ return 1
6987
+ # The task, then rename and clear at once, so the wake cannot fire
6988
+ # before the clear (#319 comments 6143435530, 6144856601).
6937
6989
  for needle in ("create_scheduled_task", "send_message", "local_test-319", "set_session_title",
6938
6990
  "mcp__ccd_session_mgmt__set_remote_control", "shift-restore"):
6939
6991
  if needle not in armed.stdout:
6940
6992
  report(f"{label} the desktop clear hint does not name {needle}: {armed.stdout.strip()}")
6941
6993
  return 1
6942
- off = armed.stdout.find('set_remote_control("self", false)')
6943
- if off == -1 or off > armed.stdout.find("create_scheduled_task"):
6944
- report(f"{label} the desktop clear hint does not turn Remote Control off before create_scheduled_task: {armed.stdout.strip()}")
6994
+ task = armed.stdout.find("create_scheduled_task")
6995
+ if not task < armed.stdout.find("set_session_title", task) < armed.stdout.find("clear_session", task):
6996
+ report(f"{label} the desktop clear hint does not order create_scheduled_task, set_session_title, clear_session: {armed.stdout.strip()}")
6997
+ return 1
6998
+ if "new address" not in armed.stdout:
6999
+ report(f"{label} the desktop clear hint does not say Remote Control reconnects under a new address: {armed.stdout.strip()}")
6945
7000
  return 1
6946
7001
  # Dismissing bound PRs did not keep the app's auto-archive off the
6947
7002
  # cleared session: the engine archives on every PR the session ever
@@ -6960,6 +7015,13 @@ def validate_shift_desktop_wake_scenario() -> int:
6960
7015
  if not look < armed.stdout.find("unarchive_session") < armed.stdout.find("send_message", look):
6961
7016
  report(f"{label} the wake does not check get_session, then unarchive_session, then send_message: {armed.stdout.strip()}")
6962
7017
  return 1
7018
+ # The wake confirms delivery: anything but delivered or queued after the
7019
+ # archived retry is a failed wake the owner hears about (D1 of
7020
+ # shift-desktop-wake-confirm).
7021
+ for needle in ("PushNotification", "WAKE FAILED", "delivered"):
7022
+ if needle not in armed.stdout[armed.stdout.find("send_message"):]:
7023
+ report(f"{label} the desktop wake does not say {needle} after send_message: {armed.stdout.strip()}")
7024
+ return 1
6963
7025
  if "archived copy" in armed.stdout:
6964
7026
  report(f"{label} the desktop clear hint still says the rename tells an archived copy apart: {armed.stdout.strip()}")
6965
7027
  return 1
@@ -6973,8 +7035,8 @@ def validate_shift_desktop_wake_scenario() -> int:
6973
7035
  if "next is R011" not in resumed.stdout:
6974
7036
  report(f"{label} resume on the desktop app did not print the note: {resumed.stdout.strip()} {resumed.stderr.strip()}")
6975
7037
  return 1
6976
- if "set_remote_control" not in resumed.stdout:
6977
- report(f"{label} resume on the desktop app does not say to turn Remote Control back on: {resumed.stdout.strip()}")
7038
+ if "set_remote_control" not in resumed.stdout or "get_session" not in resumed.stdout:
7039
+ report(f"{label} resume on the desktop app does not say to check Remote Control and turn it back on if off: {resumed.stdout.strip()}")
6978
7040
  return 1
6979
7041
  if "set_session_title" not in resumed.stdout:
6980
7042
  report(f"{label} resume on the desktop app does not say to rename the session back: {resumed.stdout.strip()}")
@@ -7002,11 +7064,12 @@ def validate_shift_desktop_wake_scenario() -> int:
7002
7064
 
7003
7065
  for relative in ("docs/shift-change.md", "docs/shift-change.zh-CN.md"):
7004
7066
  text = (ROOT / relative).read_text(encoding="utf-8")
7005
- if "unbind_pr" in text:
7006
- report(f"{label} {relative} still names unbind_pr for the desktop app.")
7007
- return 1
7067
+ for stale in ("unbind_pr", "cannot be cleared"):
7068
+ if stale in text:
7069
+ report(f"{label} {relative} still says {stale}.")
7070
+ return 1
7008
7071
  for needle in ("send_message", "set_remote_control", "set_session_title", "shift-restore",
7009
- "get_session", "unarchive_session"):
7072
+ "get_session", "unarchive_session", "PushNotification", "WAKE FAILED"):
7010
7073
  if needle not in text:
7011
7074
  report(f"{label} {relative} does not name {needle} for the desktop app.")
7012
7075
  return 1
@@ -40545,6 +40608,7 @@ SCENARIOS: tuple = (
40545
40608
  ("host-run-session", validate_host_run_session_scenario),
40546
40609
  ("shift-without-role", validate_shift_without_role_scenario),
40547
40610
  ("shift-desktop-wake", validate_shift_desktop_wake_scenario),
40611
+ ("shift-desktop-wake-overdue", validate_shift_desktop_wake_overdue_scenario),
40548
40612
  ("shift-restore-authorization", validate_shift_restore_authorization_scenario),
40549
40613
  ("self-shift-authorization", validate_self_shift_authorization_scenario),
40550
40614
  ("resource-lock", validate_resource_lock_scenario),
package/src/core/shift.js CHANGED
@@ -435,6 +435,12 @@ function ready(where, options) {
435
435
  const WAKE_SENDER = "keel-shift";
436
436
  const WAKE_SOURCES = new Set(["clear", "startup"]);
437
437
 
438
+ // Zero is a valid overdue time: it flags every desktop note at once.
439
+ function overdueMs() {
440
+ const value = Number(process.env.KEEL_SHIFT_WAKE_OVERDUE_MS);
441
+ return process.env.KEEL_SHIFT_WAKE_OVERDUE_MS && Number.isFinite(value) && value >= 0 ? value : 15 * 60 * 1000;
442
+ }
443
+
438
444
  function envMs(name, fallback) {
439
445
  const value = Number(process.env[name]);
440
446
  return Number.isFinite(value) && value > 0 ? value : fallback;
@@ -566,6 +572,12 @@ function status(where) {
566
572
  const stat = fs.statSync(path.join(folder, file));
567
573
  const row = entry(`${prefix}${file.slice(0, -3)}`);
568
574
  row.note = store.isoLocal(stat.mtime);
575
+ // A desktop wake that never ran leaves no trace but the waiting note
576
+ // (D2 of shift-desktop-wake-confirm).
577
+ const desktop = fs.readFileSync(path.join(folder, file), "utf8").match(/^Desktop session: (\S+)\.$/m);
578
+ if (desktop && Date.now() - stat.mtime.getTime() >= overdueMs()) {
579
+ row.overdueDesktop = desktop[1];
580
+ }
569
581
  if (prefix) {
570
582
  // The note's header names the worktree it was written in (#291 D6).
571
583
  const header = fs.readFileSync(path.join(folder, file), "utf8").match(/^Written \S+ in (.+)\.$/m);
@@ -708,6 +720,13 @@ function safeList(dir) {
708
720
  }
709
721
 
710
722
  function describe(row) {
723
+ const line = describeState(row);
724
+ if (!row.note || !row.overdueDesktop) return line;
725
+ return `${line}\n desktop wake overdue: nothing has resumed it; check the wake task's run with \`list_task_runs\`, `
726
+ + `and if it did not deliver, \`send_message\` session ${row.overdueDesktop} to run \`keel context\` and \`keel shift resume\``;
727
+ }
728
+
729
+ function describeState(row) {
711
730
  if (row.note && row.role.startsWith("worktree ")) {
712
731
  return `${row.role}: note waiting since ${row.note}; no chat role there, so tell the session in ${row.path || "that worktree"} to run \`keel shift resume\``;
713
732
  }
@@ -730,7 +749,6 @@ function describe(row) {
730
749
 
731
750
  const CLEAR_HINT = [
732
751
  "Session state a clear destroys — scheduled jobs, Remote Control — is not in Keel; if the note does not say how to re-create it, add that first.",
733
- "A session serving Remote Control cannot be cleared: turn Remote Control off, clear, then turn it back on.",
734
752
  "Now clear this session:",
735
753
  "- Claude desktop app: call `clear_session(\"self\")` (the owner approves it), or type /clear;",
736
754
  "- Claude Code CLI: /clear;",
@@ -743,32 +761,38 @@ function clearHint(result) {
743
761
  let last;
744
762
  if (!result.role) last = `Without a chat role nothing wakes the new session; ${result.startedBy} — tell it to run \`keel shift resume\`.`;
745
763
  else if (result.waiter && result.desktop) {
746
- // Nothing starts a cleared desktop session but a prompt (#319 D3). The task
747
- // comes after Remote Control is off, which can block for hours while the
748
- // session is followed remotely; a wake that fires first is queued, and the
749
- // app then refuses the clear to keep it (#319 D1 of shift-desktop-wake-order).
764
+ // Nothing starts a cleared desktop session but a prompt (#319 D3). A wake
765
+ // that fires before the clear is queued, and the app then refuses the clear
766
+ // to keep it, so rename and clear follow the task at once. Remote Control
767
+ // stays on: the clear is accepted with it on, and turning it off waits for
768
+ // a person's approval (#324 D1, D2 of shift-desktop-keep-remote-control).
750
769
  last = [
751
- "On the Claude desktop app a clear starts no session until a prompt arrives, so the waiter alone wakes nothing (#319). Do these in order:",
752
- '1. Turn Remote Control off with set_remote_control("self", false), and wait for that call to return; it can take long while someone follows this session remotely.',
770
+ "On the Claude desktop app a clear starts no session until a prompt arrives, so the waiter alone wakes nothing (#319). "
771
+ + "Leave Remote Control on: the clear is accepted with it on, and the app reconnects it after the clear under a new address, which a remote viewer has to open (#324). Do these in order:",
753
772
  // The app's auto-archive can take the cleared, idle session before the
754
773
  // wake, on every PR it ever had; dismissing bound PRs did not stop it, so
755
774
  // the wake unarchives first (#326 D1, D2 of shift-desktop-unarchive-wake).
756
- "2. Only then create a one-shot scheduled task with the host's `create_scheduled_task`, firing about three minutes later, "
775
+ "1. Create a one-shot scheduled task with the host's `create_scheduled_task`, firing about three minutes later, "
757
776
  + `whose prompt first calls \`get_session\` on session \`${result.desktop}\` and, when it reports the session archived, calls \`unarchive_session\` on it; `
758
777
  + `then calls \`send_message\` to it with: "${result.role}: your new shift starts now. `
759
778
  + "Run `keel context` and `keel shift resume`, then restore Remote Control and this session's title as `keel shift resume` says.\" "
760
779
  + "If that send is still refused because the session is archived, it unarchives it and sends once more, and it says which path it took. "
780
+ // The run's summary is the only trace a wake leaves, so a send that did
781
+ // not deliver must say so there and reach the owner (D1 of
782
+ // shift-desktop-wake-confirm).
783
+ + "A send result of `delivered` or `queued` is a delivered wake; any other result after that retry is a failed wake: "
784
+ + "the task then calls `PushNotification` naming the session and the result, and starts its reply with `WAKE FAILED`. "
761
785
  + "The app's auto-archive can archive the cleared session before the wake (#326); unarchiving brings back its worktree. "
762
- + "A task created earlier can fire first, and the app then refuses the clear to keep its message.",
763
- `3. Rename this session with \`set_session_title\` (for example "${result.role} · shifted ${store.isoLocal(new Date()).slice(0, 16)}"), so it reads as between shifts until the woken session renames it back.`,
764
- '4. Call clear_session("self").',
786
+ + "A task that fires before the clear gets the clear refused, so take the next two steps at once.",
787
+ `2. Rename this session with \`set_session_title\` (for example "${result.role} · shifted ${store.isoLocal(new Date()).slice(0, 16)}"), so it reads as between shifts until the woken session renames it back.`,
788
+ '3. Call clear_session("self").',
765
789
  "Keel creates no task. Running unattended needs `mcp__ccd_session_mgmt__set_remote_control`, `mcp__ccd_session_mgmt__get_session` "
766
790
  + "and `mcp__ccd_session_mgmt__unarchive_session` in `permissions.allow`, "
767
791
  + "and `shift-restore` under `authorize:` in keel/config.yaml so the woken session does not stop to ask.",
768
792
  // The outgoing side's confirmation is the repository's to waive (#319).
769
793
  require("./config").readStandingAuthorization(result.worktree).scopes.has("self-shift")
770
- ? "Standing-authorized by `self-shift` in keel/config.yaml: take these four steps now, without asking."
771
- : "Declaring `self-shift` under authorize: in keel/config.yaml lets a session take these four steps without asking.",
794
+ ? "Standing-authorized by `self-shift` in keel/config.yaml: take these three steps now, without asking."
795
+ : "Declaring `self-shift` under authorize: in keel/config.yaml lets a session take these three steps without asking.",
772
796
  ].join("\n");
773
797
  } else if (result.waiter) {
774
798
  last = `The wake is armed: once ${result.role}'s next session starts (after a clear or a fresh start), it gets one message to run \`keel shift resume\`. The waiter gives up after two hours.`;
@@ -850,15 +874,16 @@ function runShift(argv) {
850
874
  // A new coordinator learns whom its previous shift left unstarted (#289 D2).
851
875
  const waiting = (result.waiting || []).map((w) => w.role);
852
876
  const still = waiting.length ? `\n\nStill waiting for \`keel shift start\`: ${waiting.join(", ")}.` : "";
853
- // A clear on the desktop app keeps neither Remote Control nor the title (#319).
877
+ // A clear on the desktop app keeps no title (#319), and a session it
878
+ // leaves may come back with Remote Control off (#324 D3).
854
879
  const { readStandingAuthorization } = require("./config");
855
880
  const restore = readStandingAuthorization(where.worktree).scopes.has("shift-restore");
856
881
  const remote = desktopSession() && restore
857
- ? "\n\nStanding-authorized by `shift-restore` in keel/config.yaml: turn Remote Control back on with "
858
- + "`set_remote_control(\"self\", true)` and rename this session back to its working title with `set_session_title`, now, without asking."
882
+ ? "\n\nStanding-authorized by `shift-restore` in keel/config.yaml: if `get_session(\"self\")` reports Remote Control off, turn it back on with "
883
+ + "`set_remote_control(\"self\", true)`; and rename this session back to its working title with `set_session_title`, now, without asking."
859
884
  : desktopSession()
860
- ? "\n\nOn the Claude desktop app a clear keeps neither Remote Control nor this session's title: turn Remote Control back on with "
861
- + "`set_remote_control(\"self\", true)` and rename the session back with `set_session_title`. "
885
+ ? "\n\nOn the Claude desktop app a clear keeps no title and may leave Remote Control off: if `get_session(\"self\")` reports it off, turn it back on with "
886
+ + "`set_remote_control(\"self\", true)`, and rename the session back with `set_session_title`. "
862
887
  + "Declaring `shift-restore` under authorize: in keel/config.yaml lets a woken session do this without asking."
863
888
  : "";
864
889
  out(result, `${result.text.replace(/\s+$/, "")}\n\n(The note moved to ${result.note}.)${still}${remind ? `\n\n${patrolReminder(patrol)}` : ""}${remote}`);