opencrater 0.1.5 → 0.1.6
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/cli.js +5 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -201,7 +201,11 @@ function showAgain() {
|
|
|
201
201
|
// our own terminal's device (we are running interactively)
|
|
202
202
|
const tty = spawnSync("tty", { stdio: ["inherit", "pipe", "ignore"], encoding: "utf8" })
|
|
203
203
|
.stdout?.trim();
|
|
204
|
-
|
|
204
|
+
// Replay: live ✕ (local), but never re-poll or re-record the original
|
|
205
|
+
// impression — it was already dismissed once.
|
|
206
|
+
const payload = { ...saved.payload, replay: true };
|
|
207
|
+
delete payload.impressionId;
|
|
208
|
+
const env = { ...process.env, OPENCRATER_PAINT: JSON.stringify(payload) };
|
|
205
209
|
if (tty && tty.startsWith("/dev/")) env.OPENCRATER_TTY = tty;
|
|
206
210
|
const child = spawn(process.execPath, [painter], { detached: true, stdio: "ignore", env });
|
|
207
211
|
child.unref();
|