pi-fast-resume 1.4.2 → 1.4.4

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/fast-resume.ts +16 -0
  2. package/package.json +3 -3
package/fast-resume.ts CHANGED
@@ -1384,6 +1384,22 @@ async function showFastResumePicker(
1384
1384
  "info",
1385
1385
  );
1386
1386
 
1387
+ if (ctx.mode !== "tui") {
1388
+ if (!ctx.hasUI) return;
1389
+ if (currentSessions.length === 0) {
1390
+ ctx.ui.notify("No sessions found to resume.", "info");
1391
+ return;
1392
+ }
1393
+ const items = currentSessions.map((h) => `${h.name ?? h.firstMessage} (${formatSessionDate(h.modified)})`);
1394
+ const pick = await ctx.ui.select("Fast resume \u2014 pick a session", items);
1395
+ if (pick === undefined) return;
1396
+ const idx = items.indexOf(pick);
1397
+ if (idx < 0) return;
1398
+ const session = currentSessions[idx];
1399
+ if (session) await ctx.switchSession(session.path);
1400
+ return;
1401
+ }
1402
+
1387
1403
  const result = await ctx.ui.custom<FastResumeResult>(
1388
1404
  (_tui, theme, _kb, done) => {
1389
1405
  const picker = new FastResumePicker(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-fast-resume",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Fast session picker for pi — reads headers + first messages from 16KB partial reads instead of full-file parsing",
5
5
  "type": "module",
6
6
  "author": "Tom X Nguyen",
@@ -30,8 +30,8 @@
30
30
  "README.md"
31
31
  ],
32
32
  "devDependencies": {
33
- "@earendil-works/pi-coding-agent": "0.80.3",
34
- "@earendil-works/pi-tui": "0.80.3",
33
+ "@earendil-works/pi-coding-agent": "0.83.0",
34
+ "@earendil-works/pi-tui": "0.83.0",
35
35
  "@types/node": "25.9.1",
36
36
  "@vitest/coverage-v8": "4.1.7",
37
37
  "knip": "6.14.1",