Skip to content

fork seams: announce the thread menu's MCP profile lines (MCP profile design PR 3, step 1); also restores the HO5 announcement lost in #777 - #807

Merged
scuttletoby merged 4 commits into
mainfrom
fork/seams-mcp-profile-menu
Nov 22, 2026
Merged

scuttletoby merged 4 commits into
mainfrom
fork/seams-mcp-profile-menu

Conversation

@scuttletoby

@scuttletoby scuttletoby commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

MCP profile design PR 3, thread menu: step 1 of "Adding a seam line" in docs/fork/updates.md (the list only). No code change.

What and why

The thread menu gets an MCP profile entry: it shows the thread's effective profile (the resolver's result, "cut down to the parent's" for a child) and lets a client that may change settings pick a profile for that thread or clear the pick, writing only mcpThreadProfiles[threadId] ("A change applies from the next message"). The entry's logic and runtime are fork files (apps/web/src/components/fork/mcpProfile/, from #804). Upstream's menu files need these lines, announced here (since 2026-11-21):

  • apps/web/src/components/threadActionMenu.logic.ts (new entry): the import, one menu id type in ThreadActionMenuId (a line of its own, before | "delete";, so no upstream line changes), one optional state field, and ...ForkMcpMenu.mcpProfileMenuItems(state.forkMcpProfile), before the Copy item.
  • apps/web/src/hooks/useThreadActionMenu.ts (new entry): the import, forkMcpProfile: ForkMcp.readMcpProfileMenuState(threadRef), in the build call, and if (ForkMcp.runIfMcpProfileMenuAction(threadRef, action)) return; after the permission check.
  • apps/web/src/components/Sidebar.tsx (new entry): the same three for the sidebar's own thread menu (clicked.value in place of action).

The state is read synchronously (a runtime module the fork file loads in the background), so neither menu waits before it opens and upstream's menu tests, which mock react and the state modules, pass unchanged.

Also restores the HO5 announcement lost in #777

#774 announced the HO5 ("Hand off now", handoff divider, waiting banner) lines, but #777's squash merge, from a branch made before #774, dropped every one of them from main's .github/fork-seams.json (compare it at 73f3a76 and at e0e01b9). This PR puts each HO5 line back exactly as it was at 73f3a76, since 2026-11-21:

  • threadActionMenu.logic.ts, useThreadActionMenu.ts, Sidebar.tsx: the HO5 lines sit in the same entries as the MCP profile lines above (one key per file; HO5's why first, then this PR's).
  • ChatView.tsx, chat/TimelineUserMessageRow.tsx, chat/V2LifecycleRow.tsx: HO5's own entries, as they were.

No HO5 line is changed, added or left out; the file has no duplicate key.

Step 2

The code is on branch fork/mcp-profile-thread-menu (pushed, no pull request), on top of #804. It moves these lines to added. Checked: fork-seam-check.cjs --config-ref <this branch> origin/main fork/mcp-profile-thread-menu is green; against main's list it is red (the three files have no entry), as expected. The pull request for it follows once this and #804 merge.

Checks

  • node .github/scripts/fork-seam-check.cjs --config-ref origin/main origin/main HEAD: green.
  • node .github/scripts/fork-seam-check.test.cjs: 114/114 on this tree (no announced line is already in its file).
  • After the HO5 restore: both checks above green again, and fork-seam-check.cjs --config-ref origin/fork/seams-mcp-profile-menu origin/main origin/fork/mcp-profile-thread-menu green.
  • State: if step 2 never lands, the announcement expires after 14 days; fork-follow then refuses it until it is renewed or removed with a list-only PR.

General vs project

General: seam-list entries for a fork feature (MCP profiles) any user of a T3 fork can use. Nothing here is about one project.

Upstream fit: no upstream file changes here; the step 2 lines are one import, one state field and one call each, and the entry lives in fork files.

MCP profile design PR 3

🤖 Generated with Claude Code

@scuttletoby scuttletoby changed the title fork seams: announce the thread menu's MCP profile lines (MCP profile design PR 3, step 1) fork seams: announce the thread menu's MCP profile lines (MCP profile design PR 3, step 1); also restores the HO5 announcement lost in #777 Nov 21, 2026
scuttletoby and others added 2 commits November 21, 2026 20:08
… design PR 3, step 1)

List only. The thread menu gets the MCP profile entry: the thread's
effective profile, and the owner's pick or clear for a client that may
change settings. Its logic and runtime are fork files
(apps/web/src/components/fork/mcpProfile/); upstream's menu files need
four lines in threadActionMenu.logic.ts and three each in
useThreadActionMenu.ts and Sidebar.tsx, announced here. The code is on a
branch pushed without a pull request until this merges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The squash merge of #777 dropped every HO5 announced line from
.github/fork-seams.json. Restore them exactly as they were, inside the
same per-file entries as this PR's MCP profile lines (one key per file).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scuttletoby
scuttletoby force-pushed the fork/seams-mcp-profile-menu branch from 27ad3fa to b568288 Compare November 21, 2026 20:08
# Conflicts:
#	.github/fork-seams.json
@scuttletoby
scuttletoby merged commit 238ff6a into main Nov 22, 2026
30 checks passed
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