Commit Graph
86 Commits
Author SHA1 Message Date
NIHoa f2f5fbd454 fix(docs): improve trailing table editing (#272)
* fix(docs): allow typing after trailing tables

* fix(docs): use text cursor after trailing tables

* fix(docs): delete empty tables from cell cursor

* fix(docs): keep inserted tables at section width
2026-09-10 11:51:32 +08:00
ANIRUDDHA ADAKandAniruddha Adak 12026fd21a fix(shell): include xls in the sheets recents filter family (#273)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-10 11:50:29 +08:00
merrick-2002andGenOffice d24c964a3e Sync snapshot (2026-09-09) (#271)
- **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>
2026-09-09 18:19:13 +08:00
ANIRUDDHA ADAKandAniruddha Adak fa58fff047 fix(sheets): use -1 for unfrozen axis when opening frozen panes (#270)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-09 16:15:00 +08:00
NIHoa 785d3f3705 fix(pdf): align markup selection geometry (#269) 2026-09-09 16:14:50 +08:00
merrick-2002andClaude Fable 5.1 f303cfd591 fix(docs): resolve the @genoffice/ai-provider/browser subpath in vitest (#268)
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>
2026-09-09 15:59:13 +08:00
Sun8854andSun8854 d2fecab77a feat(ai-provider): add Codex app-server integration (#267)
Co-authored-by: Sun8854 <Sun8854@users.noreply.github.com>
2026-09-09 11:33:16 +08:00
ANIRUDDHA ADAKandAniruddha Adak 953595e2f1 fix(docs): preserve scroll position when zooming (#258)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-08 21:15:16 +08:00
ANIRUDDHA ADAKandAniruddha Adak d84d4e37bc fix(markdown): improve print quality with @page margins and high-DPI styles (#260)
- Adds @page margins (2cm) for proper page layout
- Adds print-color-adjust: exact for color fidelity
- Adds break-inside: avoid for tables, code blocks, images
- Adds img max-width: 100% !important for print fidelity
- Fixes issue #211: printed text quality is visibly degraded

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-08 21:14:29 +08:00
ANIRUDDHA ADAKandAniruddha Adak 41a6e1564e test(docs): cover mixed-width section page boxes (issue #246) (#257)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-08 21:13:05 +08:00
ANIRUDDHA ADAKandAniruddha Adak d144ab1f40 test(sheets): cover multi-match-per-row find navigation (issue #220) (#250)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-08 21:12:01 +08:00
ANIRUDDHA ADAKandAniruddha Adak 5b7bcc75fb test(markdown): cover print HTML builder output (#262)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-08 21:03:28 +08:00
NIHoa d3665e4ee2 fix slides PDF export for large presentations (#264) 2026-09-08 20:39:41 +08:00
ANIRUDDHA ADAKandAniruddha Adak 22931f523a fix(sheets): label force-string popup as warning not error (#247)
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>
2026-09-07 18:04:43 +08:00
ANIRUDDHA ADAKandAniruddha Adak 2e805f1635 fix(slides): clear staged attachments on New chat (#234)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-07 18:03:50 +08:00
ANIRUDDHA ADAKandAniruddha Adak 6d16796094 fix(docs): decline Windows reserved names for auto file naming (#242)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-07 11:10:19 +08:00
ANIRUDDHA ADAKandAniruddha Adak 4e1c6330d1 fix(sheets): drop staged attachments on New chat (#239)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-07 11:10:00 +08:00
ANIRUDDHA ADAKandAniruddha Adak a612503ad6 fix(pdf): suffix Windows reserved auto-rename bases (#237)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-07 11:09:47 +08:00
ANIRUDDHA ADAKandAniruddha Adak f59f931594 fix(sheets): guard replaceOccurrences against empty needle (#233)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-07 11:09:26 +08:00
ANIRUDDHA ADAKandAniruddha Adak 47999fd925 fix(shell): normalize recents ext filter dots case and whitespace (#231)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-07 11:09:04 +08:00
ANIRUDDHA ADAKandAniruddha Adak eda6baabc4 fix(shell): reject Windows reserved and trailing-dot rename names (#230)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-07 11:08:53 +08:00
merrick-2002andGenOffice 69b4ce0560 Sync snapshot (2026-09-06) (#243)
- 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>
2026-09-07 00:18:14 +08:00
f2c3d0879d fix(docs): drop staged attachments on New chat (#224)
* 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>
2026-09-06 11:17:28 +08:00
d9769d1c12 fix(ai-panels): clear restored history transcript on New chat (fixes #195) (#209)
* fix(ai-panels): clear restored history transcript on New chat (fixes #195)

* ci: retrigger checks after prosemirror teardown flake

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
Co-authored-by: merrick-2002 <merrick@mainfunc.ai>
2026-09-06 11:13:43 +08:00
ANIRUDDHA ADAKandAniruddha Adak a5b5903939 fix(docs): complete ruler tab cycle with Bar, hide clear stops (#223)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:12:31 +08:00
ANIRUDDHA ADAKandAniruddha Adak 8630d11bfe feat(markdown): localize zoom control labels (#222)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:11:33 +08:00
ANIRUDDHA ADAKandAniruddha Adak 09fd67ba0d fix(shell): harden Home rename validation (#221)
* fix(shell): harden Home rename validation

* fix(shell): allow control-char range in rename gate

* ci: retrigger checks after prosemirror teardown flake

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:11:22 +08:00
ANIRUDDHA ADAKandAniruddha Adak 1ee24070ff fix(slides): clear answered clarifications on New chat (#219)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:10:53 +08:00
ANIRUDDHA ADAKandAniruddha Adak ea13074930 fix(slides): route saveAs through the save queue (#218)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:10:43 +08:00
ANIRUDDHA ADAKandAniruddha Adak 4d277b5538 fix(sheets): trim spaces in whole-cell replace paths (#216)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:10:19 +08:00
ANIRUDDHA ADAKandAniruddha Adak 449f03a866 fix(sheets): keep trailing newlines in clipboard TSV fields (#215)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:09:56 +08:00
ANIRUDDHA ADAKandAniruddha Adak 41f87f3a12 fix(sheets): reject out-of-grid Go To refs at validation (#214)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:09:44 +08:00
ANIRUDDHA ADAKandAniruddha Adak 99dfbc1fdf feat(ai-panels): RTL-aware chrome and auto-direction messages in slides/sheets/pdf/markdown (part of #13) (#203)
* feat(ai-panels): RTL-aware chrome and auto-direction messages in slides/sheets/pdf/markdown (part of #13)

* fix(markdown): close RTL ternary paren in assistant message branch

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:09:19 +08:00
ANIRUDDHA ADAKandAniruddha Adak 567ad37013 feat(docs): per-side and inside table borders in ribbon (fixes #165) (#200)
* feat(docs): per-side and inside table borders in ribbon (fixes #165)

* style(docs): prettier-wrap border button props

* fix(docs): drop unused props from IconBorderDashedFrame

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-06 11:08:54 +08:00
Lusheng WU 360ce0625e fix(slides): preserve agent runs across lifecycle boundaries (#208)
* 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
2026-09-04 18:32:19 +08:00
ANIRUDDHA ADAKandAniruddha Adak 9439d3eae9 feat(docs): RTL-aware AI panel chrome and auto-direction messages (part of #13) (#202)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-04 18:31:56 +08:00
ANIRUDDHA ADAKandAniruddha Adak 4846ace175 fix(slides): serialize concurrent saves to prevent file corruption (#155)
* 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>
2026-09-04 12:25:58 +08:00
ANIRUDDHA ADAKandAniruddha Adak eec2737dd0 fix(ai-panels): clear preview marker on read rejection so thumbnails retry (#192)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-04 12:23:18 +08:00
ANIRUDDHA ADAKandAniruddha Adak 6f7178097c fix(sheets,slides): forward stopReason so max_tokens truncation recovers (#190)
* fix(sheets,slides): forward stopReason so max_tokens truncation recovers

* fix(sheets,slides): satisfy exactOptionalPropertyTypes for stopReason

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-04 12:22:47 +08:00
ANIRUDDHA ADAKandAniruddha Adak e833fff87f fix(slides): skip width overflow check on vertical text bodies (#160)
The layout audit flagged ALL vertical-text bodies (vert/eaVert/wordArtVert) as width overflow because it compared pre-rotation run.x/widthPx against innerW. The renderer keeps horizontal layout convention in the lines, so run.x/widthPx describe the pre-rotation advance — comparing them against innerW false-positives on every vertical box. Skip the width check when vert is set (height check via contentHeight still applies). Adds regression test.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-03 17:43:30 +08:00
konghaojie-k2 f105f366e2 feat ai settings for the per-turn output token cap (#185)
Every app's AI IPC handler computed `request.maxTokens ?? 8192`, and no
renderer ever sends maxTokens — so the per-turn output budget was a
hardcoded 8192 that BYOK users could not change. For a reasoning model
that cap is shared with thinking: probed against api.deepseek.com/v1 with
max_tokens=3000, usage came back completion_tokens=3000 /
reasoning_tokens=3000 with zero content deltas and finish_reason=length,
i.e. the model never started answering. At the observed ~129 tok/s the
8192 default is exactly the ~60s "empty reply" users reported.

Thinking cannot simply be switched off for these models: registry.ts pins
the *direct* deepseek endpoint to non-thinking because its transcript
could not round-trip reasoning, while modelEchoesReasoning() documents
that DeepSeek V4 rejects tool turns unless the reasoning is echoed back.
So the honest lever is the budget, not the switch.

- AiSettings.maxOutputTokens (absent = default, so existing settings
  files keep behaving identically), clamped to [1024, 131072] when read
  and when typed: a hand-edited or mistyped value can never be forwarded
  to an endpoint verbatim.
- docs/sheets/slides main handlers resolve the cap through
  maxOutputTokensOf(settings); markdown and pdf share docs' ai:stream
  channel, so all six apps follow the setting from one place.
- Settings ▸ AI model: a numeric field (clamped on blur) labelled in all
  19 languages.
- sheets' aiSettingsInputSchema is .strict(), so it had to learn the key
  or saving settings would have started failing.
2026-09-03 14:58:48 +08:00
konghaojie-k2 99d376b3c3 fix markdown/pdf ai panels surfacing a truncated reply as "no reply" (#184)
A BYOK reasoning model can spend the whole output budget on thinking and
close the turn with finish_reason=length and no prose at all. The loop
already reports that as `truncated`, and docs appends aiTruncatedNote to
the bubble, but markdown and pdf destructure only
{text, cancelled, turnLimit} — so the run rendered the bare "(no reply)"
(while an empty "(no reply)" turn also made the following turns look like
the assistant had stopped listening).

Probe against api.deepseek.com/v1 (max_tokens=50/3000, thinking on by
default): completion_tokens == reasoning_tokens, content deltas never
start, finish_reason=length — reasoning tokens are billed against
max_tokens, at ~129 tok/s (≈ the agent default cap of 8192 in 60s).

Both panels now take `truncated` and append the note exactly like docs;
aiTruncatedNote is added to all 19 locales of both apps, copied from
apps/docs/src/renderer/i18n/ai/*.ts so the wording stays uniform.
2026-09-03 14:51:12 +08:00
merrick-2002andGenOffice 9f971edafa Sync snapshot (2026-09-02) (#181)
- Docs: DOCX rendering and pagination fidelity (page borders, VML pictures, header/footer images, cross-page tables, anchored floats, character-unit indents, CJK typography)
- Docs: more reliable PDF export for huge documents; AI rewrites keep the replaced content's formatting
- Sheets: merge workbooks; Excel-standard keyboard shortcuts; PDF export with header/footer variants and pictures
- Sheets: rendering, conditional formatting, chart and formula fidelity fixes; right-to-left sheet support
- Slides: WordArt text warp, improved text layout and font substitution; AI table edits keep formatting

Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
2026-09-03 00:12:17 +08:00
konghaojie-k2 93b8938c45 fix docs per-section page margins and pct table widths (#177)
* fix docs canvas losing per-section left page margins

The editor pads .doc-page by the FIRST section's margins (--page-pad) and
only ever gave later sections their own wrap width, never their own x
offset. A document whose opening section is full-bleed (w:pgMar
w:left="0", typical for a cover page) therefore lost the 30mm left margin
on every following page: body blocks kept the correct width but were
glued to the paper edge, leaving a dead band on the right.

sectionWidthSpecs now emits a real dx (the block's section marginLeft
minus the canvas inset). It rides the existing visual-translate channel,
composes with column/vAlign offsets, and is neutralized while measuring,
so page slicing is untouched. Gap header/footer strips follow their own
section inset (--gap-ml on the gap box) instead of being pinned to the
first section's column; table gaps keep the canvas target.

Vertical margins were already per-page (the gap bands carry each
section's top/bottom), which is why only the horizontal offset leaked.

* fix docs pct-width tables spanning the whole paper

w:tblW type="pct" (and AutoFit to Window, which parses as 100%) is a share
of the section's TEXT COLUMN. Both rendered a bare width:100%, which
resolves against the canvas' padding box — and that box is padded by the
FIRST section's margins. A document opening with a full-bleed cover
section (w:pgMar w:left="0") therefore laid every later table across the
whole paper, hanging past the right edge as soon as the body sections'
own left inset was applied.

Both paths now resolve through the per-block --doc-content-w that
sectionWidthSpecs already delivers (unset → the old percentage, so
single-section documents are byte-identical). Protected tables get the
same treatment; nested tables keep their cell-relative % since they
inherit the outer table's --doc-content-w.
2026-09-02 20:06:25 +08:00
Muhammad Shaheer 3548a80817 fix: rotated table cell dblclick-to-edit in slides (#171) 2026-08-31 15:09:10 +08:00
merrick-2002andGenOffice 2239cce9e7 Sync snapshot (2026-08-30) (#168)
- Docs: DOCX rendering fidelity - drop caps, hidden (vanish) runs, paragraph pattern shading, floating-table anchoring and clamping, footnote sizing, justified-line spacing
- Docs: editing - page breaks split the paragraph correctly, URLs auto-linkify, Insert Hyperlink prefills from the selection, more stable table pagination
- Sheets: large streamed workbooks are splittable and formula-capable for the AI; copy_range carries live formulas; range sort up to 200k cells; 1M-cell copies over 2x faster
- Sheets: correctness - sort by raw values, shared-formula edits, typed cached strings, empty-string cells, note edits reach the save; risky structural deletes are rejected up front
- Sheets: AI chat can export sheets as standalone files; the formula bar grows to fit wrapped formulas
- Slides: right-to-left support - paragraph direction toggle, RTL tables, mirrored margins and bullets
- Slides: rendering - scaled gradients, embedded fonts, complex-script shaping, chart plot layouts and legends, theme-override colors
- Shell: open documents by dropping them onto the window; per-type document icons for OS file associations
- AI: localized busy message for overloaded providers; degenerate tool loops stopped with a unified turn budget
- Markdown: prompts to save before pasting images into untitled documents

Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
2026-08-30 21:26:55 +08:00
konghaojie-k2andClaude 583a045212 feat(markdown): prompt to save before pasting images into untitled docs (#162)
Co-authored-by: Claude <noreply@anthropic.com>
2026-08-27 18:14:38 +08:00
konghaojie-k2andClaude 607c77086f feat(shell): open documents dropped onto the window (#161)
Dropping a local file from Explorer/Finder anywhere over the app previously
did nothing visible: the navigation guard blocks Chromium's default
navigate-to-file, so drops were silently swallowed.

Add a preload-side bridge (@genoffice/electron-utils/drop-open, installed by
every surface's preload) that resolves dropped files via webUtils and forwards
recognized documents to the shell over one IPC channel. The shell routes each
path through the normal File > Open pipeline, reveals its window when the drop
landed in a detached editor, and shows the existing "not supported" dialog for
known legacy formats. Page-level drop zones that cancel their events (AI
attachment panels, slides image insert) keep priority.

While files hover, Home shows a pointer-events-none drop overlay (tokens only,
i18n key in all 19 locales).

The bridge module gets its own package subpath export so sandboxed preloads
bundle only it — importing the barrel would pull node builtins into sandboxed
preloads (bundled) or leave a bare require (externalized), both fatal there.

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-27 18:14:28 +08:00
merrick-2002andGenOffice 0a2c25d483 Sync snapshot (2026-08-26) (#159)
- Sheets: CSV export and save support, Excel-matching data validation
- Docs: image, shape, WordArt, and chart rendering fixes
- Slides: downloadable font catalog with a missing-font banner
- Slides: better AI text layout and a speaker-notes tool

Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
2026-08-26 17:34:55 +08:00
ANIRUDDHA ADAKandAniruddha Adak 9711a4507c fix(shell): surface project IPC failures and AI settings save/test errors (#156)
ProjectPanel's createProject/renameProject/deleteProject calls had no error handling: an IPC rejection (disk error, permission denied) produced an unhandled rejection, onRefresh never ran, and the optimistic UI state was already cleared — the project silently didn't appear/rename/delete. SettingsModal's save() left dirty=true forever on failure with no feedback, and test() dropped rejections leaving the status pill blank. Add try/catch with window.alert for project ops (matching the sibling file-rename pattern) and .catch handlers that surface errors in the existing UI.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-08-26 14:34:26 +08:00