# Bug AA-235 - AI result pane stops showing the result partway

Project: Stream Agents & Assistants
Status: closed
URL: https://community.openproject.org/work_packages/AA-235

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Work |  |
| Labor costs |  |

## Description

**Summary**

The AI result pane sometimes stops showing the result partway, although the pane is fully visible. This was observed several times while testing the text actions, but the cause is not confirmed yet.

**Steps to reproduce**

1.  Open a work package in full view.
2.  In the description editor, run a text action, for example "Rewrite".
3.  Watch the result in the pane.

A reliable reproduction is not known yet. Repeated runs of all actions with long texts, selections, German text, tables and code, on a local instance and on QA, did not show the problem: the pane always showed the complete result.

**Actual behavior**

The result stops partway and the rest does not appear.

**Expected behavior**

The pane shows the complete result.

**Working theory**

Two mechanisms were found that produce this symptom when forced. Neither has been confirmed as the cause of the observed cases.

*   If the background job dies mid-run (deploy, restart, out-of-memory kill), the pane keeps the partial text and shows "Generating…" indefinitely. The re-executed `AI::TextTransformJob` returns because the run is no longer `queued`, so the run stays `running` without an error or Try again.
*   If the result contains an unclosed `<macro …>` block or an unclosed HTML comment (`<!--`), the pane finishes but shows only the text before it.
