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(scm): surface git action errors as a banner atop the panel
enes38aaeefd54eb
diff --git a/src/renderer/components/SourceControlPanel.tsx b/src/renderer/components/SourceControlPanel.tsxindex a900ae405..7c0ce8e22 100644--- a/src/renderer/components/SourceControlPanel.tsx+++ b/src/renderer/components/SourceControlPanel.tsx@@ -230,6 +230,22 @@ export function SourceControlPanel({</div><div className="drawer__body scm-body">+ {/* Surface git action errors (e.g. a branch switch blocked by local changes)+ at the top, right under the repo/branch bar, so the user sees why the+ action they just triggered failed instead of missing it at the bottom. */}+ {error && (+ <div className="scm-error" role="alert">+ <pre className="scm-error__msg">{error}</pre>+ <button+ className="scm-error__dismiss"+ title="Dismiss"+ aria-label="Dismiss error"+ onClick={() => setError('')}+ >+ ×+ </button>+ </div>+ )}{/* Only nag when gh is actually needed (publishing a repo with no remote yet).With a remote, push/pull/sync use git's credential helper (macOS keychain /the same creds your IDE uses), so a gh login isn't required. */}@@ -321,7 +337,6 @@ export function SourceControlPanel({}}/>- {error && <pre className="sc-log">{error}</pre>}</div></>)}diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex a0778a056..8a536421c 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -3372,3 +3372,37 @@ body,.scm-history__meta { padding: 3px 10px 3px 32px; font-size: 11px; opacity: 0.55; }.scm-history__msg { padding: 6px 10px; font-size: 11px; opacity: 0.6; }.scm-history__resize { height: 6px; cursor: row-resize; }++/* Source Control action error banner (e.g. branch switch blocked by local changes) */+.scm-error {+ display: flex;+ align-items: flex-start;+ gap: 8px;+ margin: 0 0 10px;+ padding: 8px 10px;+ border: 1px solid rgba(255, 69, 58, 0.4);+ border-radius: 6px;+ background: rgba(255, 69, 58, 0.12);+}+.scm-error__msg {+ flex: 1;+ margin: 0;+ white-space: pre-wrap;+ word-break: break-word;+ font-size: 11px;+ line-height: 1.4;+ color: #ff8a80;+}+.scm-error__dismiss {+ flex: none;+ background: none;+ border: none;+ color: rgba(255, 255, 255, 0.6);+ font-size: 14px;+ line-height: 1;+ cursor: pointer;+ padding: 0 2px;+}+.scm-error__dismiss:hover {+ color: #fff;+}