codeam-cli 1.4.15 → 1.4.16

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/dist/index.js +6 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
115
115
  // package.json
116
116
  var package_default = {
117
117
  name: "codeam-cli",
118
- version: "1.4.15",
118
+ version: "1.4.16",
119
119
  description: "Remote control Claude Code from your mobile device",
120
120
  main: "dist/index.js",
121
121
  bin: {
@@ -1452,15 +1452,12 @@ var HistoryService = class {
1452
1452
  if (files.length === 0) return null;
1453
1453
  if (this.currentConversationId) {
1454
1454
  const conversationFile = `${this.currentConversationId}.jsonl`;
1455
- const idx = files.findIndex((f) => f.name === conversationFile);
1456
- if (idx > 0) {
1457
- const [target] = files.splice(idx, 1);
1458
- files.unshift(target);
1455
+ if (files.some((f) => f.name === conversationFile)) {
1456
+ return this.extractUsageFromFile(path4.join(dir, conversationFile));
1459
1457
  }
1460
1458
  }
1461
- const MAX_FILES_TO_TRY = 10;
1462
- for (let i = 0; i < Math.min(files.length, MAX_FILES_TO_TRY); i++) {
1463
- const result = this.extractUsageFromFile(path4.join(dir, files[i].name));
1459
+ for (const file of files) {
1460
+ const result = this.extractUsageFromFile(path4.join(dir, file.name));
1464
1461
  if (result) return result;
1465
1462
  }
1466
1463
  return null;
@@ -1701,6 +1698,7 @@ async function start() {
1701
1698
  const id = cmd.payload.id;
1702
1699
  const auto = cmd.payload.auto ?? false;
1703
1700
  if (!id) break;
1701
+ historySvc.setCurrentConversationId(id);
1704
1702
  await historySvc.loadConversation(id);
1705
1703
  await outputSvc.newTurnResume(id);
1706
1704
  claude.restart(id, auto);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {