nextcloud / nextcloud/integration_openai

Error submitting generated text to Collabora document

Open
#100 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
75
Forks
32
Avg merge
9d 8h
Merged PRs (30d)
4

Description

Which version of integration_openai are you using?

2.0.1

Which version of Nextcloud are you using?

v29.0.0 (docker)

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Firefox 126.0 - Brave Version 1.66.115

Describe the Bug

Submitting the generated text from "AI text generation" into a collabora (.odt) document by pressing the "Submit" button result in a "The server encountered a unknown error while parsing the [object command" error.

There is no error or warning in the Nexcloud logs.

collabora-smart-picker-ai

AI_ask

AI_answer

AI_error

Expected Behavior

The generated text should be inserted in the collabora document. This works fine with a markdown file (.md).

To Reproduce
  • Open a new collabora document (.odt)
  • Insert a smart picker and choose "AI text generation"
  • Enter your question and click on "Preview"
  • Click on "Submit"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using a new Collabora .odt document and the AI text generation smart picker, then compare the Submit flow with insertion into a markdown file. The report names no source file, test, or entry point, so trace the command parsing and document insertion path; done means generated text is inserted into the Collabora document without the parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.