# Bug AA-245 - AI actions dropdown missing in editor when creating a work package via the global create button

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

## 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 | Jonas Jabari |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Log in as a user who can use AI text actions (an LLM connection and text actions are configured).
    
2.  Click the global &quot;+&quot; button in the header and choose a work package type (e.g. &quot;Bug&quot;).
    
3.  On the &quot;Create new work package&quot; page (no project preselected), look at the description editor toolbar.
    
4.  Optionally select a project in the &quot;Project&quot; field.
    

### What is the buggy behavior?

*   The AI actions dropdown (&quot;Proofread&quot; / split button) is missing from the description editor toolbar.
    
*   It does not show up after a project is selected either.
    
*   In project-scoped create forms and dialogs, the same editor shows the dropdown.
    

### What is the expected behavior?

1.  The AI actions dropdown is available in the description editor of the global create form.
    
2.  If the available actions depend on the project, the dropdown updates as soon as a project is selected (or is hidden until then).
    

### Technical note

*   Without a project, `AiActionsService#descriptionContext` returns `null`, so `actionsFor` returns no actions and the plugin renders no dropdown.
    
*   The CKEditor plugin (`op-ai-actions`) loads the actions only once, on `editor.ui` `ready`. It does not react to later project or type changes.
    
*   Selecting a project does not recreate the editor (`FormattableEditFieldComponent#initialize` only resets the content), and the editor context holds `change.pristineResource`, which never gets the selected project.
    
*   A fix needs both: reload the actions when project or type change, and give the plugin the current project and type (not the pristine resource). This touches the core and the CKEditor build repo.
    

### Screenshots and other files

_See the attached screenshot: global create form on QA Stage, editor toolbar without the AI dropdown._

### Environment information

**OpenProject installation type**

*   [x] Other: QA Stage (edge)

**OpenProject version**

18.0 (release/18.0)

**Browser**

*   [x] Firefox

**Operating System**

*   [x] Mac OS X

**Language**

*   [x] English
