Files
genoffice/apps/docs/tests/ai-continuation.test.ts
T
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

16 lines
638 B
TypeScript

import { describe, expect, it } from 'vitest'
import { DEFAULT_MAX_TURNS } from '@genoffice/agent-core'
import { DOCS_CONTINUE_INSTRUCTION } from '../src/renderer/ai/continuation'
describe('Docs AI continuation', () => {
it('uses the suite-wide unified turn budget', () => {
expect(DEFAULT_MAX_TURNS).toBe(100)
})
it('instructs continuation to preserve completed work', () => {
expect(DOCS_CONTINUE_INSTRUCTION).toContain('existing conversation and document state')
expect(DOCS_CONTINUE_INSTRUCTION).toContain('only the outstanding work')
expect(DOCS_CONTINUE_INSTRUCTION).toContain('Do not repeat edits')
})
})