GitLab Duo Agent Platform (beta) runs into error while processing request, not usable afterwards

Checklist

Summary

After a bit of usage, GitLab Duo Agent Platform (Beta) reports a generic error and can't be used anymore.

See below for logs.

Restarting VS Code doesn't fix the problem.

Steps to reproduce

Just use GitLab Duo Agent Platform for a while, no particular pattern, previously it worked for a couple of messages. Now, it's failing constantly and can't even process the initial message in a new session.

What is the current bug behavior?

GitLab Duo Agent Platform just states: "There was an error processing your request. Please try again or contact support if the issue persists."

What is the expected correct behavior?

GitLab Duo Agent Platform should process the message and keep responding to each subsequent message.

Relevant logs and/or screenshots

Sometimes, there are errors related to GraphQL, e.g. Error fetching workflow: GraphQL request "query: getDuoWorkflowEvents" failed with

Screenshot: image

The GitLab Workflow output contains many messages like this one:

Unable to merge security findings reports.
    Cannot read properties of null (reading 'status')
    TypeError: Cannot read properties of null (reading 'status')
        at hasEmptyReport (/home/me/.vscode-server/extensions/src/desktop/gitlab/security_findings/get_all_security_reports.ts:46:10)
        at /home/me/.vscode-server/extensions/src/desktop/gitlab/security_findings/get_all_security_reports.ts:43:79
        at Array.filter (<anonymous>)
        at validFindingReports (/home/me/.vscode-server/extensions/src/desktop/gitlab/security_findings/get_all_security_reports.ts:43:66)
        at ske (/home/me/.vscode-server/extensions/src/desktop/gitlab/security_findings/get_all_security_reports.ts:78:22)
        at processTicksAndRejections (node:internal/process/task_queues:105:5)
        at Function.getState (/home/me/.vscode-server/extensions/src/desktop/current_branch_refresher.ts:185:28)
        at t.refresh (/home/me/.vscode-server/extensions/src/desktop/current_branch_refresher.ts:130:25)
        at Timeout._onTimeout (/home/me/.vscode-server/extensions/src/desktop/current_branch_refresher.ts:124:7)

Possible fixes

Edited by Martin Klinke