Commit Graph
34 Commits
Author SHA1 Message Date
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
ANIRUDDHA ADAKandAniruddha Adak 959df83061 fix(ai-provider): allow keyless custom endpoints for local models (#229)
* 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>
2026-09-07 11:08:41 +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
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 d8e233ca7f docs(contributing): document TAVILY_API_KEY in env var table (#207)
* 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>
2026-09-04 18:31:33 +08:00
ANIRUDDHA ADAKandAniruddha Adak 2910486203 feat(ai-search): add Tavily web search fallback via TAVILY_API_KEY (#194)
* feat(ai-search): add Tavily web search fallback via TAVILY_API_KEY

* style(ai-search): prettier-format Serper catch block

---------

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-04 18:30:58 +08:00
ANIRUDDHA ADAKandAniruddha Adak 4770d9ceb4 fix(ai-provider): keep default temperature for the Gemini 3 family (#193)
* 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>
2026-09-04 18:24:02 +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 f30a3012bc fix(ai-provider): return ok:false on non-JSON 200 instead of throwing (#191)
Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-09-04 12:23:00 +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 2dab773410 fix(ai-provider): sanitize Gemini tool schemas for union types and refs (fixes #186) (#187)
* 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>
2026-09-04 12:22:26 +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
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
ANIRUDDHA ADAKandAniruddha Adak 7eb5d59b59 fix(sheets): scan the whole file for error checking on streamed workbooks (#134)
The Error Checking button only walked Univer's in-memory matrix, so on streamed workbooks it reported the loaded region's errors and either blocked formula-mode files until preload finished or labeled above-cap results as partial. Route it through a paged scan of the underlying file (journal edits included, same budgets as Ctrl+F), jump to the first error after the active cell across all sheets, and load the hit's range before scrolling to it. The full-load gate and the three partial-scan status strings become dead code and are removed.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-08-26 11:45:28 +08:00
ANIRUDDHA ADAKandAniruddha Adak 72a4a42db1 fix(ai-provider): skip malformed SSE frames instead of killing the AI turn (#151)
A proxy truncating one SSE frame or injecting a non-JSON keep-alive caused JSON.parse to throw inside the for-await loop, unwinding the entire turn with a cryptic parser error. Wrap each protocol adapter's event parse in try/catch that skips the bad frame and continues — the same tolerance philosophy the tool-call JSON repair already applies.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-08-26 11:24:45 +08:00
ANIRUDDHA ADAKandAniruddha Adak b1a01e24da fix(ai-provider): release SSE reader when the consumer abandons the stream mid-flight (#150)
sseLines acquired a ReadableStream reader but had no try/finally: when a consumer threw inside the for-await loop (the standard path for in-band gateway errors like quota or moderation), the generator's .return() ran with no cleanup — the reader stayed locked and the underlying socket was not returned to the pool until GC finalized it. Wrap the read loop in try/finally that cancels the reader and releases the lock.

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
2026-08-26 11:23:23 +08:00
ANIRUDDHA ADAKandAniruddha Adak f81dd3d5b9 fix(markdown): wait for in-flight saves during close instead of silently failing (#149)
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>
2026-08-26 11:23:02 +08:00
ANIRUDDHA ADAKandAniruddha Adak 7a814dbd23 fix(sheets): keep filter-hidden rows out of full-sheet find results (#133)
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>
2026-08-25 15:56:27 +08:00
ANIRUDDHA ADAKandAniruddha Adak bc1dceb85d fix(sheets): row-batch over-cap sidecar reads so streaming survives big viewports (#140)
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>
2026-08-25 15:35:47 +08:00
ANIRUDDHA ADAKandAniruddha Adak da3b1ca780 fix(slides): sweep generated-page temp files with a TTL at startup (#141)
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>
2026-08-25 11:47:14 +08:00
ANIRUDDHA ADAKandAniruddha Adak cc8cff49a0 feat(sheets): cross-highlight the active cell's row and column (#132)
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>
2026-08-24 19:20:03 +08:00
ANIRUDDHA ADAK afc6711d9c fix(sheets): extend Ctrl+F beyond the loaded window on streamed workbooks (#131) 2026-08-24 07:20:10 +08:00