Skip to content

feat: Upgrade to Electron 42/Node 24, Session Token Counter, and UI/UX Enhancements#33

Open
PylotLight wants to merge 12 commits into
minghinmatthewlam:mainfrom
PylotLight:dev
Open

feat: Upgrade to Electron 42/Node 24, Session Token Counter, and UI/UX Enhancements#33
PylotLight wants to merge 12 commits into
minghinmatthewlam:mainfrom
PylotLight:dev

Conversation

@PylotLight

@PylotLight PylotLight commented May 27, 2026

Copy link
Copy Markdown
Contributor

Overview

This PR combines several development streams into a single update, focusing on a major runtime upgrade, the introduction of session-aware token tracking, and critical UI/UX stability fixes.

🚀 Major Changes

  1. Runtime & Infrastructure Upgrade
  • Electron & Node: Upgraded to Electron 42.2.0 and Node v24 for improved performance and security.
  • Build System: Integrated Bun packaging support via a new bun-package-wrapper and added Linux .deb build support.
  • Tooling: Upgraded Vite and @earendil-works/pi-coding-agent dependencies.
  1. Session Intelligence & Token Tracking
  • Token Counter: Implemented a new session context token counter in the composer.
  • Granular Metrics: Added tracking for Input, Output, and Cache Read tokens, with a clear distinction between current context window usage and cumulative session volume.
  1. Core Stability & Reliability
  • LLM Resilience: Implemented retry logic for LLM requests and improved general error handling.
  • Environment Fix: Resolved a macOS issue where the app failed to inherit the user shell PATH, ensuring access to local CLI tools.
  • Multi-Instance Support: Restored and refined the ability to run multiple app instances when enabled in settings.
  • Terminal Stability: Fixed a critical terminal bug related to Bun instance locking.
  1. UI/UX & Visual Improvements
  • Modern Look: Introduced transparency and glassmorphism options in the Appearance settings.
  • Persistence: Fixed bug where transparency settings were not being restored from ui-state.json.
  • General Polish: Refined the timeline, settings views, and fixed sidebar toggle behavior.

Technical Notes

  • The token counter accounts for session compaction, ensuring the current window gauge remains accurate even in very large conversations.

@vercel

vercel Bot commented May 27, 2026

Copy link
Copy Markdown

@PylotLight is attempting to deploy a commit to the dev Team on Vercel.

A member of the Team first needs to authorize it.

@PylotLight PylotLight force-pushed the dev branch 2 times, most recently from 0db21b2 to ecce42e Compare May 27, 2026 12:20
- Added exponential backoff retry for non-streaming LLM calls in PiSdkDriver
- Sanitized provider error messages to be more user-friendly and generic
- Fixed type errors in apps/desktop (DesktopAppState, readFileSync, RuntimeLoginCallbacks)
- Restore 'allowMultiple' state and persistence in DesktopAppStore
- Implement IPC handler and preload bridge for toggling multi-instance mode
- Add 'Allow multiple app instances' toggle to general settings UI
- Fix various build errors in Electron main process and app-store
@PylotLight PylotLight changed the title feat: Upgrade to Electron 42/Node 24, UI/UX Enhancements and bug fix. feat: Upgrade to Electron 42/Node 24, Session Token Counter, and UI/UX Enhancements Jun 1, 2026
@PylotLight PylotLight marked this pull request as ready for review June 1, 2026 02:00
@PylotLight

Copy link
Copy Markdown
Contributor Author

@minghinmatthewlam could you please take a look at this when you have a moment?

Also, I need a maintainer's email address to properly configure the package builds.

One quick note: I've restored multi-instance support via an environment variable. I know you weren't keen on this previously, but it's been essential for my development workflow, so I've added it back as an opt-in for dev purposes.

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.

1 participant