Skip to content

Hide unconfigured media generation tools and guidance - #3155

Merged
webbrain-one merged 3 commits into
webbrain-one:mainfrom
esokullu:main
Oct 6, 2026
Merged

webbrain-one merged 3 commits into
webbrain-one:mainfrom
esokullu:main

Conversation

@webbrain-one

Copy link
Copy Markdown
Owner

No description provided.

dependabot Bot and others added 3 commits October 6, 2026 16:13
Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.30.0 to 1.31.0.
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](modelcontextprotocol/typescript-sdk@1.30.0...1.31.0)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.31.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…ver/modelcontextprotocol/sdk-1.31.0

build(deps): bump @modelcontextprotocol/sdk from 1.30.0 to 1.31.0 in /mcp-server
Copilot AI balanced review requested due to automatic review settings October 6, 2026 17:12
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

@esokullu is attempting to deploy a commit to the esokullu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@webbrain-one
webbrain-one merged commit 379adc8 into webbrain-one:main Oct 6, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Planner guidance incorrectly excludes supported Full-tier Dev-mode media generation.

Review effort: Balanced
Findings: 2 Medium severity · 2 Low severity

Open (4)
What changed in this PR

Adds configuration-aware generative-media availability across Chrome and Firefox.

Changes:

  • Hydrates and tracks valid media configuration.
  • Hides unavailable tools and adjusts planner guidance dynamically.
  • Adds availability tests and updates dependencies.
File Description
src/​chrome/​src/​background.js Hydrates and watches media settings.
src/​chrome/​src/​agent/​agent.js Propagates media availability into prompts and tools.
src/​chrome/​src/​agent/​tools.js Filters and conditionally documents media tools.
src/​chrome/​src/​agent/​planner.js Adds configuration-aware planner guidance.
src/​chrome/​src/​agent/​media-config.js Defines media availability messages.
src/​firefox/​src/​background.js Mirrors media-setting hydration and watching.
src/​firefox/​src/​agent/​agent.js Mirrors availability propagation.
src/​firefox/​src/​agent/​tools.js Mirrors tool filtering and guidance.
src/​firefox/​src/​agent/​planner.js Mirrors dynamic planner guidance.
src/​firefox/​src/​agent/​media-config.js Mirrors availability messages.
test/​generative-media-availability.mjs Tests configuration, hydration, prompts, and tools.
test/​run.js Updates integration assertions and tool counts.
package.json Includes availability tests in the media suite.
mcp-server/​package-lock.json Updates the MCP SDK lock entry.
Files not reviewed (1)
  • mcp-server/package-lock.json: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

return `${PLANNER_INTENT_SYSTEM_PROMPT}${opts.scheduledResume === true ? PLANNER_RESUME_RULE : ''}\n- Requested wbLocale for localized display fields: ${normalizePlannerLocale(opts.locale)}.${researchRule}${workflowRouting ? `\n\n${workflowRouting}` : ''}`;
const mediaStatus = opts.imageGenConfigured !== true ? GENERATIVE_MEDIA_SETUP_NOTE
: (opts.tier || 'full') !== 'full' ? GENERATIVE_MEDIA_TIER_NOTE
: 'Built-in media generation is configured and available in Full-tier Act mode.';
return `${PLANNER_INTENT_SYSTEM_PROMPT}${opts.scheduledResume === true ? PLANNER_RESUME_RULE : ''}\n- Requested wbLocale for localized display fields: ${normalizePlannerLocale(opts.locale)}.${researchRule}${workflowRouting ? `\n\n${workflowRouting}` : ''}`;
const mediaStatus = opts.imageGenConfigured !== true ? GENERATIVE_MEDIA_SETUP_NOTE
: (opts.tier || 'full') !== 'full' ? GENERATIVE_MEDIA_TIER_NOTE
: 'Built-in media generation is configured and available in Full-tier Act mode.';
// Provider settings are user-authored. Model tool arguments never select a host or key.
export const IMAGE_GEN_MODEL_KEY = 'imageGenModel';
export const GENERATIVE_MEDIA_SETUP_NOTE = 'Built-in media generation requires setup in Settings → Assistive Models → Generative Media.';
export const GENERATIVE_MEDIA_TIER_NOTE = 'Built-in media generation requires Full-tier Act mode.';
// Provider settings are user-authored. Model tool arguments never select a host or key.
export const IMAGE_GEN_MODEL_KEY = 'imageGenModel';
export const GENERATIVE_MEDIA_SETUP_NOTE = 'Built-in media generation requires setup in Settings → Assistive Models → Generative Media.';
export const GENERATIVE_MEDIA_TIER_NOTE = 'Built-in media generation requires Full-tier Act mode.';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants