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(browser): BrowserStartPage (search + shortcuts + recent) + styles
enes7fa65a8e3d72
diff --git a/src/renderer/nodes/BrowserStartPage.tsx b/src/renderer/nodes/BrowserStartPage.tsxnew file mode 100644index 000000000..1fc6f273f--- /dev/null+++ b/src/renderer/nodes/BrowserStartPage.tsx@@ -0,0 +1,73 @@+import { useState } from 'react'+import { searchOrUrl } from './browserUrl'+import { SHORTCUTS, SiteIcon } from './browserIcons'+import { useBrowserHistory } from '../state/browserHistory'++function hostLabel(url: string): string {+ try {+ return new URL(url).hostname.replace(/^www\./, '')+ } catch {+ return url+ }+}++/** The Chrome-like new-tab page shown inside a blank browser node. */+export function BrowserStartPage({ onNavigate }: { onNavigate: (url: string) => void }): JSX.Element {+ const [q, setQ] = useState('')+ const recent = useBrowserHistory((s) => s.recent(8))+ const submit = (): void => {+ const u = searchOrUrl(q)+ if (u) onNavigate(u)+ }+ return (+ <div className="startpage nodrag nowheel">+ <div className="startpage__inner">+ <div className="startpage__searchbar">+ <span className="startpage__search-icon">⌕</span>+ <input+ className="startpage__search"+ autoFocus+ spellCheck={false}+ value={q}+ placeholder="Search Google or type a URL"+ onChange={(e) => setQ(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === 'Enter') submit()+ }}+ />+ </div>++ <div className="startpage__grid">+ {SHORTCUTS.map((s) => (+ <button+ key={s.url}+ className="startpage__tile"+ title={s.label}+ onClick={() => onNavigate(s.url)}+ >+ <SiteIcon url={s.url} label={s.label} />+ <span className="startpage__tile-label">{s.label}</span>+ </button>+ ))}+ </div>++ {recent.length > 0 && (+ <div className="startpage__recent">+ <div className="startpage__recent-title">Recent</div>+ {recent.map((e) => (+ <button+ key={`${e.url}-${e.ts}`}+ className="startpage__recent-item"+ onClick={() => onNavigate(e.url)}+ >+ <SiteIcon url={e.url} size={22} />+ <span className="startpage__recent-name">{e.title}</span>+ <span className="startpage__recent-host">{hostLabel(e.url)}</span>+ </button>+ ))}+ </div>+ )}+ </div>+ </div>+ )+}diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 4ff905e90..b18aa732c 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -4239,3 +4239,126 @@ body,font-size: 12px;padding: 4px 8px;}++/* ── Browser start page (new-tab) ─────────────────────────────── */+.startpage {+ position: absolute;+ inset: 0;+ overflow: auto;+ background: var(--bg);+ display: flex;+ justify-content: center;+}+.startpage__inner {+ width: 100%;+ max-width: 560px;+ padding: 48px 24px 32px;+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 28px;+}+.startpage__searchbar {+ width: 100%;+ display: flex;+ align-items: center;+ gap: 8px;+ background: var(--panel);+ border: 1px solid var(--border);+ border-radius: 999px;+ padding: 10px 16px;+}+.startpage__searchbar:focus-within {+ border-color: var(--accent);+}+.startpage__search-icon {+ color: var(--muted);+ font-size: 16px;+}+.startpage__search {+ flex: 1;+ background: transparent;+ border: none;+ outline: none;+ color: var(--text);+ font-size: 14px;+}+.startpage__grid {+ width: 100%;+ display: grid;+ grid-template-columns: repeat(4, 1fr);+ gap: 12px;+}+.startpage__tile {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 8px;+ background: transparent;+ border: none;+ cursor: pointer;+ padding: 8px 4px;+ border-radius: 10px;+}+.startpage__tile:hover {+ background: var(--panel-header);+}+.site-icon {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ border-radius: 12px;+ overflow: hidden;+ flex: none;+}+.site-icon__letter {+ color: #fff;+ font-weight: 600;+ font-size: 18px;+}+.startpage__tile-label {+ color: var(--text);+ font-size: 12px;+ max-width: 100%;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.startpage__recent {+ width: 100%;+}+.startpage__recent-title {+ color: var(--muted);+ font-size: 12px;+ text-transform: uppercase;+ letter-spacing: 0.04em;+ margin-bottom: 8px;+}+.startpage__recent-item {+ width: 100%;+ display: flex;+ align-items: center;+ gap: 10px;+ background: transparent;+ border: none;+ cursor: pointer;+ padding: 7px 8px;+ border-radius: 8px;+ text-align: left;+}+.startpage__recent-item:hover {+ background: var(--panel-header);+}+.startpage__recent-name {+ color: var(--text);+ font-size: 13px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ flex: 1;+}+.startpage__recent-host {+ color: var(--muted);+ font-size: 12px;+ flex: none;+}