Skip to content

Conversation

@julien-nc
Copy link
Member

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

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

Copy link
Contributor

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

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

🚀

@marcelklehr
Copy link
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 <[email protected]>
@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
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 <[email protected]>
@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
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

4 participants