pikiloom 0.4.73 → 0.4.74

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pikiloom",
3
- "version": "0.4.73",
3
+ "version": "0.4.74",
4
4
  "description": "Put the world's smartest AI agents in your pocket. Command local Claude & Gemini via IM. | 让最好用的 IM 变成你电脑上的顶级 Agent 控制台",
5
5
  "type": "module",
6
6
  "bin": {
@@ -85,6 +85,7 @@ export interface TuiInput {
85
85
  workdir: string;
86
86
  model?: string | null;
87
87
  sessionId?: string | null;
88
+ newSessionId?: string;
88
89
  env?: Record<string, string>;
89
90
  extraArgs?: string[];
90
91
  }
@@ -26,7 +26,12 @@ export class ClaudeDriver {
26
26
  const args = [];
27
27
  if (input.model)
28
28
  args.push('--model', input.model);
29
- if (input.sessionId)
29
+ // Fresh-pin wins over resume: `--session-id <uuid>` makes Claude start a NEW session and
30
+ // write its transcript under the given id, so the host already knows the resumable key
31
+ // before spawn (terminal-first new session). Falls back to `--resume` for an existing one.
32
+ if (input.newSessionId)
33
+ args.push('--session-id', input.newSessionId);
34
+ else if (input.sessionId)
30
35
  args.push('--resume', input.sessionId);
31
36
  if (input.extraArgs?.length)
32
37
  args.push(...input.extraArgs);