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
refactor(git): name gh availability check
Fabricio Casali2781a01a79d8
diff --git a/src/core/git-service.ts b/src/core/git-service.tsindex c711fabf7..ea4c83e5b 100644--- a/src/core/git-service.ts+++ b/src/core/git-service.ts@@ -35,6 +35,10 @@ function ghInvocation(args: string[]): ReturnType<typeof directExecutableInvocatreturn gh ? directExecutableInvocation(gh, args) : null}+function ghRunnable(): boolean {+ return ghInvocation([]) !== null+}+// Single-flight registry for the one clone the app runs at a time. Module-scoped so a// macOS window re-creation can't orphan it.type ActiveClone = {@@ -83,7 +87,7 @@ async function ghAuthed(): Promise<boolean> {* call ever (no cache at all) reports `false` while the probe runs; that flips one refresh later.*/function ghAuthedSwr(): boolean {- if (!ghInvocation([])) return false+ if (!ghRunnable()) return falseconst fresh = !!ghAuthedCache && Date.now() - ghAuthedCache.at < GH_AUTH_TTL_MSif (!fresh) void ghAuthed().catch(() => {})return ghAuthedCache?.value ?? false@@ -352,7 +356,7 @@ export class GitService {hasRemote: false,hasOrigin: false,hasUpstream: false,- ghAvailable: !!ghInvocation([]),+ ghAvailable: ghRunnable(),ghAuthed: false,staged: [],changes: []@@ -453,7 +457,7 @@ export class GitService {hasRemote,hasOrigin,hasUpstream,- ghAvailable: !!ghInvocation([]),+ ghAvailable: ghRunnable(),ghAuthed: gh,staged,changes