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.
- package/overlay/inbox.html +1 -1
- package/overlay/main.cjs +11 -9
- package/package.json +1 -1
package/overlay/inbox.html
CHANGED
|
@@ -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
|
|
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
|
-
//
|
|
1901
|
-
//
|
|
1902
|
-
//
|
|
1903
|
-
//
|
|
1904
|
-
//
|
|
1905
|
-
//
|
|
1906
|
-
//
|
|
1907
|
-
//
|
|
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
|
|
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`;
|