{"version":"2.1.221","anchor":"chrome-bridge-activity-observer-runs-before-each-tool-call","canonical_anchor":"chrome-bridge-activity-observer-runs-before-each-tool-call","heading":"Chrome bridge: activity observer runs before each tool call","tier":"notice","area":"Chrome & Browser","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221\/e\/chrome-bridge-activity-observer-runs-before-each-tool-call","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221","markdown":"### Chrome bridge: activity observer runs before each tool call\n\nThe browser bridge now rechecks the connection before each tool call and fails clearly if it dropped.\n\n**What**\n\nThe browser bridge calls an optional observer before dispatching a tool call and re-validates the connection afterwards.\n\n**Details**\n\n- `onBeforeToolCall` is optional; errors from it are swallowed with a debug log\n- after the callback the bridge re-checks the connection and throws if it disconnected or the extension went away in the meantime\n\n**Evidence**\n\n`Chrome extension disconnected mid-call`\n\n- Area: Chrome & Browser\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 0\/5"}