- Move MonitorTab and TrafficLogTable from proxy/advanced to usage/
- Add Analytics and Monitor tabs to Usage page
- Remove Monitor tab from API Proxy (flatten to 4 tabs)
- Add Model, Input/Output tokens, and Cost columns to traffic log table
- Make log rows clickable with expandable detail panel (JSON body viewer)
- Fix req/min calculation using actual request time span (MIN/MAX timestamps)
- Add word-wrap for large message bodies in expanded view
Backend fixes:
- Fix totalTokens defaulting to 0 when API omits totalTokenCount (now computes prompt+completion)
- Fix streaming metadata extraction: unwrap response wrapper in Anthropic/Gemini handlers
- Fix Zod schemas: handle SQL SUM(null) with nullable().transform()
- Add is_estimated column migration to token_usage table
Frontend redesign:
- Rewrite Usage page with area charts (nivo/line), horizontal bar model ranking
- StatCard: add trend indicators (% vs previous period) and inline SVG sparklines
- Premium color palette, prompt/completion ratio bar, top models mini-list
- Live indicator with 15s auto-refresh
Design system migration:
- Standardize all components on Gemini Nexus tokens (rounded-xl, border-white/[0.06])
- Refine UI components, proxy tabs, cloud account list, provider groups
- Add cacheHitRate to ProxyMetricsService, handler, and router schema
- Fix StatCard to support string values and purple accent
- Fix duplicate tabs keys in i18n translations (EN/ZH/RU)
- Add missing cacheStatus translations across all languages
- GoogleAPIService: try loadCodeAssist first for AI credits since
fetchCredits returns 404 for many accounts; keep fetchCredits as
fallback, removing the spurious warn on every poll cycle
- CloudAccountRepo: auto-activate the most-recently-used account when
no account has is_active=1; downgrade noisy [DEBUG] log from info
to debug level
- StatusBar: increase process-status refetch interval from 10s to 30s
to reduce redundant IPC calls and log noise
* feat: add Nix Flake release and update documentation for Nix integration
- Added flake.nix with native library patching for Linux
- Included SHA256 hashes for v0.10.0 DEB releases (x86_64 and arm64)
- Updated README.md with instructions for nix run, NixOS, Home Manager, and devShells
- Generated flake.lock for reproducibility
* refactor: improve Nix Flake patterns for better consumer control
- Extracted derivation logic into a reusable `mkPackage` function
- Exposed `overlays.default` to allow consumers to use their own nixpkgs instance
- Updated `pkgs.system` to `pkgs.stdenv.hostPlatform.system` to follow modern Nix patterns
- Ensured default `packages` definition correctly handles unfree configuration for testing with `nix build` or `nix run`
* docs: update README with advanced Nix integration patterns
- Added Option 1 (Direct Integration) and Option 2 (Overlay) documentation
- Explained how to use the overlay for full nixpkgs control
- Fixed Markdown styling and lint issues in the Nix integration section
* docs: simplify Nix documentation to favor Overlay integration
- Removed "Option 1" (direct integration) as per user feedback
- Promoted the Overlay method as the standard way to consume the package
- Updated devShell examples to rely on the overlayed package set for consistency
* fix(security): prevent master key overwriting on decryption failure and improve account loading resilience
- Modify readSafeStorageKey and generatePrimaryMasterKey to stop if decryption fails for an existing file, preventing permanent data loss when keyring is temporarily locked.
- Update CloudAccountRepo.getAccounts and getAccount to gracefully skip corrupted account records instead of throwing errors.
- Added detailed logging for security failures to aid in diagnostics.
* docs(readme): sync Nix/NixOS integration docs in README.zh-CN
---------
Co-authored-by: Youssef <[email protected]>
* Refactor Gemini model display: filter old versions, group low/high pro, and improve naming
* Fix potential negative minutes and refine Gemini 3 Pro grouping logic based on PR feedback
* The account change process has been sped up
* Address PR review: enhance error message and parameterize polling interval in process handler
* Address PR review: fix potential race condition in database backup logic
* fix: prevent renderer white screen and harden sentry gating
* feat: localize model labels
* chore: enable hoisted node-linker
* chore: ignore .agent/.claude/.codex in prettier
---------
Co-authored-by: Draculabo <[email protected]>
* chore: mark peer dependencies in package-lock.json
* docs: add comprehensive developer guide for antigravity-manager
* build: add @radix-ui/react-tooltip dependency
The tooltip component is needed for future UI enhancements to provide better user guidance and information display.
* feat(StatusBar): add collapsed view with toggle button
- Introduce `isCollapsed` prop to support both expanded and compact layouts
- Collapsed view shows a single icon button with status tooltip
- Enhanced visual styling with shadows, borders, and improved spacing
- Use Tooltip component to display status in collapsed mode
* feat(ui): add Radix UI tooltip component wrapper
Create a reusable tooltip component using Radix UI primitives.
The wrapper provides styled content with animations and integrates
with the project's class name utility for consistent theming.
* feat(layout): add collapsible sidebar with persistent state
- Add toggle button to collapse/expand sidebar with smooth animations
- Persist sidebar state in localStorage to maintain user preference
- Show tooltips for navigation items when sidebar is collapsed
- Adjust StatusBar component to support collapsed state
* chore: remove "peer": true flags from package-lock.json
* build: mark peer dependencies in package-lock.json
* build: add yaml v2.8.2 dependency and update package-lock
* docs(project_overview): update skill documentation formatting
* docs: remove extra blank line in AGENTS.md
* docs: update changelog formatting to use hyphens
* docs: improve readability of OpenSpec workflow files
* chore: standardize YAML string quotes in GitHub configs
* style(StatusBar): reformat JSX for consistency and readability
- Simplify className expres
* style(ui): standardize quotes and class order in tooltip component
- Use single quotes consistently across imports and strings
- Reorder Tailwind CSS classes to follow recommended conventions
* style(ipc): remove unnecessary parentheses in debug log statement
* style(MainLayout): improve code formatting and consistency
- Reformat multi-line import for better readability
- Normalize Tailwind CSS class ordering
- Remove unnecessary whitespace and ensure consistent quotes
- Maintain all functionality while improving code style
* style(i18n): format long translation strings for better readability
* style: remove unnecessary line break in logger.info call
The logger.info call had an unnecessary line break that made the code less readable. The line has been consolidated to improve code style consistency.
* chore: disable several ESLint rules for development flexibility
Disable TypeScript ESLint rules and other linting rules that are too restrictive during active development. This allows faster iteration without constant linting errors for common patterns like `any` types, unused variables, and inline comments.
* refactor: use const for immutable variables in request mapper
- Change `let` to `const` for variables that are not reassigned
- Improves code clarity and prevents accidental reassignment
* refactor: replace direct hasOwnProperty calls with safe variant
Use Object.prototype.hasOwnProperty.call to avoid issues when objects have overridden hasOwnProperty method. This ensures consistent behavior across all object types.
* fix: disable eslint for intentional assignment in useEffect
The eslint warning was triggered by directly using setProxyConfig with config.proxy inside useEffect without including it in the dependency array. This assignment is intentional and only needs to run when config changes, not when setProxyConfig changes. Adding the eslint-disable comment prevents the warning while maintaining correct behavior.
* chore: disable react-hooks/exhaustive-deps rule
This rule was already disabled; the change only adds a trailing comma to the ESLint configuration for consistency.
* fix(eslint): re-enable lint rules for hooks and case-declarations
---------
Co-authored-by: Draculabo <[email protected]>
* feat: add React Query hooks for managing cloud accounts and update the generated route tree.
* feat: implement React Query hooks for comprehensive cloud account management.
* fix(cloud-accounts): add error handling to force poll mutation
Add an onError handler to log failures when forcing a cloud monitor poll, improving debuggability.
* fix: add error handling for cloud account polling failure
Add error toast notification when force polling fails, providing localized error message to improve user feedback.
* refactor: remove error logging from force poll cloud monitor hook
The onError handler was removed as error handling is now managed at a higher level in the application. This simplifies the hook and prevents duplicate error logging.
* fix(localization): add missing pollFailed translation keys
Add missing English and Chinese translations for the 'pollFailed' error message used when quota polling fails for all accounts.
* fix(CloudAccountList): prevent duplicate force poll requests
Add guard clause to disable button while mutation is pending to avoid duplicate API calls.
* fix: ensure UI updates after cloud quota poll and refresh
* chore: remove "peer": true flags from package-lock.json
---------
Co-authored-by: Draculabo <[email protected]>
Summary
- Replace hard keytar dependency with a multi-strategy key storage:
1) safeStorage (Electron built-in) — preferred
2) keytar (system keychain) — fallback
3) file-based encryption — last resort
- Dynamically import keytar to avoid asar load failures
- Refactor cloudHandler to use const (clean code)
- Fix “Failed to load cloud accounts” in packaged app
Rationale
The keytar native module can fail to load from asar archives in production builds. This ensures the app works even when system keychain access is unavailable.
Additional changes
- Replace sync file ops with async (fs/promises)
- Add atomic file writes to prevent data races
- Implement concurrency lock for key generation
- Add security error codes for better diagnostics
- Add warnings for file-based fallback mode
- Align error handling after merge
- Migrate legacy encrypted account data
References
- Issue: #38
- Commit: 92dc2f6
* Fix: Linux tray quit and zombie icons (#23)
- Add before-quit handler to set isQuitting flag
- Change pgrep -x to pgrep -xi for case-insensitive matching on Linux
- Add antigravity-manager to self-kill exclusion filter
- Destroy existing tray before creating new one in initTray()
- Destroy tray in will-quit handler
- Export destroyTray function for cleanup
Fixes#23
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Fix: Address code review feedback
- Add icon validation before creating tray (isEmpty check)
- Add try/catch around tray.destroy() calls for error handling
- Add try/catch around destroyTray() in will-quit handler
- Add explicit !manager check in Linux process filter for defensive coding
Co-Authored-By: Claude Opus 4.5 <[email protected]>
---------
Co-authored-by: Jirka <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>