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
fix(scm): stop proactive GitHub sign-in nag on a fresh repo
enes8517e827e137
diff --git a/src/renderer/components/SourceControlPanel.tsx b/src/renderer/components/SourceControlPanel.tsxindex 60dd1f864..4f1bbf9db 100644--- a/src/renderer/components/SourceControlPanel.tsx+++ b/src/renderer/components/SourceControlPanel.tsx@@ -180,15 +180,24 @@ export function SourceControlPanel({return (<buttonclassName="scm-sync"- disabled={busy || !status.ghAuthed}+ disabled={busy || !status.ghAvailable}title={!status.ghAvailable? 'GitHub CLI (gh) not found'- : !status.ghAuthed- ? 'Sign in to GitHub first'- : 'Create a GitHub repo and push'+ : status.ghAuthed+ ? 'Create a GitHub repo and push'+ : 'Sign in to GitHub, then create the repo'}- onClick={() => act(() => git.publish(cwd!, project?.name || 'repo', true))}+ onClick={() => {+ if (status.ghAuthed) {+ act(() => git.publish(cwd!, project?.name || 'repo', true))+ } else {+ // Sign in on demand — only when the user actually chooses to publish,+ // never proactively after `git init`.+ onRunInTerminal('gh auth login')+ onClose()+ }+ }}>Publish to GitHub</button>@@ -306,22 +315,10 @@ export function SourceControlPanel({</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. */}- {status.ghAvailable && !status.ghAuthed && !status.hasRemote && (- <div className="scm-signin">- <span>Sign in to GitHub to publish this repo.</span>- <button- onClick={() => {- onRunInTerminal('gh auth login')- onClose()- }}- >- Sign in to GitHub- </button>- </div>- )}+ {/* No proactive GitHub sign-in nag. Push/pull on an existing remote use git's+ own credential helper (the account you're already signed into), and a brand-new+ `git init` repo shouldn't demand a gh login before you've even committed. gh+ auth is requested on demand only when you click "Publish to GitHub" below. */}<section className="scm-commit"><div className="scm-compose">diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 7e67273d8..d71fa7254 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -1935,37 +1935,6 @@ body,}/* ---- Source control (VS Code style) ---- */-.scm-signin {- display: flex;- align-items: center;- justify-content: space-between;- gap: 10px;- margin: 12px 0 4px;- padding: 10px 12px;- background: rgba(10, 132, 255, 0.1);- border: 1px solid rgba(10, 132, 255, 0.3);- border-radius: 10px;- font-size: 12px;- color: var(--text);- font-family: -apple-system, BlinkMacSystemFont, sans-serif;-}--.scm-signin button {- background: var(--accent);- color: #fff;- border: none;- border-radius: 7px;- padding: 6px 12px;- font-size: 12px;- font-weight: 600;- cursor: pointer;- white-space: nowrap;-}--.scm-signin button:hover {- background: var(--accent-hover);-}-.scm-bar {display: flex;