feat: add error handling for content scripts

This commit is contained in:
Simon
2026-01-21 19:17:54 +08:00
parent 4153db866f
commit af133470e1
4 changed files with 41 additions and 9 deletions
@@ -140,6 +140,8 @@ export interface AgentCommandProtocol {
export interface ContentScriptQueryProtocol {
/** Check if there's an active task for this tab, returns true if mask should be shown */
'content:shouldShowMask': () => boolean
/** Report content script initialization error to background */
'content:error': (error: { message: string; url: string }) => void
}
// ============================================================================