MCPcopy
hub / github.com/composio-community/open-claude-cowork / appendToContent

Function appendToContent

renderer/renderer.js:1072–1090  ·  view source on GitHub ↗
(contentDiv, content)

Source from the content-addressed store, hash-verified

1070}
1071
1072function appendToContent(contentDiv, content) {
1073 if (!contentDiv.dataset.rawContent) {
1074 contentDiv.dataset.rawContent = '';
1075 }
1076 contentDiv.dataset.rawContent += content;
1077
1078 // Get current chunk container and append to it
1079 const container = getCurrentMarkdownContainer(contentDiv);
1080 container.dataset.rawContent += content;
1081 renderMarkdownContainer(container);
1082
1083 // Check for Anchor Browser live URL in content
1084 const browserInfo = extractBrowserUrl(contentDiv.dataset.rawContent);
1085 if (browserInfo && !activeBrowserSession) {
1086 addInlineBrowserEmbed(contentDiv, browserInfo.url, browserInfo.sessionId);
1087 }
1088
1089 saveState();
1090}
1091
1092function appendToThinking(contentDiv, content) {
1093 // Find or create thinking section (collapsible, above main content)

Callers 1

handleSendMessageFunction · 0.85

Calls 5

renderMarkdownContainerFunction · 0.85
extractBrowserUrlFunction · 0.85
addInlineBrowserEmbedFunction · 0.85
saveStateFunction · 0.85

Tested by

no test coverage detected