#697·genoffice

docs: AI fontSize has no upper bound

Author: aniruddhaadak80Created Sep 22, 2026Updated Sep 22, 2026

Problem

setFont/textbox fontSize validation is positivity-only, so one AI op can write w:sz=2000000000 and corrupt the save round-trip.

Evidence

  • apps/docs/src/renderer/ai/ops.ts:301-302,561-562
  • apps/docs/src/renderer/ai/floating-ops.ts:374-378

Suggested fix

Reject fontSize outside a Word-plausible range (e.g. 0.5-400pt) in validation + textbox path.

Acceptance

  • fontSize 1e9 errors; legit sizes round-trip.