From ed440b8647f5ba0ce96e6644e2580be8e266e3c5 Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Mon, 16 Feb 2026 11:04:52 +0100 Subject: [PATCH 1/3] fix: make summary service appId for the task specific Signed-off-by: Jana Peper --- lib/Service/SessionSummaryService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/SessionSummaryService.php b/lib/Service/SessionSummaryService.php index 9631caba..da62a28d 100644 --- a/lib/Service/SessionSummaryService.php +++ b/lib/Service/SessionSummaryService.php @@ -57,7 +57,7 @@ private function generateSummaries(array $sessions): void { $task = new Task(TextToText::ID, [ 'input' => $prompt, - ], 'assistant', $session->getUserId()); + ], 'assistant:summary-service', $session->getUserId()); $output = $this->taskProcessingService->runTaskProcessingTask($task); $session->setSummary($output['output']); $session->setIsSummaryUpToDate(true); From 8eb513a1af5f6a5b78487cb1bb858a5f42b64fa1 Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Mon, 16 Feb 2026 11:09:21 +0100 Subject: [PATCH 2/3] fix: psalm issues Signed-off-by: Jana Peper --- composer.json | 4 +- composer.lock | 108 +++++++++++++++++++-------------------- tests/psalm-baseline.xml | 6 --- 3 files changed, 56 insertions(+), 62 deletions(-) diff --git a/composer.json b/composer.json index 3b7f9071..5d55bcf6 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": "^8.1", + "php": "^8.2", "erusev/parsedown": "^1.7", "henck/rtf-to-html": "^1.2", "html2text/html2text": "^4.3", @@ -40,7 +40,7 @@ "sort-packages": true, "optimize-autoloader": true, "platform": { - "php": "8.1" + "php": "8.2" }, "autoloader-suffix": "Assistant" } diff --git a/composer.lock b/composer.lock index 9f640298..37f07272 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9dbd950eb30116a6d75e71a01e759622", + "content-hash": "61bda201a1b64c9f0f9acf79425dfd96", "packages": [ { "name": "erusev/parsedown", @@ -347,16 +347,16 @@ }, { "name": "smalot/pdfparser", - "version": "v2.12.2", + "version": "v2.12.3", "source": { "type": "git", "url": "https://github.com/smalot/pdfparser.git", - "reference": "370b7e983fafecb787a9bcfd73baab8038212ad1" + "reference": "61c9bcafcb92899b76d8ebda6508267bae77e264" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/smalot/pdfparser/zipball/370b7e983fafecb787a9bcfd73baab8038212ad1", - "reference": "370b7e983fafecb787a9bcfd73baab8038212ad1", + "url": "https://api.github.com/repos/smalot/pdfparser/zipball/61c9bcafcb92899b76d8ebda6508267bae77e264", + "reference": "61c9bcafcb92899b76d8ebda6508267bae77e264", "shasum": "" }, "require": { @@ -392,9 +392,9 @@ ], "support": { "issues": "https://github.com/smalot/pdfparser/issues", - "source": "https://github.com/smalot/pdfparser/tree/v2.12.2" + "source": "https://github.com/smalot/pdfparser/tree/v2.12.3" }, - "time": "2025-09-04T08:49:09+00:00" + "time": "2026-01-08T08:04:04+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -628,16 +628,16 @@ }, { "name": "kubawerlos/php-cs-fixer-custom-fixers", - "version": "v3.35.1", + "version": "v3.36.0", "source": { "type": "git", "url": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers.git", - "reference": "2a35f80ae24ca77443a7af1599c3a3db1b6bd395" + "reference": "e1f97f6463f0b2a22e0dd320948a04132ff9c501" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/2a35f80ae24ca77443a7af1599c3a3db1b6bd395", - "reference": "2a35f80ae24ca77443a7af1599c3a3db1b6bd395", + "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/e1f97f6463f0b2a22e0dd320948a04132ff9c501", + "reference": "e1f97f6463f0b2a22e0dd320948a04132ff9c501", "shasum": "" }, "require": { @@ -647,7 +647,7 @@ "php": "^7.4 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^9.6.24 || ^10.5.51 || ^11.5.32" + "phpunit/phpunit": "^9.6.24 || ^10.5.51 || ^11.5.44" }, "type": "library", "autoload": { @@ -668,7 +668,7 @@ "description": "A set of custom fixers for PHP CS Fixer", "support": { "issues": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/issues", - "source": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/tree/v3.35.1" + "source": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/tree/v3.36.0" }, "funding": [ { @@ -676,7 +676,7 @@ "type": "github" } ], - "time": "2025-09-28T18:43:35+00:00" + "time": "2026-01-31T07:02:11+00:00" }, { "name": "myclabs/deep-copy", @@ -789,16 +789,16 @@ "source": { "type": "git", "url": "https://github.com/nextcloud-deps/ocp.git", - "reference": "f2c8f4bc174bed3f1c8edebb5b61bdd1e4fd8efe" + "reference": "6ce31e5724b4a720bb968aafd4f6affc1f22e5c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/f2c8f4bc174bed3f1c8edebb5b61bdd1e4fd8efe", - "reference": "f2c8f4bc174bed3f1c8edebb5b61bdd1e4fd8efe", + "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/6ce31e5724b4a720bb968aafd4f6affc1f22e5c4", + "reference": "6ce31e5724b4a720bb968aafd4f6affc1f22e5c4", "shasum": "" }, "require": { - "php": "~8.1 || ~8.2 || ~8.3 || ~8.4", + "php": "~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5", "psr/clock": "^1.0", "psr/container": "^2.0.2", "psr/event-dispatcher": "^1.0", @@ -808,7 +808,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "33.0.0-dev" + "dev-master": "34.0.0-dev" } }, "notification-url": "https://packagist.org/downloads/", @@ -830,7 +830,7 @@ "issues": "https://github.com/nextcloud-deps/ocp/issues", "source": "https://github.com/nextcloud-deps/ocp/tree/master" }, - "time": "2025-12-03T00:53:16+00:00" + "time": "2026-02-13T01:14:34+00:00" }, { "name": "nextcloud/openapi-extractor", @@ -881,16 +881,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.6.2", + "version": "v5.7.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "3a454ca033b9e06b63282ce19562e892747449bb" + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb", - "reference": "3a454ca033b9e06b63282ce19562e892747449bb", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", "shasum": "" }, "require": { @@ -933,9 +933,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" }, - "time": "2025-10-21T19:32:17+00:00" + "time": "2025-12-06T11:56:16+00:00" }, { "name": "phar-io/manifest", @@ -1057,16 +1057,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.91.2", + "version": "v3.94.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "814b0b688eda28484a8bac5ba1b0ecf98d9065ef" + "reference": "bf90113c2d4f349a639df42045d36e78ffc25c9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/814b0b688eda28484a8bac5ba1b0ecf98d9065ef", - "reference": "814b0b688eda28484a8bac5ba1b0ecf98d9065ef", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/bf90113c2d4f349a639df42045d36e78ffc25c9a", + "reference": "bf90113c2d4f349a639df42045d36e78ffc25c9a", "shasum": "" }, "require": { @@ -1103,22 +1103,22 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.91.2" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.94.0" }, - "time": "2025-12-01T20:56:36+00:00" + "time": "2026-02-11T16:45:46+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "2.3.0", + "version": "2.3.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495" + "reference": "a004701b11273a26cd7955a61d67a7f1e525a45a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1e0cd5370df5dd2e556a36b9c62f62e555870495", - "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/a004701b11273a26cd7955a61d67a7f1e525a45a", + "reference": "a004701b11273a26cd7955a61d67a7f1e525a45a", "shasum": "" }, "require": { @@ -1150,9 +1150,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.2" }, - "time": "2025-08-30T15:50:23+00:00" + "time": "2026-01-25T14:56:51+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1475,16 +1475,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.30", + "version": "9.6.34", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "b69489b312503bf8fa6d75a76916919d7d2fa6d4" + "reference": "b36f02317466907a230d3aa1d34467041271ef4a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b69489b312503bf8fa6d75a76916919d7d2fa6d4", - "reference": "b69489b312503bf8fa6d75a76916919d7d2fa6d4", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b36f02317466907a230d3aa1d34467041271ef4a", + "reference": "b36f02317466907a230d3aa1d34467041271ef4a", "shasum": "" }, "require": { @@ -1506,7 +1506,7 @@ "phpunit/php-timer": "^5.0.3", "sebastian/cli-parser": "^1.0.2", "sebastian/code-unit": "^1.0.8", - "sebastian/comparator": "^4.0.9", + "sebastian/comparator": "^4.0.10", "sebastian/diff": "^4.0.6", "sebastian/environment": "^5.1.5", "sebastian/exporter": "^4.0.8", @@ -1558,7 +1558,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.30" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.34" }, "funding": [ { @@ -1582,7 +1582,7 @@ "type": "tidelift" } ], - "time": "2025-12-01T07:35:08+00:00" + "time": "2026-01-27T05:45:00+00:00" }, { "name": "psalm/phar", @@ -1989,16 +1989,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.9", + "version": "4.0.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5" + "reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5", - "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e4df00b9b3571187db2831ae9aada2c6efbd715d", + "reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d", "shasum": "" }, "require": { @@ -2051,7 +2051,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.10" }, "funding": [ { @@ -2071,7 +2071,7 @@ "type": "tidelift" } ], - "time": "2025-08-10T06:51:50+00:00" + "time": "2026-01-24T09:22:56+00:00" }, { "name": "sebastian/complexity", @@ -2890,11 +2890,11 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^8.1" + "php": "^8.2" }, "platform-dev": {}, "platform-overrides": { - "php": "8.1" + "php": "8.2" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 44e30f29..60226f84 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -5,12 +5,6 @@ --> - - - - - |DataResponse]]> - $serializedTasks])]]> $taskTypes])]]> From e73b24069b15483968558f9451afc0bc967f6af3 Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Mon, 16 Feb 2026 11:28:18 +0100 Subject: [PATCH 3/3] fix: psalm issues Signed-off-by: Jana Peper --- composer.json | 2 +- composer.lock | 16 ++++++++-------- lib/Controller/ChattyLLMController.php | 4 +++- psalm.xml | 2 +- tests/psalm-baseline.xml | 6 ++++++ 5 files changed, 19 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 5d55bcf6..ac9da356 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "nextcloud/ocp": "dev-master", "nextcloud/openapi-extractor": "^1.0.0", "phpunit/phpunit": "^9.5", - "psalm/phar": "6.7" + "psalm/phar": "6.15" }, "config": { "sort-packages": true, diff --git a/composer.lock b/composer.lock index 37f07272..4e1a2da7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "61bda201a1b64c9f0f9acf79425dfd96", + "content-hash": "b995b1ece010b137fcf219893ed53c99", "packages": [ { "name": "erusev/parsedown", @@ -1586,20 +1586,20 @@ }, { "name": "psalm/phar", - "version": "6.7.0", + "version": "6.15.0", "source": { "type": "git", "url": "https://github.com/psalm/phar.git", - "reference": "8eb3a469fa888c862b8a382f1fe1671b4e989f06" + "reference": "a787db2c1b9c4012c3a42a8ca753b4ddda7eaa5a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/psalm/phar/zipball/8eb3a469fa888c862b8a382f1fe1671b4e989f06", - "reference": "8eb3a469fa888c862b8a382f1fe1671b4e989f06", + "url": "https://api.github.com/repos/psalm/phar/zipball/a787db2c1b9c4012c3a42a8ca753b4ddda7eaa5a", + "reference": "a787db2c1b9c4012c3a42a8ca753b4ddda7eaa5a", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.2" }, "conflict": { "vimeo/psalm": "*" @@ -1615,9 +1615,9 @@ "description": "Composer-based Psalm Phar", "support": { "issues": "https://github.com/psalm/phar/issues", - "source": "https://github.com/psalm/phar/tree/6.7.0" + "source": "https://github.com/psalm/phar/tree/6.15.0" }, - "time": "2025-02-17T10:44:04+00:00" + "time": "2026-01-30T14:20:13+00:00" }, { "name": "psr/clock", diff --git a/lib/Controller/ChattyLLMController.php b/lib/Controller/ChattyLLMController.php index 99e11f2f..3de4b83d 100644 --- a/lib/Controller/ChattyLLMController.php +++ b/lib/Controller/ChattyLLMController.php @@ -422,7 +422,9 @@ public function getMessages(int $sessionId, int $limit = 20, int $cursor = 0): J array_shift($messages); } - return new JSONResponse(array_map(static function (Message $message) { return $message->jsonSerialize(); }, $messages)); + return new JSONResponse(array_map(static function (Message $message) { + return $message->jsonSerialize(); + }, $messages)); } catch (\OCP\DB\Exception $e) { $this->logger->warning('Failed to get chat messages', ['exception' => $e]); return new JSONResponse(['error' => $this->l10n->t('Failed to get chat messages')], Http::STATUS_INTERNAL_SERVER_ERROR); diff --git a/psalm.xml b/psalm.xml index 8998d653..553377da 100644 --- a/psalm.xml +++ b/psalm.xml @@ -6,7 +6,7 @@ + + + + + |DataResponse]]> + $serializedTasks])]]> $taskTypes])]]>