I can confirm that this bug was gone for a while, and now it’s back.
When terminal is visible, AI chats fail. Here is the devtools output:
workbench.desktop.main.js:542 This document requires 'TrustedScript' assignment.
(anonymous) @ workbench.desktop.main.js:542
workbench.desktop.main.js:542 The JavaScript Function constructor does not accept TrustedString arguments. See https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor for more information.
workbench.desktop.main.js:139 Refused to create a TrustedTypePolicy named 'tokenizeToString' because a policy with that name already exists and the Content Security Policy directive does not 'allow-duplicates': "trusted-types amdLoader
cellRendererEditorText
defaultWorkerFactory
diffEditorWidget
diffReview
domLineBreaksComputer
dompurify
editorGhostText
editorViewLayer
notebookRenderer
stickyScrollViewLayer
tokenizeToString
safeInnerHtml
editorCppGhostText
standaloneColorizer
tokenizeToString
solidjs
aibubble
aibubble2
aibubbleSearch
streamingMarkdownPolicy
notebookChatEditController
mermaidDiagram
mermaidDiagram2
mermaidDiagramOuter".
SQ @ workbench.desktop.main.js:139
workbench.desktop.main.js:23 Uncaught Error: Failed to execute 'createPolicy' on 'TrustedTypePolicyFactory': Policy with name "tokenizeToString" already exists.
TypeError: Policy with name "tokenizeToString" already exists.
at SQ (workbench.desktop.main.js:139:11057)
at workbench.desktop.main.js:12033:49688
at SQ (workbench.desktop.main.js:139:11057)
at workbench.desktop.main.js:12033:49688
at workbench.desktop.main.js:25:12
workbench.desktop.main.js:55 WARN Missing property "rpcFileLoggerFolder" in oldValue. Filling with value from initValue. Please add a migration if necessary.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-toolsai.datawrangler' wants API proposal 'debugFocus' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-copilot-data-analysis' wants API proposal 'chatVariableResolver' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.python' wants API proposal 'terminalShellType' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-python.vscode-python-envs' wants API proposal 'terminalShellType' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.copilot-chat' wants API proposal 'chatReadonlyPromptReference' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-azuretools.vscode-azure-github-copilot' wants API proposal 'lmTools' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'vscjava.vscode-java-pack' wants API proposal 'lmTools' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'apidev.azure-api-center' wants API proposal 'chatParticipant' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:55 WARN Via 'product.json#extensionEnabledApiProposals' extension 'apidev.azure-api-center' wants API proposal 'languageModels' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:15022 The customer named _initialize has been holding on to the lock for 30s. This might be a problem.
(anonymous) @ workbench.desktop.main.js:15022
workbench.desktop.main.js:55 WARN [ms-python.python]: Cannot register 'python.venvPath'. This property is already registered.
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:8806 [KnowledgeBaseService] Error fetching git upstream URL: Error: No full commit provider registered
at iss.getGitUpstreamURL (workbench.desktop.main.js:542:340007)
at Gbs.getGitUpstreamUrl (workbench.desktop.main.js:8806:38365)
at Gbs.refresh (workbench.desktop.main.js:8806:38687)
getGitUpstreamUrl @ workbench.desktop.main.js:8806
workbench.desktop.main.js:13074 [transport] Connect error in unary AI connect ConnectError: [unauthenticated] Error
at t (workbench.desktop.main.js:12375:457550)
at async Object.getTeamCommands (workbench.desktop.main.js:585:88139)
at async vMo.loadTeamCommands (workbench.desktop.main.js:15030:2986) Object
error @ workbench.desktop.main.js:13074
workbench.desktop.main.js:15030 Failed to load team commands: ConnectError: [unauthenticated] Error
at t (workbench.desktop.main.js:12375:457550)
at async Object.getTeamCommands (workbench.desktop.main.js:585:88139)
at async vMo.loadTeamCommands (workbench.desktop.main.js:15030:2986)
loadTeamCommands @ workbench.desktop.main.js:15030
workbench.desktop.main.js:55 ERR [Extension Host] [otel.error] {"stack":"OTLPExporterError: Bad Request\n\tat IncomingMessage.<anonymous> (c:\\Program Files\\cursor\\resources\\app\\node_modules\\@opentelemetry\\otlp-exporter-base\\build\\src\\transport\\http-transport-utils.js:52:31)\n\tat IncomingMessage.emit (node:events:531:35)\n\tat endReadableNT (node:internal/streams/readable:1698:12)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:90:21)","message":"Bad Request","code":"400","name":"OTLPExporterError","data":"{\"error\":\"Trace spans collection is not enabled for this user\"}"}
error @ workbench.desktop.main.js:55
workbench.desktop.main.js:12343 [Extension Host] [otel.error] {"stack":"OTLPExporterError: Bad Request\n\tat IncomingMessage.<anonymous> (c:\\Program Files\\cursor\\resources\\app\\node_modules\\@opentelemetry\\otlp-exporter-base\\build\\src\\transport\\http-transport-utils.js:52:31)\n\tat IncomingMessage.emit (node:events:531:35)\n\tat endReadableNT (node:internal/streams/readable:1698:12)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:90:21)","message":"Bad Request","code":"400","name":"OTLPExporterError","data":"{\"error\":\"Trace spans collection is not enabled for this user\"}"}
Thf @ workbench.desktop.main.js:12343
workbench.desktop.main.js:55 WARN No search provider registered for scheme: vscode-remote, waiting
warn @ workbench.desktop.main.js:55
workbench.desktop.main.js:15371 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ workbench.desktop.main.js:15371
2workbench.desktop.main.js:15042 Error getting git root Error: spawn C:\Program Files\Git\cmd\git.exe ENOENT
isRepoReadyForBackgroundComposer @ workbench.desktop.main.js:15042
workbench.desktop.main.js:13258 Failed to get git telemetry attributes: Error: Failed to execute git
getGitAttributes @ workbench.desktop.main.js:13258
workbench.desktop.main.js:55 ERR [Extension Host] Unable to normalize image path: #
error @ workbench.desktop.main.js:55
workbench.desktop.main.js:12343 [Extension Host] Unable to normalize image path: #
Thf @ workbench.desktop.main.js:12343
workbench.desktop.main.js:9994 [composer] submitChatMaybeAbortCurrent errored! Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9988:7914)
at async bo (workbench.desktop.main.js:12254:3831)
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] submitChatMaybeAbortCurrent outer error Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9988:7914)
at async bo (workbench.desktop.main.js:12254:3831) Object
error @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] Failed to get complete AI response
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] Chat incomplete or aborted Object
_log @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] submitChatMaybeAbortCurrent errored! Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9983:18397)
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] submitChatMaybeAbortCurrent outer error Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9983:18397) Object
error @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] Failed to get complete AI response
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] Chat incomplete or aborted Object
_log @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] submitChatMaybeAbortCurrent errored! Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9983:18397)
at async Object.bo [as onSubmit] (workbench.desktop.main.js:12254:3831)
at async workbench.desktop.main.js:12042:143536
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] submitChatMaybeAbortCurrent outer error Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9983:18397)
at async Object.bo [as onSubmit] (workbench.desktop.main.js:12254:3831)
at async workbench.desktop.main.js:12042:143536 Object
error @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] Failed to get complete AI response
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] Chat incomplete or aborted Object
_log @ workbench.desktop.main.js:13074
workbench.desktop.main.js:13139 Error checking repo readiness: Error: Failed to execute git
(anonymous) @ workbench.desktop.main.js:13139
workbench.desktop.main.js:15371 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ workbench.desktop.main.js:15371
index.html?id=1dd7146f-48da-4774-b8c3-ca0ccc1e465a&origin=af5879e4-94a6-4d6b-aa49-866480482d91&swVersion=4&extensionId=jonathan-yeung.mark-sharp&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app&remoteAuthority=ssh-remote%2B7b22686f73744e616d65223a226f6666696365227d:281 Found unexpected service worker controller. Found: vscode-webview://11enlc0jchonpik86ln23fkuhn3dg23j377pm7ok7l89kdh7hd6o/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&id=35615df9-f36a-4a10-aa69-6ecef3842373&remoteAuthority=ssh-remote+7b22686f73744e616d65223a226f6666696365227d. Expected: service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&id=1dd7146f-48da-4774-b8c3-ca0ccc1e465a&remoteAuthority=ssh-remote+7b22686f73744e616d65223a226f6666696365227d. Waiting for controllerchange.
main.1c2bb264.js:2 Received Initialization Parameters: {"themeType":"dark","themeSetting":"vscode","licenseType":0,"editorMode":0,"editorDirectionality":"ltr","useDefaultMermaidThemes":false,"styleOverrides":{"fontSize":14,"fontFamily":""},"formatSettings":{"bulletListMarker":"asTyped","orderedListDelimiter":"asTyped","orderedListIncrementStyle":"asTyped","tableAlignment":0}}
main.1c2bb264.js:2 Adding Window Message Listener
main.1c2bb264.js:2 Sending 'webview-ready' Message to Extension
main.1c2bb264.js:2 Calculating Footnote Matches
main.1c2bb264.js:2 commonKeys:
main.1c2bb264.js:2 uniqueAnchorKeys:
main.1c2bb264.js:2 uniqueReferenceKeys:
main.1c2bb264.js:2 Disposing of Update Listener.
main.1c2bb264.js:2 Markdown document parsed into editor state.
main.1c2bb264.js:2 clearing history
main.1c2bb264.js:2 Executing 'ON_DOCUMENT_INITIALIZED' callback in collapsiblePlugin.
main.1c2bb264.js:2 Setting selection to anchor: 6, 0
main.1c2bb264.js:2 Processing element node 4 gaining focus
main.1c2bb264.js:2 HeaderTextNodeTransformer.onModification called for 6
main.1c2bb264.js:2 Adding Update Listener.
main.1c2bb264.js:2 An img element was found in the DOM with ID: ; src: https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a226f6666696365227d.vscode-resource.vscode-cdn.net/c%3A/Users/alex/.cursor-server/extensions/jonathan-yeung.mark-sharp-1.9.0-universal/build/#; alt:
main.1c2bb264.js:2 Sending message to extension to process image with id VynGIg; src #; alt .
3main.1c2bb264.js:2 An img element was found in the DOM with ID: ; src: https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a226f6666696365227d.vscode-resource.vscode-cdn.net/c%3A/Users/alex/.cursor-server/extensions/jonathan-yeung.mark-sharp-1.9.0-universal/build/#; alt:
vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a226f6666696365227d.vscode-resource.vscode-cdn.net/c%3A/Users/alex/.cursor-server/extensions/jonathan-yeung.mark-sharp-1.9.0-universal/build/#:1 Failed to load resource: the server responded with a status of 404 ()
workbench.desktop.main.js:55 ERR [Extension Host] Unable to normalize image path: #
error @ workbench.desktop.main.js:55
workbench.desktop.main.js:12343 [Extension Host] Unable to normalize image path: #
Thf @ workbench.desktop.main.js:12343
workbench.desktop.main.js:9994 [composer] submitChatMaybeAbortCurrent errored! Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9983:18397)
at async Object.bo [as onSubmit] (workbench.desktop.main.js:12254:3831)
at async workbench.desktop.main.js:12042:143536
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] submitChatMaybeAbortCurrent outer error Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9983:18397)
at async Object.bo [as onSubmit] (workbench.desktop.main.js:12254:3831)
at async workbench.desktop.main.js:12042:143536 Object
error @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] Failed to get complete AI response
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] Chat incomplete or aborted Object
_log @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] submitChatMaybeAbortCurrent errored! Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9988:7914)
at async bo (workbench.desktop.main.js:12254:3831)
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9994
workbench.desktop.main.js:13074 [composer] submitChatMaybeAbortCurrent outer error Error: [UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character
at ANd (workbench.desktop.main.js:50:67655)
at new ZBs (workbench.desktop.main.js:50:71872)
at new TWe (workbench.desktop.main.js:50:73340)
at TWe.with (workbench.desktop.main.js:50:72308)
at rpm.resolveRelativePath (workbench.desktop.main.js:14986:42831)
at workbench.desktop.main.js:10004:1172
at Array.map (<anonymous>)
at KK.getPopulatedContext (workbench.desktop.main.js:10004:1135)
at KK.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9988:7914)
at async bo (workbench.desktop.main.js:12254:3831) Object
error @ workbench.desktop.main.js:13074
workbench.desktop.main.js:9994 [composer] Failed to get complete AI response