Skip to content

feat: remember window state and show native unread badges - #432

Merged
milind-soni merged 1 commit into
mainfrom
codex/window-state-unread
Aug 24, 2026
Merged

feat: remember window state and show native unread badges#432
milind-soni merged 1 commit into
mainfrom
codex/window-state-unread

Conversation

@milind-soni

Copy link
Copy Markdown
Owner

What this adds

  • restores the main window’s normal bounds and maximized state between launches
  • keeps restored windows reachable after monitor, resolution, or DPI changes
  • mirrors visible unread conversations to the macOS/Linux app badge and a Windows taskbar overlay
  • validates renderer IPC and caps the native unread count

Safety and provenance

This is an independent clean-room implementation based on OpenMausBot’s existing Electron shell and the public Electron APIs. No code or assets were copied from the reconstructed Grok Bot repository. The saved file contains only window geometry and maximized state.

Validation

  • pnpm typecheck
  • pnpm vitest run electron/window-state.test.mjs src/lib/unread.test.ts (6 tests)
  • pnpm build
  • pnpm check:electron (42 Electron modules)

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openmausbot-docs Ready Ready Preview Aug 24, 2026 5:58pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 10 minutes.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2d043d2e-115a-4f57-b48f-cacc1491ee37

📥 Commits

Reviewing files that changed from the base of the PR and between 9c92bd0 and 5ef96f4.

📒 Files selected for processing (8)
  • electron/main.mjs
  • electron/preload.cjs
  • electron/window-state.cjs
  • electron/window-state.test.mjs
  • src/App.tsx
  • src/lib/unread.test.ts
  • src/lib/unread.ts
  • src/types/ogb.d.ts

Comment @coderabbitai help to get the list of available commands.

@milind-soni
milind-soni merged commit fe57936 into main Aug 24, 2026
8 checks passed
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