[Linux/Ubuntu] Infinite loading on "Provide Feedback" submission due to CSP TrustedTypes violation ('lexical')

Environment:

  • OS: Ubuntu / Linux

  • Application: Antigravity IDE (Gemini Desktop)

Steps to Reproduce:

  1. Open the IDE on a Linux environment.

  2. Navigate to SettingsProvide Feedback.

  3. Fill in the feedback form and click the “Submit” button.

  4. The button state changes to “Submitting…” and spins infinitely.

Actual Behavior:

  • The feedback is never sent (no POST request is dispatched in the Network tab).

  • The UI gets stuck in a deadlock.

  • Opening the Developer Tools (Console) reveals that the action was blocked by a Content Security Policy (CSP) violation regarding the lexical framework, along with an internal dependency injection error.

Expected Behavior:

  • The feedback should be submitted successfully without being blocked by CSP.

Logs & Technical Details: The core issue is that the text editor framework (lexical) is missing from the trusted-types allowlist in the app’s CSP configuration.

1. CSP Violation Error (Blocking the execution):

text

Creating a TrustedTypePolicy named ‘lexical’ violates the following Content Security policy directive: “trusted-types amdLoader cellRendererEditorText collapsedCellPreview defaultWorkerFactory diffEditorWidget diffReview domLineBreaksComputer dompurify dompurifyMermaid editorGhostText editorViewLayer mermaid notebookRenderer stickyScrollViewLayer tokenizeToString notebookChatEditController richScreenReaderContent renderCodeBlock google#safe”. The action has been blocked.

2. Internal Dependency Injection Error:

text

ERR [createInstance] ooe depends on UNKNOWN service agentSessions.: Error: [createInstance] ooe depends on UNKNOWN service agentSessions.

at jrs.y (vscode-file://vscode-app/usr/share/antigravity/resources/app/out/vs/workbench/workbench.desktop.main.js:5934:4186)

Proposed Fix: Please add 'lexical' to the trusted-types directive in the Content Security Policy header/meta tag of the Electron shell/webview.