Skip to content

Check if ContextAgentInteraction exists - #378

Merged
julien-nc merged 2 commits into
mainfrom
fix/377/check-ContextAgentInteraction-exists
Oct 15, 2025
Merged

Check if ContextAgentInteraction exists#378
julien-nc merged 2 commits into
mainfrom
fix/377/check-ContextAgentInteraction-exists

Conversation

@julien-nc

@julien-nc julien-nc commented Oct 13, 2025

Copy link
Copy Markdown
Member

before using it when checking if we just received a response for an agency confirmation.

This prevents the assistant to work in NC 30.

I checked if the same mistake was made with ContextAgentInteraction or ContextAgentAudioInteraction somewhere else, looks good.

closes #377

@kyteinsky kyteinsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@marcelklehr

Copy link
Copy Markdown
Member

Can we remove these from the psalm blacklist if this is fixed or do we still need these entries? Would be nice to get the insights if we're using classes without checking if the exist first: https://github.com/nextcloud/assistant/blob/main/psalm.xml#L38-L43

@julien-nc
julien-nc force-pushed the fix/377/check-ContextAgentInteraction-exists branch from 4d01f27 to fc45682 Compare October 13, 2025 13:36
…cking if we just received a response for an agency confirmation

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc
julien-nc force-pushed the fix/377/check-ContextAgentInteraction-exists branch from fc45682 to f7124d4 Compare October 14, 2025 09:24
@julien-nc

Copy link
Copy Markdown
Member Author

@marcelklehr I removed <referencedClass name="OCP\TaskProcessing\EShapeType" /> but all the other ones are needed because they were added after 30 and we support 30.

@julien-nc
julien-nc force-pushed the fix/377/check-ContextAgentInteraction-exists branch 2 times, most recently from 51c2bb2 to b02a3f5 Compare October 14, 2025 15:46
…laces we are sure it's fine

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc
julien-nc force-pushed the fix/377/check-ContextAgentInteraction-exists branch from b02a3f5 to 1b7640c Compare October 14, 2025 17:08
@julien-nc

Copy link
Copy Markdown
Member Author

@marcelklehr Weirdly enough, Psalm is not aware of the class_exist check later in the same boolean expression. We need to isolate the check in a wrapping if. See vimeo/psalm#7980

@julien-nc
julien-nc merged commit afda737 into main Oct 15, 2025
17 checks passed
@julien-nc
julien-nc deleted the fix/377/check-ContextAgentInteraction-exists branch October 15, 2025 10:31
@janepie janepie mentioned this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.8.0 cannot work on NC30, missing class ContextAgentInteraction

3 participants