MCPcopy
hub / github.com/steipete/oracle / logDomFailure

Function logDomFailure

src/browser/domDebug.ts:25–39  ·  view source on GitHub ↗
(Runtime: ChromeClient['Runtime'], logger: BrowserLogger, context: string)

Source from the content-addressed store, hash-verified

23}
24
25export async function logDomFailure(Runtime: ChromeClient['Runtime'], logger: BrowserLogger, context: string) {
26 if (!logger?.verbose) {
27 return;
28 }
29 try {
30 const entry = `Browser automation failure (${context}); capturing DOM snapshot for debugging...`;
31 logger(entry);
32 if (logger.sessionLog && logger.sessionLog !== logger) {
33 logger.sessionLog(entry);
34 }
35 await logConversationSnapshot(Runtime, logger);
36 } catch {
37 // ignore snapshot failures
38 }
39}
40

Callers 9

submitPromptFunction · 0.85
verifyPromptCommittedFunction · 0.85
waitForAssistantResponseFunction · 0.85
captureAssistantMarkdownFunction · 0.85
uploadAttachmentFileFunction · 0.85
ensureModelSelectionFunction · 0.85
ensurePromptReadyFunction · 0.85
domDebug.test.tsFile · 0.85

Calls 1

logConversationSnapshotFunction · 0.85

Tested by

no test coverage detected