Skip to content

🤖 refactor: remove mux.md link support#3568

Merged
ammario merged 2 commits into
mainfrom
mux-links-x2p6
Jun 15, 2026
Merged

🤖 refactor: remove mux.md link support#3568
ammario merged 2 commits into
mainfrom
mux-links-x2p6

Conversation

@ammar-agent

Copy link
Copy Markdown
Collaborator

Summary

Removes all mux.md link support — the end-to-end-encrypted share/paste feature — which has regressed and is no longer maintained. This strips the sharing UI, the link-consumption path, the signing service that existed solely to sign mux.md shares, the client library and its dependency, and the related preferences/docs. In the plan-file display, the former mux.md Share (copy link) action is replaced with a Copy file path action.

Background

The mux.md feature let users share assistant messages / transcripts to an external encrypted paste service (producing https://mux.md/<id>#<key> links), consume such links via web_fetch, and cryptographically sign shares. That product area has regressed and will no longer be maintained, so it's being removed wholesale.

Implementation

  • Sharing UI removed: ShareTranscriptDialog, ShareMessagePopover, ShareSigningBadges, the AssistantMessage "Share" button, the "Share transcript" workspace-menu item + SHARE_TRANSCRIPT keybind, and the telemetry-gated TelemetryEnabledContext/useLinkSharingEnabled (its only purpose was gating the share UI). The api.telemetry namespace itself is untouched.
  • Link consumption removed: web_fetch no longer special-cases mux.md URLs (no more client-side decrypt branch).
  • Signing removed: signingService + the orpc signing namespace/schemas/context wiring (only consumed by the two share components).
  • Plumbing removed: muxMd client lib, shareExpiration helpers, sharedUrlCache, SHARE_EXPIRATION_KEY/SHARE_SIGNING_KEY, the userPreferences.sharing block + its storage round-trip, the muxMdUrlOverride preload bridge, __MUX_MD_URL_OVERRIDE__ Vite define, and ambient global types.
  • Dependency: dropped @coder/mux-md-client.
  • Docs/skill: removed workspaces/sharing.mdx (+ image, nav, redirects), trimmed the telemetry doc's Share note, and regenerated the mux-docs built-in skill index.
  • Plan-file display: the propose_plan card's Share action is replaced with a Copy file path action that copies the plan's on-disk path (hidden when no path is available).

Validation

  • make static-check passes (lint, typecheck, formatting, docs-sync, code→docs links).
  • Targeted tests pass: web_fetch, userPreferences/appConfigOnDisk/userPreferencesStorage, ProposePlanToolCall, WorkspaceActionsMenuContent, AgentListItem, WorkspaceMenuBar, ProjectSidebar, SshPromptDialog.

Risks

  • Config self-heal: the sharing preferences block is gone; stale on-disk sharing keys are silently stripped by the zod schema on load (no migration needed, no crash).
  • Behavioral: assistant messages and plan cards no longer offer share-via-link; pasted mux.md URLs are now fetched as ordinary web pages (and will fail to decrypt, as expected). Low regression risk to unrelated flows since the change is almost entirely deletions.

Out of scope

  • packages/chat-components/ is a separately published rendering library used by the external mux.md viewer site and is not imported by the app, so it is left untouched.

Generated with mux • Model: anthropic:claude-opus-4-8 • Thinking: xhigh • Cost: n/a

Remove the mux.md end-to-end-encrypted share/paste feature, which has
regressed and is no longer maintained:

- Sharing UI: ShareTranscriptDialog, ShareMessagePopover, ShareSigningBadges,
  the AssistantMessage "Share" button, "Share transcript" menu/keybind, and
  the telemetry-gated link-sharing context.
- Consuming: web_fetch no longer special-cases mux.md URLs.
- Signing: signingService + orpc `signing` namespace/schemas (only used by
  mux.md sharing).
- Client lib, share-expiration prefs/storage, preload/vite/env overrides.
- Docs page, nav/redirects, @coder/mux-md-client dependency; regenerated
  built-in skill docs index.

Plan-file display: replace the "Share" (copy mux.md link) action with a
"Copy file path" action.
@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

@mintlify

mintlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Mux 🟢 Ready View Preview Jun 15, 2026, 10:25 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: fc17b80e83

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

@ammar-agent

Copy link
Copy Markdown
Collaborator Author

@codex review

Only change since your last review is a deterministic flake.nix offline-cache-hash bump (required after dropping the @coder/mux-md-client dependency); the Flake Hash Check now passes.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 87e9e39bc8

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

@ammario ammario merged commit f96aa91 into main Jun 15, 2026
24 checks passed
@ammario ammario deleted the mux-links-x2p6 branch June 15, 2026 22:54
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.

2 participants