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(ui): remote-access quota banner (silent 1st use, n/5 from 2nd, upgrade at limit)
enes13c1be8b078e
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex 90b9257b5..eb89ce2f1 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -73,6 +73,7 @@ import { BugReportDialog } from '../components/BugReportDialog'import { describeOs, REPO_URL } from '../lib/bugReport'import { UpdateCard } from '../components/UpdateCard'import { AnnouncementBanner } from '../components/AnnouncementBanner'+import { RelayQuotaBanner } from '../components/RelayQuotaBanner'import { TmuxBanner } from '../components/TmuxBanner'import { PhonePairPopover } from '../components/PhonePairPopover'import { ConflictBar } from '../components/ConflictBar'@@ -5397,6 +5398,7 @@ export function Canvas() {/><div className="top-banners">+ <RelayQuotaBanner /><AnnouncementBanner /><TmuxBanner onInstall={runInTerminal} />{migrationNote && (diff --git a/src/renderer/components/RelayQuotaBanner.tsx b/src/renderer/components/RelayQuotaBanner.tsxnew file mode 100644index 000000000..c9e20f473--- /dev/null+++ b/src/renderer/components/RelayQuotaBanner.tsx@@ -0,0 +1,37 @@+import { useEffect } from 'react'+import { useRelayQuota } from '../state/relayQuota'+import { useEntitlement } from '../state/entitlement'++/**+ * Free-tier remote-access meter (spec 2026-07-15 §4): hidden for Pro and below 2 uses+ * (the 1st use of a month is deliberately silent), informative from 2/5, and an upgrade+ * CTA once the month is exhausted.+ *+ * Reuses the `.announce-banner` styles: the base (accent) style is the informative state,+ * `--warning` is the exhausted state.+ */+export function RelayQuotaBanner(): JSX.Element | null {+ const status = useRelayQuota((s) => s.status)+ const hydrate = useRelayQuota((s) => s.hydrate)+ const upgrade = useEntitlement((s) => s.upgrade)+ useEffect(() => {+ void hydrate()+ }, [hydrate])+ if (!status || status.unlimited || status.used < 2) return null+ const exhausted = status.used >= status.limit+ return (+ <div className={`announce-banner ${exhausted ? 'announce-banner--warning' : ''}`}>+ <span className="announce-banner__dot" />+ <div className="announce-banner__content">+ {exhausted+ ? `Remote access limit reached — ${status.used}/${status.limit} this month. Pro is unlimited.`+ : `Remote access ${status.used}/${status.limit} this month.`}+ </div>+ {exhausted ? (+ <button className="announce-banner__btn" onClick={() => void upgrade()}>+ Upgrade+ </button>+ ) : null}+ </div>+ )+}