The audit only compared laid-out content height against the box, so a line
wider than the box (wrap=false, or a single unbreakable token wider than
the available width) passed silently and then overlapped whatever sits
next to it. collectEntries now also records each text node's widest
laid-out line (run.x already includes marL/indent/alignment, so the
content-area comparison is exact), and auditSlideLayout reports a
'Text overflow (width)' issue past the same tolerance, prompting the AI
to widen the box, shrink the font, or enable wrapping.
Split out from #129 per maintainer feedback.
Co-authored-by: Claude <noreply@anthropic.com>
The close-save handler called doSave('save') which returned false immediately when savingRef was set (blur autosave in flight), so clicking Save in the close dialog silently canceled the close with no feedback. Wait for the in-flight save to finish, skip the retry when the document is already clean, and only then run the explicit save — the same fix the docs app shipped with its save serializer.
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
The in-memory find scan skips rows hidden by an active filter (worksheet.getRowFiltered), but out-of-window hits paged from the underlying file did not — a filtered row could appear in Ctrl+F results, get focused on Enter, and be counted in Replace All. The extension now asks the workbook instance's filter model for every candidate row; it answers regardless of streaming state and fails open when unreachable.
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
readSheetRangeMapped sent the direct (no-ops) path to the sidecar unbatched, so a buffered viewport at far zoom-out could exceed the 20k-cell request cap; the schema rejected it and every subsequent scroll regenerated similar geometry, stalling streaming. Apply the same row-batching the structural-ops path already uses, with an early stop when indexing lags, and share one batch-size constant between both paths.
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
AI-generated slide pages land in <temp>/genoffice-cloud-pages and <temp>/genoffice-local-pages but were never cleaned up, accumulating across sessions. Add a startup TTL sweep (7-day default, mirroring sheets' temp-files.ts) that deletes only expired UUID-named .pptx files in the app-owned directories, best-effort per file, never at land time (markers can be redeemed). Sweep runs once per process via the existing registerSlidesIpc() once-guard.
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
- Add Word-parity Docs shortcuts, shape-text formatting, and safer AI-created documents
- Add selection-scoped Ask AI, right-to-left grids, active row and column highlighting, and full-workbook Find improvements in Sheets
- Add local OCR text layers and persistent AI chat history in PDF
- Add selection Ask AI, effects editing, true vertical text, and rendering fidelity improvements in Slides
- Improve Korean font metrics and Office document layout fidelity across the suite
- Report an OS-locale country dimension in opt-out usage analytics with an updated privacy disclosure
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
Adds an opt-in reading mode that keeps a translucent band over the active cell's whole row and column while navigating wide sheets. The bands are float-DOM layers anchored to ranges (the same mechanism as the page-break preview), so they follow scroll and zoom; moves are debounced and skipped when the cell did not change. Band extents take the max of the file-backed sheet extent and whatever has already streamed into the grid, so cells beyond the last data row keep their bands. Toggled from the View tab's Show group, persisted in localStorage like the auto-save flag, styled through new --sheets-crosshair-* tokens defined in all three theme blocks.
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
- Convert scanned PDFs to editable text with local OCR, running through the operating system's own engine on macOS and Windows
- Add a much richer AI workflow to Docs, PDF, and Markdown: selection-scoped questions, batched edits, character-level edits, comment and tracked-change awareness, citations back to the source block, and in-document image generation
- Let Slides open the same presentation in a second window and edit it from both
- Improve PDF to Excel table recovery: tables spanning pages merge into one worksheet, and label/value grids and rule-less statement bands become real rows
- Fix a large wave of Word layout fidelity in Docs, Excel parity in Sheets, and PowerPoint import fidelity in Slides
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
- Add fully local PDF to Word, PowerPoint, and Excel conversion
- Add bring-your-own-key AI providers - Claude, OpenAI, Gemini, DeepSeek, Kimi, GLM, Qwen, Doubao, MiniMax, Grok, Mistral, OpenRouter, and custom OpenAI-compatible endpoints - with a refreshed AI settings UI
- Rework the Slides AI editing surface: canonical edit-op registry, atomic transactions with rollback, durable element ids, and batched apply_ops
- Improve Slides fidelity: chart, font, gradient, table-style, and text-shaping fixes, plus PPT-parity line editing and adjust handles
- Polish Docs: password-protection dialogs, anchored-image wrapping fixes, and selection and clipboard fixes
- Add themed dropdowns suite-wide with accent-derived selection states
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
- Improve Docs pagination, anchored-object fidelity, password protection, recovery safety, and multilingual font fallback
- Scale Sheets editing and saves for large workbooks with safer AI bulk operations, aggregation, undo, recovery, and richer visual fidelity
- Expand Slides fidelity with 3D rendering, SmartArt and WordArt improvements, pattern and texture fills, and resource cleanup
- Add AI PDF creation, text insertion, reading-position restore, safer atomic saves, and improved comments and page workflows
- Add Markdown math rendering and protect linked assets across save, conversion, and document lifecycle operations
- Read legacy DOC and PPT attachments locally and strengthen document package resource cleanup
- Document default-on usage analytics with a persistent Settings opt-out and a dedicated, tested privacy page
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
The SaveIcon was not recognizable as a "Save" function, because the used Icon was not a typical floppy disk. Improved UI/UX with the a new standard floppy disk path.
- Add text insertion and improved text editing in PDF files
- Expand PDF form filling, annotations, highlighting, and visual signature workflows
- Add PDF image crop, flip, transparency, replacement, and background removal
- Improve Sheets validation rendering, undo behavior, and workbook stability
- Add system font discovery and improve shared Office interface consistency
- Improve AI network resilience and response validation
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
- Improve DOCX rendering fidelity, pagination, image handling, and Markdown paste
- Expand PDF text editing with paragraph reflow, style preservation, and more reliable text matching
- Harden XLSX sheet deletion, localized date formats, multi-row autofit, charts, and system font support
- Add inline AI turn rollback and sent-attachment visibility across editors
- Add Office-style ScreenTips and refine ribbons, dialogs, menus, and themes
- Improve Slides cropping, rotate and flip tools, printing, animations, and editing workflows
- Add shell settings, configurable save locations, account credits, and update recovery guidance
- Add Intel macOS and RPM download support and refresh public documentation
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
- PDF: in-place text editing — paragraph block selection with reflow, bold/italic and alignment controls, selection-level text color, original-font preservation
- PDF: AI image tools (search/generate, insert, transform, delete) plus image rotation and in-place replacement
- Docs: picture rotation and mirror flips, in-place image byte swap for crop/background removal, and several Word-fidelity rendering fixes
- Docs: fix a renderer hang on tab-heavy forms and a crash when exporting large documents
- Slides: AI picture tools (crop, opacity, replace), picture border controls, in-place picture source swap
- Linux: AppImage and deb packaging with stable/beta auto-update channels
- Refresh the README and clean up internal design-audit artifacts
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
Saving a workbook on Windows failed with "error invoking remote method
'workbook:save': EPERM: operation not permitted" — the save dialog appeared,
then the save threw regardless of the chosen directory.
promoteFileAtomically (and writeXlsxAtomically) opened the freshly written
temp file read-only ('r') and then called handle.sync(). On Windows,
FlushFileBuffers requires a writable handle, so fsync on a read-only handle
fails with "EPERM: operation not permitted, fsync" — before the rename that
promotes the temp file over the target ever runs.
Open the handle read-write ('r+') at both sites.
Reproduced and verified fixed on Windows 11 Pro: with 'r' the save fails on
fsync with EPERM; with 'r+' the sync and the rename over an existing file
both succeed and the workbook saves.
- New AI Markdown app - the fifth suite app, with local image assets and ribbon AI entry points
- Shell: dark/light/system theme (imports public PR #41) with lint fix and dark-mode onboarding polish
- Docs: Word rendering fidelity fixes, 4x faster repagination, Shape Format contextual tab, auto-refreshing TOC page numbers
- Slides: built-in standard layouts, anchored zoom and jump-free editing, selectable Draw pen thickness
- Sheets: Insert Equation/Checkbox/Timeline, editing polish with undo for manual inserts and localized save errors
- Bump pdfjs-dist to 6.2.108 and js-yaml to 4.3.1
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
* feat(shell): add light/dark/system theme support
Add a theme toggle to the account menu with three options:
- Light: explicit light theme
- Dark: explicit dark theme
- System: follows OS prefers-color-scheme
Changes:
- Add UiTheme type and getTheme/setTheme IPC to home-api
- Add theme persistence in app-settings.json
- Add theme IPC handlers in main process and preload bridge
- Add Theme row + flyout in AccountEntry (same UX as Language)
- Apply data-theme attribute before first paint to avoid flash
- Add dark mode CSS variables for all shell surfaces
- Add dark mode overrides for 40+ hardcoded color selectors
- Add dark mode treatment for onboarding modal
- Add theme i18n strings in all 19 languages
The theme toggle lives in the account popup menu between
Language and Update Channel, using the same flyout pattern.
* perf(shell): cache settings reads + consolidate CSS dark mode + fix button hover
Performance improvements:
#7: Cache settings reads
- Add cachedUpdateChannel/cachedTheme module-level variables
- currentUpdateChannel() and currentTheme() now cache like currentLang()
- set handlers update the cache on write
- Eliminates disk reads on every IPC call
#11: Consolidate CSS dark mode selectors
- Convert 20+ hardcoded colors to CSS custom properties
- Remove ~300 lines of duplicated element-level dark mode overrides
- All element rules now use variables, auto-switch via :root overrides
- Single source of truth for dark mode palette
#17: Replace filter+transform on button hover
- Replace filter: brightness() with opacity transitions
- Add specific hover states for btn-secondary and btn-danger
- Avoids GPU compositing overhead from filter property
---------
Co-authored-by: alfirus <alfirus@users.noreply.github.com>
- Draw shapes with a crosshair drag on the canvas across Docs, Sheets, and Slides; the shared 104-preset shape gallery now lives in the UI package
- WordArt insert presets
- Reorganize the README download section into a single platform table
- Deflake the screenshot-insert e2e test by stubbing the OS capturer deterministically
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
- Movable, resizable floating objects and a shared 104-preset shape gallery across Docs, Sheets, and Slides
- Sheets Insert menu: screenshot capture, recommended charts, and an icon library
- Slides: Home slideshow module and slideshow-exit fixes
- Docs: track-changes fixes (IME input, tracked-deletion re-deletion) and Word-parity font handling
- Redact secret-looking tokens from outgoing AI messages (community contribution from PR #32, hardened with narrower patterns and tests)
- Linux packaging: AppImage and deb download instructions
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
- Add a user-selectable update channel (Stable/Beta) with a manual promote-to-stable release flow
- PDF: image signatures and WYSIWYG typed signatures with better placement, plus a status bar, keyboard navigation, and two-page spread reading upgrades
- Docs: Word-parity ribbon font controls and style gallery, an AI Format one-click preset, and restored headers/footers and TOC formatting for Pages-style docx
- Add GenOffice device-code sign-in for AI features
- Refresh UI: AI panel and ribbon styling aligned with the design system, new icons, save toasts, and content-width status bars beside a full-height AI dock
- AI reliability: retry transient image-download failures, detect empty gateway streams without killing long generations, and forward the resolved proxy to spawned CLI children
- Slides: bullet list gallery, type-ahead font filtering, and shorter clarify buttons across locales
- Add a Linux (AppImage) packaging target
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
Models often finish a tool-using run with no prose. That left an empty
assistant message in history; Anthropic/Gemini/OpenAI then rejected or
ignored follow-ups, so a second prompt collapsed into "AI finished with
no summary" while tools still ran. Fill a stable non-empty terminal
(matching restore), harden provider message converters, and prefer tool
summaries in Sheets when the model left only the placeholder.
Fixes#12Fixes#22
Co-authored-by: omkar1work <omkar1work@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
On Linux/X11, Electron's resize event fires before the window manager
applies maximize bounds, so TabManager laid out WebContentsViews with
stale sizes and left blank strips. Layout again on the next tick and
guard against a destroyed window for the deferred call.
Fixes#15
Co-authored-by: omkar1work <omkar1work@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The shell packaged only for mac and win, so there was no way to produce a
Linux artifact even though the tree already builds and runs there: npm
install resolves linux-arm64 for every native optional dep, the xlsx
sidecar compiles natively via cargo, and the full unit suite passes.
Adds a linux target alongside the existing two. Four Linux-only details
the mac/win config never had to handle:
- executableName: linux derives the binary name from package.json "name",
and "@genoffice/shell" sanitizes to the invalid "@genofficeshell",
which fails the AppImage build outright. mac/win use productName.
- desktopName + syncDesktopName: otherwise StartupWMClass falls back to
productName ("GenOffice") while the window reports WM_CLASS "genoffice",
and X11 compares case-sensitively, so the taskbar shows the window
unlinked from its launcher entry.
- fileAssociations mimeType: the Linux desktop entry builds its MimeType
list from this field and drops associations without it. mac and win
ignore the field and key off ext, so the existing targets are unaffected.
- The sidecar is taken from cargo's host-native target/release/, the same
source mac uses, so no arch is pinned; electron-builder defaults to the
build host's.
AppImage only. deb/rpm additionally require a Debian maintainer identity
and homepage in the repo metadata.
Verified on arm64: builds, and the packaged AppImage launches with the
aarch64 sidecar bundled at resources/native/xlsx-sidecar.
Co-authored-by: kalyanar <6203088+kalyanar@users.noreply.github.com>
electron-builder only warns for an absent extraResources source:
app-builder-lib's copyFiles logs "file source doesn't exist" and returns,
so the target still builds and the process still exits 0. A dist run
against a partial build:all — one module's build failed or never ran —
therefore produces an installer that launches normally and is simply
missing that editor module, which surfaces only when a user opens the tab.
The config already fails fast for the gsk CLI tree; extend the same guard
to the four module build outputs.
Verified on arm64: removing a module out/ now exits 1 naming the path,
and a complete tree still packages and exits 0.
Co-authored-by: kalyanar <6203088+kalyanar@users.noreply.github.com>
- Docs: paragraph writing direction (LTR/RTL) toggle with auto-detection
- Docs: hardened file lifecycle, docx fidelity, and editor performance
- PDF: Export as Word via cloud conversion, non-destructive Save As, and an in-progress export dialog
- Slides: treat full-page background shapes as the page background
- Sheets: faster recalculation with a session-resident engine; better xlsx compatibility (builtin number formats, auto-fit row heights, sheet-name resolution)
- AI: surface stream and gateway errors instead of finishing empty turns; parse non-SSE JSON gateway replies; stall watchdogs
- Fixes from alpha feedback batches 3 and 4 (TOC levels, Windows menus, honest AI applies, login flow diagnostics, credits-exhausted notice)
- CI: sheets save round-trip E2E and xlsx compatibility corpus gate
- Start the 0.5 release train (v0.5.0/v0.5.1)
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>