Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat: make SSH remote projects free (remove Pro gate)
enesf4cd790e8091
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex 19488ad10..bc63de91f 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -175,7 +175,6 @@ import { useSessionNaming } from '../state/sessionNaming'import { useSshServers } from '../state/sshServers'import { useSshConn } from '../state/sshConn'import { useSystemAccount } from '../state/systemAccount'-import { requireProOr } from '../state/upgradeGate'import { useEntitlement } from '../state/entitlement'import type { SshServer, SshConnection } from '@shared/ssh'import { sshHostKey } from '@shared/ssh'@@ -1167,19 +1166,18 @@ export function Canvas() {// switch back to a connected project is a no-op. Remote tmux is unaffected by the master.if (project.ssh) {const ssh = project.ssh- requireProOr('SSH Remote Projects', () => {- window.nodeTerminal.sshProject- .connect(project.id, ssh.server, ssh.remoteCwd)- .then(async (info) => {- // Arm remote git routing for the active project BEFORE the sshConn entry appears, so the- // Source Control panel's re-fetch (which keys off that entry) already hits the master.- await api.git.setActiveRemote(project.id)- useSshConn.getState().setConn(project.id, info)- })- .catch(() => {- /* status surfaced via onStatus → the connection banner */- })- })+ // SSH remote projects are free (Core). Only phone/relay remote access is Pro-gated.+ window.nodeTerminal.sshProject+ .connect(project.id, ssh.server, ssh.remoteCwd)+ .then(async (info) => {+ // Arm remote git routing for the active project BEFORE the sshConn entry appears, so the+ // Source Control panel's re-fetch (which keys off that entry) already hits the master.+ await api.git.setActiveRemote(project.id)+ useSshConn.getState().setConn(project.id, info)+ })+ .catch(() => {+ /* status surfaced via onStatus → the connection banner */+ })} else {// Local active project: ensure all git ops run local (no stale remote from a prior SSH tab).void api.git.setActiveRemote(null)@@ -2564,9 +2562,9 @@ export function Canvas() {[setNodes, markDirty, screenToFlowPosition, viewCenter])- // Pro-gated entry to the SSH server picker: free users get the upgrade dialog instead.+ // Open the SSH server picker. Remote SSH terminals are free (Core).const openRemotePicker = useCallback((screenPos: { x: number; y: number }) => {- requireProOr('Remote SSH terminals', () => setRemotePicker(screenPos))+ setRemotePicker(screenPos)}, [])// ⌘T = new terminal, ⌘⇧C = new default agent, a KEYED dictation shortcut (e.g. "Cmd+Alt+D") =@@ -5736,9 +5734,7 @@ export function Canvas() {label: `New remote: ${srv.label}`,icon: <IconTerminal />,run: () =>- requireProOr('Remote SSH terminals', () =>- addSshTerminal(srv, { x: window.innerWidth / 2, y: window.innerHeight / 2 })- )+ addSshTerminal(srv, { x: window.innerWidth / 2, y: window.innerHeight / 2 })})),{diff --git a/src/renderer/components/SshProjectDialog.tsx b/src/renderer/components/SshProjectDialog.tsxindex d26dceaab..c85244041 100644--- a/src/renderer/components/SshProjectDialog.tsx+++ b/src/renderer/components/SshProjectDialog.tsx@@ -2,8 +2,6 @@ import { useCallback, useEffect, useRef, useState } from 'react'import { createPortal } from 'react-dom'import { useDialogStack } from './dialog-stack'import { useSshServers } from '../state/sshServers'-import { useEntitlement } from '../state/entitlement'-import { useUpgradeGate } from '../state/upgradeGate'import type { SshServer } from '@shared/ssh'interface SshProjectDialogProps {@@ -33,20 +31,6 @@ const ROW_STYLE: React.CSSProperties = {cursor: 'pointer'}-/** "PRO" pill shown on server rows while unlicensed — connecting is gated behind Pro. */-const PRO_BADGE_STYLE: React.CSSProperties = {- fontSize: 10,- fontWeight: 700,- letterSpacing: 0.5,- lineHeight: '14px',- padding: '1px 6px',- borderRadius: 999,- color: 'var(--accent)',- border: '1px solid var(--accent)',- opacity: 0.9,- flexShrink: 0-}-/** Basename of an absolute remote path (for the project label). */function baseName(p: string): string {const trimmed = p.replace(/\/+$/, '')@@ -72,8 +56,6 @@ function parentDir(p: string): string {*/export function SshProjectDialog({ onCreate, onManage, onClose }: SshProjectDialogProps) {const servers = useSshServers((s) => s.servers)- // Reactive so the badges disappear the moment an upgrade lands while the dialog is open.- const isPremium = useEntitlement((s) => s.isPremium)const [step, setStep] = useState<Step>('pick')const [server, setServer] = useState<SshServer | null>(null)const [path, setPath] = useState('~')@@ -138,10 +120,6 @@ export function SshProjectDialog({ onCreate, onManage, onClose }: SshProjectDialconst connect = useCallback(async (srv: SshServer) => {- if (!useEntitlement.getState().isPremium) {- useUpgradeGate.getState().show('SSH Remote Projects')- return- }setServer(srv)setError('')setStep('connecting')@@ -174,7 +152,6 @@ export function SshProjectDialog({ onCreate, onManage, onClose }: SshProjectDial</p><p className="confirm__msg">Pick a saved server to host this project's terminals.- {!isPremium && ' Connecting requires nodeterm Pro.'}</p><div style={{ display: 'flex', flexDirection: 'column', gap: 6, margin: '6px 0 14px' }}>{servers.length === 0 ? (@@ -199,7 +176,6 @@ export function SshProjectDialog({ onCreate, onManage, onClose }: SshProjectDial}}><span style={{ fontWeight: 600 }}>{s.label}</span>- {!isPremium && <span style={PRO_BADGE_STYLE}>PRO</span>}</span><span style={{ opacity: 0.6, fontSize: 12 }}>{s.user}@{s.host}diff --git a/src/renderer/components/settings/sections/SshSection.tsx b/src/renderer/components/settings/sections/SshSection.tsxindex a01fa0167..45f33839a 100644--- a/src/renderer/components/settings/sections/SshSection.tsx+++ b/src/renderer/components/settings/sections/SshSection.tsx@@ -74,7 +74,7 @@ export function SshSection({ isActive }: { isActive: boolean }): React.JSX.Eleme<SettingsSectionid="ssh"title="Remote (SSH)"- description="Saved SSH servers appear under “New remote”. Opening a remote terminal is a Pro feature."+ description="Saved SSH servers appear under “New remote”. Opening remote terminals over SSH is free."isActive={isActive}searchEntries={ENTRIES}>