Decks saved by WPS/PowerPoint with font embedding carry subsetted,
MicroType-Express-compressed EOT fonts we cannot re-generate (licensed
compressor). After any text edit the subsets no longer cover the new
glyphs; WPS honors the stale subset strictly and renders the missing
glyphs as invisible ("white") text, while the in-app system-font
fallback shows everything fine.
On save, once any slide has content edits (structureDirty or a dirty
element — including new slides from insert/duplicate), strip the
embedding: drop p:embeddedFontLst + embedTrueTypeFonts/saveSubsetFonts
from presentation.xml, the font rels, the ppt/fonts/*.fntdata parts and
the fntdata content-type. Viewers then fall back to system fonts.
No-edit saves stay byte-identical and keep the embedding.
Known limit: master/layout text edits write archive parts directly and
don't trigger the strip.
Co-authored-by: Claude <noreply@anthropic.com>
- **New app: GenOffice HTML.** Open, edit and generate .html pages: a source pane with a sandboxed live preview, click-to-select elements with a floating toolbar and style panel, device-size preview, image tools and a present mode. AI generates whole pages from a brief with style directions and offers page-wide Restyle, Theme and Summarize. Export to Word runs locally through the built-in html2docx converter (native, editable OOXML; no print-to-PDF detour).
- **AI:** separate BYOK providers for web search, image generation and image/video analysis; new Codex App Server provider; Ask AI quotes the selected text and keeps it highlighted while it runs; custom AI panel text size; blocked requests retry through the Chromium network stack.
- **App:** global AutoSave setting shared by every editor; AI panel text size and chat spellcheck toggles (genoffice#249); Czech (cs) UI locale (genoffice#259); Save As defaults to the document's folder; PDF export no longer aborts on CJK file paths on Windows.
- **Docs:** Export as HTML; comments and replies edit in place from the comments pane; the caret can leave a trailing table (genoffice#266); spellcheck re-marks text as soon as it is re-enabled; AI edits are character-precise on partial selections; zoom keeps the scroll position; pasting a cell from Sheets takes the destination font.
- **Sheets:** Find no longer freezes on wide or streamed grids; Replace searches as you type; cached values of external-workbook formulas are kept instead of #ERROR! (genoffice#235); "number stored as text" is a warning, not an error (genoffice#236); paste repeats into the target range like Excel; filter criteria survive save/reopen; saves retry when Windows locks the file; many Excel-fidelity fixes for column widths, row heights, charts, slicers, number formats and CJK fonts.
- **Slides:** PDF export works for large presentations (genoffice#264); EMF/WMF picture fonts and East Asian theme fonts resolve correctly; decks with missing layouts or embedded styles still open; outline-only pie slices render.
- **PDF:** highlight and underline geometry aligns with the text; Shift+arrows extend the selection instead of paging.
- **Markdown:** Find and replace (Ctrl+F / Ctrl+H) (genoffice#253); mermaid code blocks render as diagrams (genoffice#263); better print quality.
- Thanks to community contributors @GoodScholar, @aniruddhaadak80 and @Sun8854, and to @hanyscz, @qgzln, @zyp997, @bisslot, @krakotay and @Ben03151 for the reports.
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
The docs vitest config aliases the bare package name to src/index.ts as a
string prefix, so the new /browser entry point resolved to index.ts/browser
and every suite importing src/shared/ipc.ts failed to load.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The number-stored-as-text cell renders correctly, so the Univer popup title should read Warning, not Error. Share the copy between the en-US boot locale and the runtime language switcher so one cannot regress. Fixes#236.
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
* fix(ai-provider): allow keyless custom endpoints for local models
* fix(ai-provider): use fresh response for second header assertion
---------
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
- Docs: Word-style dark page, phased fast open for long documents, fonts embedded in the DOCX, spellcheck toggle, hyperlink editing, and ~80 Word fidelity fixes (CJK/JP metrics, header/footer, tables, anchored pictures)
- Sheets: hold formula recalculation while file data streams in, large-workbook scroll/load performance, combo charts, duplicate/unique conditional formatting by display text, RTL frozen-pane fix, workbooks whose ZIP entries carry a leading slash
- Slides: MTX-compressed embedded font support, CJK/Latin face selection and PowerPoint script fallbacks, theme colors kept on paragraph defaults and bullets, more reliable AI edits with a layout audit after each batch
- PDF: AI page ops, text block move/align, notes and markup editing, watermark and header/footer, form check boxes, metadata; the cloud Export as Word fallback is removed, conversion is always on-device
- AI: Gemini tool schema translation, OpenCode Zen/Go providers, markdown tables and code blocks in chat, current date in the system prompt
- Shell: Office-style ribbon collapse across all editors, native Windows ARM64 installer, BUILD_DIR override for packaging
Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
* fix(ai-panels): clear restored history transcript on New chat (fixes#195)
* ci: retrigger checks after prosemirror teardown flake
* fix(docs): drop staged attachments on New chat
---------
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
Co-authored-by: merrick-2002 <merrick@mainfunc.ai>
* test(slides): cover agent run lifecycle persistence
* test(slides): preserve good images when one attachment read fails
* fix(slides): preserve agent runs across lifecycle boundaries
* style(slides): format agent lifecycle test
* docs(contributing): document TAVILY_API_KEY in env var table
* ci: retrigger checks after flaky unhandled error in docs test job
---------
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
* fix(ai-provider): omit deprecated temperature on Gemini 3.6/3.7/3.5-lite
* style: wrap long geminiTurn call for prettier
* fix(ai-provider): keep default temperature for Gemini 3 family
Google strongly recommends the default temperature (1.0) for Gemini 3 since lower values may cause looping or degraded reasoning. Match the whole gemini-3 family instead of specific ids.
---------
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
* fix(slides): serialize concurrent saves to prevent file corruption
The save() function had no in-flight guard: double-tap Ctrl+S, a user-initiated save during the 30s autosave, or a close-save during autosave all issued overlapping slides:save IPC calls. The main-process handler writes via createWriteStream directly to the target path — two concurrent writes interleave zip streams, truncate the pptx, or fail with EPERM/EBUSY on Windows, then both completions race on the dirty flags. Queue saves behind a promise-chain tail (the same pattern as the docs save serializer and PR #149's markdown fix) so only one write runs at a time.
* fix(slides): mock UI-only imports in save-serialization test (fix canvas in CI)
---------
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
* fix(ai-provider): sanitize Gemini tool schemas for union types and refs (fixes#186)
Gemini FunctionDeclarations use a restricted Schema where type must be
a single string (not an array) and items a single Schema, and $ref/definitions
are not understood. Docs insert_chart/edit_chart use type ['number','null']
and ['string','null'] for nullable values, which caused HTTP 400:
Unknown name "type" at '...value.items': Proto field is not repeating,
cannot start list.
because the proto's type field is not repeated.
- Add sanitizeGeminiSchema() that resolves $ref (paragraphs), collapses
union types to single type + nullable: true, ensures items is single
schema (tuple -> first), and strips definitions.
- Use it in geminiTurn via toGeminiParameters() so every tool's
inputSchema is Gemini-compatible.
Fixes#186
* style: fix formatting for gemini sanitize helper
---------
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>