Skip to content

feat: preview saved sessions from navigation shortcuts - #81

Merged
johnnyhuy merged 1 commit into
mainfrom
agent/issue-80-saved-session-shortcuts
Nov 15, 2026
Merged

johnnyhuy merged 1 commit into
mainfrom
agent/issue-80-saved-session-shortcuts

Conversation

@johnnyhuy

@johnnyhuy johnnyhuy commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Saved-session shortcuts in the sidebar and Quick switch now open the selected history for preview before an explicit Resume or Fork. Previewing preserves unsent drafts, highlights the selected saved archive and leaves Open sessions as direct actions for their existing live tabs.

Part of #4.
Closes #80.

Verification

  • bun install --frozen-lockfile passed.
  • mise exec -- bun run lint passed.
  • mise exec -- bun run typecheck passed.
  • mise exec -- bun run test:unit passed, 103 tests across 10 files.
  • mise exec -- bun run test:integration passed, 107 tests across 14 files (final run included in the build).
  • mise run build passed, including all gates and the production bundle.
  • git diff --check passed.

Proof

$ mise exec -- bun run test:e2e
Error: Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Error: Electron failed to install correctly
Test Files  8 failed (8)
     Tests  69 skipped (69)

Local app launch and screenshot capture are blocked by the incomplete Electron runtime installation. Hosted macOS Playwright verification and screenshot capture succeeded on commit 7ca4bf2. All 69 Electron tests passed.

$ mise run test:e2e  # hosted macOS
previews sidebar shortcuts with keyboard selection and preserves drafts at the minimum window size passed
previews Quick switch results by keyboard without opening a runtime passed
resumes an explicitly selected sidebar preview and focuses its live tab without another launch or prompt passed
Test Files  8 passed (8)
     Tests  69 passed (69)

The proof artefact includes sidebar-saved-preview.png, sidebar-saved-preview-narrow.png, quick-switch-saved-preview.png and open-session-direct-focus.png under Users/runner/work/pidex/pidex/test-results/session-start/. These are captures of the running Electron app at native window dimensions, including 900 by 600. The screenshots were downloaded to .tmp/proof/ and visually reviewed. No scratch captures are committed.

Direct inline image upload was unavailable because the browser was in active use. The PNGs are uploaded with this PR's CI artefact and linked above.

New Electron cases cover keyboard sidebar preview, selected-archive highlighting, native minimum-window reachability, keyboard Quick switch selection, unchanged source archives, no session-execution RPCs before continuation, explicit Resume into the selected archive and direct focus of the resulting live tab without another launch or prompt. Screenshots are captured under .tmp/proof/ and test-results/session-start/; scratch captures are not committed.

Component and hook coverage includes previews a chosen saved conversation without launching Pi or consuming the new-session draft and previews saved work for a missing root and reports unreadable archives without starting Pi. Quick switch coverage checks its Preview explanation and archive identity when native IDs are copied.

Read-only model discovery may still query Pi. Sending from the history composer resumes the selected path as before. Archive continuation semantics and folder-to-folder context transfer are unchanged. The parent stays open for further recovery work.

Co-authored-by: OpenAI Codex <noreply@openai.com>
@johnnyhuy
johnnyhuy merged commit 82176b5 into main Nov 15, 2026
15 checks passed
@johnnyhuy
johnnyhuy deleted the agent/issue-80-saved-session-shortcuts branch November 15, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preview saved sessions from sidebar and Quick switch before continuation

1 participant