relay-companion 0.1.82 → 0.1.83

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.
@@ -3100,7 +3100,7 @@
3100
3100
  if (info.awaitingTurn) {
3101
3101
  // Persistent until delivery / the auto-fresh hop — never a silent limbo.
3102
3102
  if (injectedNoteTimers.has(id)) { clearTimeout(injectedNoteTimers.get(id)); injectedNoteTimers.delete(id); }
3103
- setRowNote(id, "Handed to your current Claude chat…", "ok");
3103
+ setRowNote(id, "Handed to your current Claude chat — lands when it next takes a turn. If it\u2019s idle: type anything there, or use Open in New Chat for instant.", "ok");
3104
3104
  return;
3105
3105
  }
3106
3106
  const hostName = info.host === "codex" ? "Codex" : "Claude";
package/overlay/main.cjs CHANGED
@@ -1897,18 +1897,20 @@ async function openPacket(packetId, { sent = false, fresh = false } = {}) {
1897
1897
  // injection for an idle session sat invisible for minutes and the click read as
1898
1898
  // completely dead; a waiting state that never lies beats a success toast.
1899
1899
  //
1900
- // The GRACE WINDOW closes the remaining gap. Nothing outside a session can make
1901
- // it take a turn (verified against the platform docs: deep links only pre-fill
1902
- // NEW sessions; no external submit API exists), so an idle chat cannot be woken
1903
- // — but the user must still get the relay QUICKLY. A busy chat ingests at a
1904
- // tool boundary within seconds; if the grace window passes unconsumed, the
1905
- // target is idle: reclaim the injection (same rename-first consume-once
1906
- // discipline as the hook, so a racing delivery always wins) and open the relay
1907
- // in a fresh chat instead. Every click produces a visible result in seconds.
1900
+ // Nothing outside a session can make it take a turn (verified against the
1901
+ // platform docs: deep links only pre-fill NEW sessions; no external submit API
1902
+ // exists), so an idle chat cannot be woken — the honest waiting/delivered
1903
+ // states are the truth until the Relay channel plugin (the platform's supported
1904
+ // push-into-a-running-session mechanism) lands. The 0.1.82 grace hop — reclaim
1905
+ // after 6s and open a fresh chat — is now OFF by default: the same-evening
1906
+ // field verdict was that silently converting "current chat" into "new chat"
1907
+ // betrays the button. The user chose current; Open in New Chat sits one row
1908
+ // below for when they want instant. RELAY_CURRENT_CHAT_GRACE_MS > 0 re-enables
1909
+ // the hop for anyone who prefers motion over fidelity.
1908
1910
  const injectionWatchers = new Map(); // packetId -> interval
1909
1911
  const AUTO_FRESH_GRACE_MS = (() => {
1910
1912
  const raw = Number(process.env.RELAY_CURRENT_CHAT_GRACE_MS);
1911
- return Number.isFinite(raw) && raw >= 0 ? raw : 6000; // 0 disables auto-fresh
1913
+ return Number.isFinite(raw) && raw > 0 ? raw : 0; // 0 (default): never hop
1912
1914
  })();
1913
1915
  function reclaimInjection(stagedPath) {
1914
1916
  const claimed = `${stagedPath}.${process.pid}.${Date.now()}.autofresh`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "relay-companion",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "Relay companion for ordinary messages, with dormant coordination features available only by explicit opt-in.",
5
5
  "type": "module",
6
6
  "bin": {