Skip to content

Fix WebMCP repository-first workflow - #62

Merged
erinepshovel-code merged 1 commit into
mainfrom
agent/webmcp-repository-first
Sep 3, 2026
Merged

erinepshovel-code merged 1 commit into
mainfrom
agent/webmcp-repository-first

Conversation

@erinepshovel-code

Copy link
Copy Markdown
Contributor

What changed

  • Move repository selection to step 1 and agent-work/skill selection to step 2.
  • Keep skill search and selection disabled until a repository establishes context.
  • Invalidate the prior skill, automatic refresh request, and handoff when the repository changes.
  • Restore URL state in repository-first order and present repository identity first in the handoff.
  • Add focused source-contract and browser-path regression coverage.

Verification

  • git diff --check
  • node --check src/assets/js/webmcp.js
  • node --check tests/site.spec.mjs
  • node --test tests/webmcp.test.mjs — 7/7 passed

Usage

Open /webmcp/, choose the target repository, then choose how the agent should work, state the outcome, and press Send. Changing the repository requires choosing the skill again.

hmmm

The new browser-path test is committed for the repository's authoritative CI/browser gate; focused local checks pass.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T16:31:49.693887Z 6de7c32 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@erinepshovel-code
erinepshovel-code merged commit 47a5c96 into main Sep 3, 2026
5 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6de7c32fd1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/assets/js/webmcp.js

repositorySelect?.addEventListener('change', () => {
if (currentHandoff) clearPublishedHandoff('Repository selection changed. Press Send again before the agent receives a new handoff.');
const skillWasCleared = clearSelectedSkill();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clear stale output when changing repositories

After a skill has been selected or a handoff has been sent, changing the repository clears selectedName and invalidates the tool but leaves [data-webmcp-output] displaying the previous repository, skill, or full handoff. The page can therefore show the new repository alongside an obsolete SELECTED REPOSITORY → SKILL or HUMAN → AGENT HANDOFF record; reset or replace that output as part of this invalidation.

Useful? React with 👍 / 👎.

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.

1 participant