Open-source AI browser agent for Chrome and Firefox (monorepo) ðŸ§
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
Merge origin/main into feat/clarify-timeout-finish (LinkedIn publish workflow adoption)
Emre Sokullu768af0a60c73
diff --cc src/chrome/src/agent/agent.jsindex 02d183253,a75d697ea..5744fffce--- a/src/chrome/src/agent/agent.js+++ b/src/chrome/src/agent/agent.js@@@ -3426,7 -3066,37 +3426,37 @@@ export class Agent extends LoopDetecto};}+ // A task that started on another site reaches LinkedIn's share composer+ // with no LinkedIn workflow bound. Its post is held to what a LinkedIn+ // task's post is: the live publish-post job is bound, as a GitHub+ // conditional repair binds its commit job above, and what the post must+ // contain is resolved for it. The post's submission record then binds its+ // stable URL and payload (_workflowSubmitBindingForAttempt). Returns the+ // bound workflow, or null when none can be bound.+ async _adoptLiveLinkedInPublishWorkflow(tabId, pageUrl) {+ const guard = this._planExecutionGuards.get(tabId);+ if (!guard?.enabled || guard.siteWorkflow?.job) return null;+ const live = this._resolvePlannerSiteWorkflow(pageUrl, { request_kind: 'execute', site_job: 'publish-post' });+ if (live?.adapterName !== 'linkedin' || live.job?.id !== 'publish-post') return null;+ guard.siteWorkflow = live;+ guard.siteWorkflowUrl = pageUrl;+ guard.requiresStateChange = true;+ guard.requiresSubmission = true;+ guard.verifiedSubmissionEvidence = false;+ guard.workflowTerminalEvidence = null;+ guard.workflowMetadataRequirementsResolved = false;+ guard.workflowMetadataRequirementsIncomplete = true;+ this._armWorkflowJobRequiredEvidence(tabId, guard);+ const messages = this.conversations.get(tabId);+ if (messages?.[0]?.role === 'system') messages[0].content = this._buildSystemPrompt(this._effectiveRunMode(tabId), tabId);+ this._recordAdapterWorkflowTrace(this.currentRunId.get(tabId), live);+ await this._ensureWorkflowMetadataRequirements(tabId, {+ provider: this._activeProvider(tabId), costState: this.currentCostState.get(tabId) || null,+ }, guard.taskText, pageUrl);+ return live;+ }+- async _workflowPreSubmitDispatchBlock(tabId, name, args = {}, detectedSubmit = null, provider = this._activeProvider(tabId)) {+ async _workflowPreSubmitDispatchBlock(tabId, name, args = {}, detectedSubmit = null, provider = this._activeProvider(tabId), advisories = null) {const socialBlock = await this._socialPublicationPreSubmitBlock(tabId, name, args, detectedSubmit, provider);if (socialBlock) return socialBlock;await this._captureMastodonPublicationAttempt(tabId, name, args, detectedSubmit, provider);diff --cc src/firefox/src/agent/agent.jsindex 5c9b8c557,644da4197..5b77e5a49--- a/src/firefox/src/agent/agent.js+++ b/src/firefox/src/agent/agent.js@@@ -2983,7 -2623,37 +2983,37 @@@ export class Agent extends LoopDetecto};}+ // A task that started on another site reaches LinkedIn's share composer+ // with no LinkedIn workflow bound. Its post is held to what a LinkedIn+ // task's post is: the live publish-post job is bound, as a GitHub+ // conditional repair binds its commit job above, and what the post must+ // contain is resolved for it. The post's submission record then binds its+ // stable URL and payload (_workflowSubmitBindingForAttempt). Returns the+ // bound workflow, or null when none can be bound.+ async _adoptLiveLinkedInPublishWorkflow(tabId, pageUrl) {+ const guard = this._planExecutionGuards.get(tabId);+ if (!guard?.enabled || guard.siteWorkflow?.job) return null;+ const live = this._resolvePlannerSiteWorkflow(pageUrl, { request_kind: 'execute', site_job: 'publish-post' });+ if (live?.adapterName !== 'linkedin' || live.job?.id !== 'publish-post') return null;+ guard.siteWorkflow = live;+ guard.siteWorkflowUrl = pageUrl;+ guard.requiresStateChange = true;+ guard.requiresSubmission = true;+ guard.verifiedSubmissionEvidence = false;+ guard.workflowTerminalEvidence = null;+ guard.workflowMetadataRequirementsResolved = false;+ guard.workflowMetadataRequirementsIncomplete = true;+ this._armWorkflowJobRequiredEvidence(tabId, guard);+ const messages = this.conversations.get(tabId);+ if (messages?.[0]?.role === 'system') messages[0].content = this._buildSystemPrompt(this._effectiveRunMode(tabId), tabId);+ this._recordAdapterWorkflowTrace(this.currentRunId.get(tabId), live);+ await this._ensureWorkflowMetadataRequirements(tabId, {+ provider: this._activeProvider(tabId), costState: this.currentCostState.get(tabId) || null,+ }, guard.taskText, pageUrl);+ return live;+ }+- async _workflowPreSubmitDispatchBlock(tabId, name, args = {}, detectedSubmit = null, provider = this._activeProvider(tabId)) {+ async _workflowPreSubmitDispatchBlock(tabId, name, args = {}, detectedSubmit = null, provider = this._activeProvider(tabId), advisories = null) {const socialBlock = await this._socialPublicationPreSubmitBlock(tabId, name, args, detectedSubmit, provider);if (socialBlock) return socialBlock;await this._captureMastodonPublicationAttempt(tabId, name, args, detectedSubmit, provider);