diff --git a/package.json b/package.json index ccf0e4ec..c54f5992 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "fetch-h2": "^3.0.2", "json5": "^2.2.3", "marked": "^4.0.8", - "refact-chat-js": "v2.0.1-alpha.7", + "refact-chat-js": "~v2.0.1-alpha.9", "uuid": "^9.0.1", "vscode-languageclient": "^7.0.0" }, diff --git a/src/sidebar.ts b/src/sidebar.ts index 9c2c2cd8..14d6d483 100644 --- a/src/sidebar.ts +++ b/src/sidebar.ts @@ -905,7 +905,9 @@ export class PanelWebview implements vscode.WebviewViewProvider { const initialState = await this.createInitialState(chat_thread, tabbed); let stringifiedInitialState = JSON.stringify(initialState); - stringifiedInitialState = stringifiedInitialState.replace("", ""); + stringifiedInitialState = stringifiedInitialState.replace(/\<\/script>/gi, ""); + + return `