Skip to content

[Feature]: Hide AI Summary in case of LLM errors or timeouts #204

Description

@Aldjinn

What is the problem this feature would solve?

Is it possible to hide the AI Summary in case the AI provider isn't available? Currently an empty/blank box is shown.

Example:

Image
degoog  | ai-summary:pipeline stream failed TypeError: Invalid state: Controller is already closed
degoog  |  code: "ERR_INVALID_STATE"
degoog  |
degoog  |       at writeSse (/app/data/plugins/degoog-org-official-extensions-ai-summary/src/pipeline.js:9:14)
degoog  |       at <anonymous> (/app/data/plugins/degoog-org-official-extensions-ai-summary/src/pipeline.js:34:7)
degoog  |       at async start (/app/data/plugins/degoog-org-official-extensions-ai-summary/src/pipeline.js:79:27)
degoog  |
degoog  | ai-summary:pipeline stream failed DOMException {
degoog  |   line: 91,
degoog  |   column: 18,
degoog  |   sourceURL: "/app/data/plugins/degoog-org-official-extensions-ai-summary/src/pipeline.js",
degoog  |   stack: "abort@[native code]\ncancel@/app/data/plugins/degoog-org-official-extensions-ai-summary/src/pipeline.js:91:18\n@\n@\n@\n@",
degoog  |   code: 20,
degoog  |   name: "AbortError",
degoog  |   message: "The operation was aborted.",
degoog  |   INDEX_SIZE_ERR: 1,
degoog  |   DOMSTRING_SIZE_ERR: 2,
degoog  |   HIERARCHY_REQUEST_ERR: 3,
degoog  |   WRONG_DOCUMENT_ERR: 4,
degoog  |   INVALID_CHARACTER_ERR: 5,
degoog  |   NO_DATA_ALLOWED_ERR: 6,
degoog  |   NO_MODIFICATION_ALLOWED_ERR: 7,
degoog  |   NOT_FOUND_ERR: 8,
degoog  |   NOT_SUPPORTED_ERR: 9,
degoog  |   INUSE_ATTRIBUTE_ERR: 10,
degoog  |   INVALID_STATE_ERR: 11,
degoog  |   SYNTAX_ERR: 12,
degoog  |   INVALID_MODIFICATION_ERR: 13,
degoog  |   NAMESPACE_ERR: 14,
degoog  |   INVALID_ACCESS_ERR: 15,
degoog  |   VALIDATION_ERR: 16,
degoog  |   TYPE_MISMATCH_ERR: 17,
degoog  |   SECURITY_ERR: 18,
degoog  |   NETWORK_ERR: 19,
degoog  |   ABORT_ERR: 20,
degoog  |   URL_MISMATCH_ERR: 21,
degoog  |   QUOTA_EXCEEDED_ERR: 22,
degoog  |   TIMEOUT_ERR: 23,
degoog  |   INVALID_NODE_TYPE_ERR: 24,
degoog  |   DATA_CLONE_ERR: 25,
degoog  |   toString: [Function: toString],
degoog  | }

What is the feature you are proposing to solve the problem?

Add an option similar to "Only trigger on questions" to the AI Summary settings to hide the empty result in case of timeouts/errors.

Image

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions