codeam-cli 1.4.39 → 1.4.41

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 +14 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -116,7 +116,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
116
116
  // package.json
117
117
  var package_default = {
118
118
  name: "codeam-cli",
119
- version: "1.4.39",
119
+ version: "1.4.41",
120
120
  description: "Remote control Claude Code from your mobile device",
121
121
  main: "dist/index.js",
122
122
  bin: {
@@ -1490,6 +1490,9 @@ var HistoryService = class {
1490
1490
  setCurrentConversationId(id) {
1491
1491
  this.currentConversationId = id;
1492
1492
  }
1493
+ getCurrentConversationId() {
1494
+ return this.currentConversationId;
1495
+ }
1493
1496
  /** Detect the active conversation by finding the most recently modified JSONL file */
1494
1497
  detectCurrentConversation() {
1495
1498
  const dir = this.projectDir;
@@ -1850,6 +1853,11 @@ except Exception:sys.exit(0)
1850
1853
  if (historySvc.isQuotaStale()) {
1851
1854
  fetchQuotaUsage();
1852
1855
  }
1856
+ const currentId = historySvc.getCurrentConversationId();
1857
+ if (currentId) {
1858
+ historySvc.loadConversation(currentId).catch(() => {
1859
+ });
1860
+ }
1853
1861
  });
1854
1862
  function sendPrompt(prompt) {
1855
1863
  outputSvc.newTurn();
@@ -2002,6 +2010,11 @@ except Exception:sys.exit(0)
2002
2010
  historySvc.detectCurrentConversation();
2003
2011
  historySvc.load().catch(() => {
2004
2012
  });
2013
+ const currentId = historySvc.getCurrentConversationId();
2014
+ if (currentId) {
2015
+ historySvc.loadConversation(currentId).catch(() => {
2016
+ });
2017
+ }
2005
2018
  }, 2e3);
2006
2019
  setTimeout(() => {
2007
2020
  fetchQuotaUsage();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.4.39",
3
+ "version": "1.4.41",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {