A desktop app that contains the Fractal Synapse agent.
  • TypeScript 90.5%
  • JavaScript 8.4%
  • CSS 1%
  • HTML 0.1%
Find a file
James Peret 191e931954
feat: fix turn activity persistence and per-turn token tracking
Switch useTurnActivity to read currentTurnTotals for per-turn numbers.
Guard handleUsageStep with isLoadingRef to prevent zeroed overwrites.
Attach turnSummary to renderer messages in onUsageUpdate so history
renders its own TurnActivityIndicator after turn ends.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-28 16:47:19 -03:00
src feat: fix turn activity persistence and per-turn token tracking 2026-04-28 16:47:19 -03:00
tests Update app components and test files 2025-09-03 16:37:38 -03:00
.gitignore Add Playwright testing setup for agent-desktop 2025-08-28 15:57:22 -03:00
forge.config.js feat: add Playwright ASAR unpack config for browser-tool 2026-03-30 06:43:21 -03:00
package-lock.json feat: add window state persistence with electron-window-state 2026-04-08 16:44:46 -03:00
package.json feat: add window state persistence with electron-window-state 2026-04-08 16:44:46 -03:00
playwright.config.js Add Playwright testing setup for agent-desktop 2025-08-28 15:57:22 -03:00
README.md Add Playwright testing setup for agent-desktop 2025-08-28 15:57:22 -03:00
tsconfig.json Fix Electron architecture: Move agent from renderer to main process 2025-08-28 02:00:38 -03:00
tsconfig.main.json Fix Electron architecture: Move agent from renderer to main process 2025-08-28 02:00:38 -03:00
tsconfig.node.json Complete agent-desktop refactor with infrastructure updates 2025-08-28 00:47:27 -03:00
tsconfig.preload.json Fix Electron architecture: Move agent from renderer to main process 2025-08-28 02:00:38 -03:00
vite.config.ts Fix dev server startup: use correct port and entry point for Electron 2026-03-15 03:47:25 -03:00

agent-desktop

A desktop app that contains the Fractal Synapse agent.

Development

npm run dev      # Start development server with hot reload
npm run build    # Build the application for testing/production

Testing

The app uses Playwright for UI testing of the Electron application.

npm test            # Run tests headless
npm run test:headed # Run tests with visible browser window
npm run test:debug  # Run tests in debug mode (step through)
npm run test:ui     # Run tests with interactive UI mode

Test artifacts are organized under the tests/ directory:

  • tests/reports/ - HTML test reports
  • tests/screenshots/ - Test screenshots for verification
  • tests/test-results/ - Test execution artifacts

Build

The forge.config.js file contains the electron build configuration. It will build multiple version of the app for all the configured targets like Windows, Mac and Linux. To build the distributable executables run the following command:

npm run make

The make command will build the various app version to the out/ folder.