Skip to content
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1c379a7
web: add /pricing page (Free / Pro / Enterprise)
lawrencecchen Jun 26, 2026
5508109
pricing: gate cmux Vault behind SHOW_VAULT flag (off until it ships)
lawrencecchen Jun 26, 2026
1cd4250
pricing: add Team plan ($35/user/month)
lawrencecchen Jun 26, 2026
5c53722
pricing: remove Compare plans table; make tier cards sticky
lawrencecchen Jun 26, 2026
8b9b058
pricing: sticky compare-table header, drop heading/divider, wider con…
lawrencecchen Jun 26, 2026
a9a8e02
pricing: make the sticky compare header actually pin
lawrencecchen Jun 26, 2026
bb6aa5d
Add cmux Pro plan: landing CTA, /pro page, one-click Stack checkout
lawrencecchen Jul 1, 2026
44e469a
Address review: lapse reconcile at VM create, expiry check, banner st…
lawrencecchen Jul 1, 2026
9ab8310
Replace homepage Pro upsell with a /pricing page
lawrencecchen Jul 1, 2026
aa7597f
macOS: add Upgrade to cmux Pro entrypoints
lawrencecchen Jul 1, 2026
90ebf6a
Merge remote-tracking branch 'origin/main' into feat-pro-plan
lawrencecchen Jul 1, 2026
da582e9
Fix Swift file length budget after palette wiring
lawrencecchen Jul 1, 2026
8e4bc47
Merge remote-tracking branch 'origin/feat-pricing-page' into feat-pro…
lawrencecchen Jul 2, 2026
916091e
Adopt feat-pricing-page pricing page; flag checkout; sidebar Pro badge
lawrencecchen Jul 2, 2026
4204341
Pro pricing: $30/month billed annually, $45 month-to-month
lawrencecchen Jul 2, 2026
2e55c59
pricing: gate hosted networking behind SHOW_HOSTED_NETWORKING (off)
lawrencecchen Jul 2, 2026
6b2897c
PostHog feature flags for the Pro rollout + flag lint rules
lawrencecchen Jul 2, 2026
be7e736
lint-feature-flags: repo-relative registry paths, grep untracked files
lawrencecchen Jul 2, 2026
28c82f2
Add first-party client config API
lawrencecchen Jul 4, 2026
90e05bd
WIP checkpoint: pro badge styles, mobile connect accessory, pricing p…
lawrencecchen Jul 4, 2026
b1c67fa
Add in-app Pro pricing surfaces
lawrencecchen Jul 4, 2026
3270a4a
Align in-app pricing with public pricing UI
lawrencecchen Jul 4, 2026
78a19e9
Match app pricing sticky header background
lawrencecchen Jul 4, 2026
7b5e7c5
Fix app pricing sticky header
lawrencecchen Jul 4, 2026
d261653
Rename sidebar Pro badge to Upgrade
lawrencecchen Jul 4, 2026
74ca083
Send signed-out Pro upgrades straight to checkout
lawrencecchen Jul 4, 2026
97f2dba
Open Pro checkout in system browser
lawrencecchen Jul 4, 2026
764c621
Fix app pricing dark background
lawrencecchen Jul 4, 2026
53aa778
Merge remote-tracking branch 'origin/main' into feat-pro-plan
lawrencecchen Jul 4, 2026
060e1bb
Add flagged upgrade pricing and enterprise lead form
lawrencecchen Jul 4, 2026
180f08e
Stabilize upgrade flag build and web route tests
lawrencecchen Jul 4, 2026
5ac3516
Update Swift length budget for upgrade surfaces
lawrencecchen Jul 4, 2026
0ebab67
Retarget restored app pricing tabs
lawrencecchen Jul 4, 2026
9c7d2ff
Prefer tagged web origin for app pricing
lawrencecchen Jul 4, 2026
9a2e54d
Route team pricing CTAs through team checkout
lawrencecchen Jul 4, 2026
e6e3582
Avoid billing module mock leakage in checkout tests
lawrencecchen Jul 4, 2026
9964652
Merge remote-tracking branch 'origin/fix-adblock-feature-config' into…
lawrencecchen Jul 4, 2026
448fd25
Use first-party client config for upgrade flags
lawrencecchen Jul 4, 2026
4a96b96
Merge remote-tracking branch 'origin/main' into feat-pro-plan
lawrencecchen Jul 4, 2026
3a9a165
Use app pricing origin for checkout links
lawrencecchen Jul 4, 2026
478c2e8
Respect pricing visibility flag in dev
lawrencecchen Jul 4, 2026
348c3d5
Add direct Stripe Checkout billing with webhook-driven entitlements
lawrencecchen Jul 5, 2026
7feb0f6
Cover post-checkout banner states and harden legacy billing routes
lawrencecchen Jul 5, 2026
b1300e2
Fix Pro upgrade flag reactivity, gating, and Settings price copy
lawrencecchen Jul 5, 2026
3c0b8e8
Test the legacy billing hardening and banner states
lawrencecchen Jul 5, 2026
69d6a23
Merge origin/main into feat-pro-plan
lawrencecchen Jul 6, 2026
d7275d1
Keep closeCloudDbForTests exported through the confirm-route module mock
lawrencecchen Jul 6, 2026
136f95d
Merge origin/main into feat-pro-plan
lawrencecchen Jul 6, 2026
2b1c508
Carry full module exports through the app-pricing test mocks
lawrencecchen Jul 6, 2026
51f49a3
Make native checkout follow the app web origin
lawrencecchen Jul 6, 2026
54180a3
Default Pro to $30/month and add durable Stripe dev tooling
lawrencecchen Jul 6, 2026
a7d664a
Add billing dev-reset tool for repeatable Pro dogfood
lawrencecchen Jul 6, 2026
f1f594e
Make billing test mocks order-independent and un-hang the suite
lawrencecchen Jul 6, 2026
22fbba1
Make every cross-suite test module mock order-independent
lawrencecchen Jul 6, 2026
ca3bca3
Merge remote-tracking branch 'origin/main' into feat-pro-plan
lawrencecchen Jul 6, 2026
f5f7009
Capture mocked-module originals by value and pin CI test order
lawrencecchen Jul 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/swift-file-length-budget.tsv
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# cmux-owned Swift file length budget.
# Format: max_lines<TAB>relative path
# Reduce counts as files shrink. CI fails if tracked files exceed this budget.
34499 CLI/cmux.swift
17954 Sources/AppDelegate.swift
16471 Sources/ContentView.swift
34495 CLI/cmux.swift
17961 Sources/AppDelegate.swift
16474 Sources/ContentView.swift
15146 Sources/TerminalController.swift
13172 Sources/Workspace.swift
13185 Sources/Workspace.swift
12348 cmuxTests/AppDelegateShortcutRoutingTests.swift
12296 Sources/GhosttyTerminalView.swift
11669 Sources/Panels/BrowserPanel.swift
Expand All @@ -21,7 +21,7 @@
5915 cmuxTests/TerminalAndGhosttyTests.swift
5809 Sources/TextBoxInput.swift
5573 cmuxTests/BrowserConfigTests.swift
4483 Sources/cmuxApp.swift
4487 Sources/cmuxApp.swift
4482 Sources/Panels/FilePreviewPanel.swift
4367 cmuxTests/BrowserPanelTests.swift
4121 Sources/BrowserWindowPortal.swift
Expand All @@ -30,9 +30,9 @@
3926 cmuxTests/TabManagerUnitTests.swift
3896 cmuxTests/WindowAndDragTests.swift
3668 cmuxTests/CLIGenericHookPersistenceTests.swift
3397 Sources/CmuxConfig.swift
3402 Sources/CmuxConfig.swift
3364 cmuxTests/TabManagerSessionSnapshotTests.swift
3058 Sources/Update/UpdateTitlebarAccessory.swift
3066 Sources/Update/UpdateTitlebarAccessory.swift
2876 cmuxTests/CMUXOpenCommandTests.swift
2875 Sources/SessionIndexView.swift
2607 Sources/KeyboardShortcutSettings.swift
Expand Down Expand Up @@ -128,6 +128,7 @@
779 cmuxUITests/BrowserOmnibarSuggestionsUITests.swift
773 Sources/App/MenuBarExtraController.swift
769 Packages/macOS/CmuxTerminal/Sources/CmuxTerminal/Surface/TerminalSurface+Input.swift
768 Sources/PricingPlansScreen.swift
768 cmuxUITests/BrowserFixtureInteractionUITests.swift
762 Packages/iOS/CmuxMobileTransport/Sources/CmuxMobileTransport/CmxNetworkByteTransport.swift
756 Sources/Panels/AgentSessionWebRendererCoordinator.swift
Expand Down Expand Up @@ -176,10 +177,10 @@
635 cmuxUITests/RightSidebarChromeHeightUITests.swift
630 Packages/macOS/CmuxSettings/Sources/CmuxSettings/Values/ShortcutWhenClause.swift
621 Packages/macOS/CmuxControlSocket/Sources/CmuxControlSocket/Coordinator/Surface/ControlCommandCoordinator+Surface.swift
620 Packages/macOS/CmuxSettingsUI/Sources/CmuxSettingsUI/Sections/KeyboardShortcutsSection.swift
620 Sources/Panels/BrowserNavigationDelegate.swift
620 cmuxTests/FinderFileDropRegressionTests.swift
618 Sources/SettingsNavigation.swift
617 Packages/iOS/CmuxMobileShell/Tests/CmuxMobileShellTests/MobileShellRenderGridLivenessTests.swift
617 Sources/SettingsNavigation.swift
608 cmuxUITests/FeedSidebarUITests.swift
607 Packages/macOS/CmuxTerminal/Sources/CmuxTerminal/Surface/TerminalSurface.swift
607 Sources/SessionIndexModels.swift
Expand All @@ -192,7 +193,6 @@
594 cmuxTests/PortalTabDragRoutingTests.swift
592 Sources/TextBoxSubmitActions.swift
591 Packages/macOS/CmuxSettingsUI/Tests/CmuxSettingsUITests/DefaultsValueModelLifecycleTests.swift
590 Sources/Panels/BrowserNavigationDelegate.swift
589 Packages/macOS/CmuxWorkspaces/Sources/CmuxWorkspaces/Coordinators/WorkspaceGroupCoordinator.swift
588 cmuxTests/CommandPaletteShortcutCustomizationTests.swift
586 Packages/iOS/CmuxMobileTerminal/Sources/CmuxMobileTerminal/GhosttyRuntime.swift
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ jobs:
- name: Validate Swift file length budget
run: python3 scripts/swift_file_length_budget.py --budget .github/swift-file-length-budget.tsv

- name: Validate feature flags (naming, owners, expiry, single use, no reuse)
run: python3 scripts/lint-feature-flags.py

- name: Validate test determinism gate
run: python3 scripts/check-test-determinism.py --strict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,14 @@ public protocol AccountFlow: AnyObject {
/// Re-fetches the current user from the backend, refreshing the
/// identity card without forcing the user through sign-in again.
func refreshCurrentUser() async

/// Opens the cmux Pro upgrade (pricing) page in the user's default
/// browser. The host decides the destination URL so dev builds can
/// point at a local web server.
func openProUpgrade()

/// Whether the Pro upgrade row should render. The host backs this with
/// a remotely toggleable feature flag; `true` when flags are
/// unavailable only in explicit dogfood builds whose flag default is on.
var isProUpgradeAvailable: Bool { get }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import CmuxFoundation
import SwiftUI

/// Upgrade row rendered below the identity card in the Account section.
///
/// Shows the cmux Pro pitch (one title line + one price/value subtitle)
/// with a trailing button that asks the host to open the pricing page in
/// the default browser via ``AccountFlow/openProUpgrade()``. Stateless:
/// the app does not track plan state yet, so the row renders for every
/// user.
@MainActor
struct ProUpgradeCard: View {
let flow: AccountFlow?

init(flow: AccountFlow?) {
self.flow = flow
}

var body: some View {
HStack(alignment: .center, spacing: 12) {
VStack(alignment: .leading, spacing: 2) {
Text(String(localized: "settings.account.pro.title", defaultValue: "cmux Pro"))
.cmuxFont(size: 13, weight: .medium)
Text(String(
localized: "settings.account.pro.subtitle",
defaultValue: "Cloud dev boxes, the iOS app, and cmux AI. $20/month billed annually, or $30 month-to-month."
))
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
.cmuxFont(size: 11)
.foregroundColor(.secondary)
.fixedSize(horizontal: false, vertical: true)
}
Spacer(minLength: 12)
Button {
flow?.openProUpgrade()
} label: {
Text(String(localized: "settings.account.pro.upgrade", defaultValue: "Upgrade…"))
}
.controlSize(.small)
}
.padding(.horizontal, 14)
.padding(.vertical, 10)
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import CmuxSettings
import SwiftUI

/// **Account** section — mirrors the legacy in-app section: a single
/// **Account** section — mirrors the legacy in-app section: a
/// `SettingsCard` containing the identity row (primary email title +
/// display name subtitle + Sign In / Sign Out button, no avatar). The
/// integration toggles (Claude Code, Cursor, Gemini, ripgrep, subagent
/// suppression) live under **Automation** to match legacy ordering.
/// display name subtitle + Sign In / Sign Out button, no avatar),
/// followed by the cmux Pro upgrade card. The integration toggles
/// (Claude Code, Cursor, Gemini, ripgrep, subagent suppression) live
/// under **Automation** to match legacy ordering.
@MainActor
public struct AccountSection: View {
private let accountFlow: AccountFlow?
Expand All @@ -31,6 +32,12 @@ public struct AccountSection: View {
AccountIdentityCard(flow: accountFlow)
}
.settingsSearchAnchors(["setting:account:account"])
if accountFlow?.isProUpgradeAvailable ?? false {
SettingsCard {
ProUpgradeCard(flow: accountFlow)
}
.settingsSearchAnchors(["setting:account:pro"])
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
}
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Settings Pro card ignores flag updates

Medium Severity

The Account Pro upgrade card is gated on accountFlow?.isProUpgradeAvailable, but SettingsRuntime holds accountFlow as an AccountFlow? existential. When PostHog loads and HostAccountFlow updates isProUpgradeAvailable, SwiftUI views reading through the protocol often do not re-render, so the card can stay hidden or visible until Settings is reopened.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 22fbba1. Configure here.

}
}
}
Loading
Loading