patchcord 0.3.78 → 0.3.80

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.
Files changed (2) hide show
  1. package/bin/patchcord.mjs +3 -11
  2. package/package.json +1 -1
package/bin/patchcord.mjs CHANGED
@@ -381,6 +381,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
381
381
  const identityStr = existingIdentity ? ` (${bold}${existingIdentity}${r}${dim})` : "";
382
382
  console.log(`\n ${dim}${existingToolName} agent is already configured in this project${identityStr}${r}`);
383
383
 
384
+ if (rl) rl.close();
384
385
  const { createInterface: createRLU } = await import("readline");
385
386
  const rlU = createRLU({ input: process.stdin, output: process.stdout });
386
387
  const askU = (q) => new Promise((resolve) => rlU.question(q, resolve));
@@ -404,17 +405,8 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
404
405
  const addAnswer = (await askU(` ${bold}Add another agent to this project? (y/N):${r} `)).trim().toLowerCase();
405
406
  rlU.close();
406
407
  if (addAnswer === "y" || addAnswer === "yes") {
407
- // Use existing token but let user pick a different tool
408
- token = existingToken;
409
- if (existingIdentity) {
410
- identity = existingIdentity;
411
- console.log(` ${green}✓${r} ${bold}${identity}${r}`);
412
- } else {
413
- console.log(` ${yellow}⚠${r} Token expired or invalid. Starting fresh setup.`);
414
- token = "";
415
- }
416
- // Force tool picker by clearing choice — will be asked below
417
- choice = "";
408
+ // Drop into browser connect flow don't reuse token, fresh setup
409
+ token = "";
418
410
  }
419
411
  }
420
412
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.78",
3
+ "version": "0.3.80",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",