Skip to content

fix(mcp): advertise sessions reconnect tools to agents - #4182

Open
binaricat wants to merge 3 commits into
mainfrom
fix/4181-mcp-session-reconnect-discoverability
Open

binaricat wants to merge 3 commits into
mainfrom
fix/4181-mcp-session-reconnect-discoverability

Conversation

@binaricat

Copy link
Copy Markdown
Owner

Summary

Agents on builds that already include #3935 (session_reconnect / session_recover) still reported “no reconnect MCP action” and fell back to host_open (new tab). Those tools are deferred under load_netcatty_tools toolset sessions, but MCP server instructions and the netcatty-mcp skill omitted that toolset.

Change

  • Mention sessions in MCP instructions + skill load guidance.
  • Prefer session_reconnect / session_recover over host_open for disconnected in-scope sessions.
  • Extend instructions unit test.

No reconnect implementation changes; tools stay deferred (not promoted to core).

Note on releases

v1.1.90 predates #3935, so that build truly has no reconnect MCP tool. This PR only fixes discoverability on post-#3935 main; the capability itself ships with the next release that includes #3935.

Related #4181
Related #3935

Test plan

  • node --test electron/mcp/netcattyMcpInstructions.test.cjs (2/2 PASS)
  • Smoke: after loading sessions, agent can call session_reconnect on a disconnected scoped tab without opening a new host tab

@binaricat

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T17:07:56.996801Z 3bf4c9d Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 3bf4c9df1a

ℹ️ 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".

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