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-history): drop dead recent-commits query + unused CSS/prop after graph panel
enes6930d12f3ce6
diff --git a/src/main/git-service.ts b/src/main/git-service.tsindex d99962a89..848718c78 100644--- a/src/main/git-service.ts+++ b/src/main/git-service.ts@@ -4,7 +4,7 @@ import path from 'path'import { promisify } from 'util'import { ipcMain } from 'electron'import { IPC } from '../shared/ipc'-import type { GitCommit, GitFileChange, GitResult, GitStatus } from '../shared/types'+import type { GitFileChange, GitResult, GitStatus } from '../shared/types'import { loadGitHistoryFromExecutor } from '../shared/git-history'import type { GitHistoryOptions, GitHistoryResult } from '../shared/git-history'@@ -161,8 +161,7 @@ export class GitService {ghAvailable: !!GH_PATH,ghAuthed: false,staged: [],- changes: [],- recent: []+ changes: []}if (!cwd) return empty@@ -174,7 +173,7 @@ export class GitService {// These reads are independent of each other; run them concurrently instead of// serially spawning ~10 git processes one after the next. (`remote get-url origin`// simply fails to empty when there's no origin, so it needn't wait on `remote`.)- const [branchR, branchesR, remotesR, originR, countsR, cachedR, workR, porcelainR, logR, gh] =+ const [branchR, branchesR, remotesR, originR, countsR, cachedR, workR, porcelainR, gh] =await Promise.all([git(cwd, ['rev-parse', '--abbrev-ref', 'HEAD']),git(cwd, ['branch', '--format=%(refname:short)']),@@ -184,7 +183,6 @@ export class GitService {git(cwd, ['diff', '--cached', '--numstat']),git(cwd, ['diff', '--numstat']),git(cwd, ['status', '--porcelain']),- git(cwd, ['log', '-n', '12', '--pretty=format:%h%x00%s%x00%cr']),ghAuthed()])@@ -229,12 +227,6 @@ export class GitService {}}- const recent: GitCommit[] = []- for (const line of logR.out.split('\n').filter(Boolean)) {- const [hash, subject, relative] = line.split(' ')- if (hash) recent.push({ hash, subject: subject ?? '', relative: relative ?? '' })- }-return {hasRepo: true,repoName,@@ -246,8 +238,7 @@ export class GitService {ghAvailable: !!GH_PATH,ghAuthed: gh,staged,- changes,- recent+ changes}}diff --git a/src/renderer/components/git-history/GitHistoryRow.tsx b/src/renderer/components/git-history/GitHistoryRow.tsxindex 06ef7ceaf..5a6f062a5 100644--- a/src/renderer/components/git-history/GitHistoryRow.tsx+++ b/src/renderer/components/git-history/GitHistoryRow.tsx@@ -25,14 +25,12 @@ export function GitHistoryRow({viewModel,expanded = false,preserveRefIds,- onOpenCommit,onToggleExpand,onContextMenu}: {viewModel: GitHistoryItemViewModelexpanded?: booleanpreserveRefIds?: readonly string[]- onOpenCommit?: (item: GitHistoryItem) => voidonToggleExpand?: (item: GitHistoryItem) => voidonContextMenu?: (item: GitHistoryItem, e: React.MouseEvent) => void}) {@@ -72,7 +70,7 @@ export function GitHistoryRow({className="scm-history__row"title={tooltip}aria-expanded={canExpand ? expanded : undefined}- onClick={() => (canExpand ? onToggleExpand?.(item) : onOpenCommit?.(item))}+ onClick={() => canExpand && onToggleExpand?.(item)}onContextMenu={(e) => onContextMenu?.(item, e)}>{content}diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 05a5b8860..5f24b7113 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -2185,35 +2185,6 @@ body,box-shadow: none;}-.scm-commit-row {- display: flex;- align-items: baseline;- gap: 10px;- padding: 7px 2px;- font-size: 13px;- border-top: 1px solid var(--border);-}--.scm-hash {- color: #a9c0ff;- flex-shrink: 0;-}--.scm-subject {- flex: 1;- color: var(--text);- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;-}--.scm-rel {- color: var(--muted);- flex-shrink: 0;- font-size: 11px;-}-/* ---- Explorer (file tree) ---- */.ex-head-actions {display: flex;diff --git a/src/shared/types.ts b/src/shared/types.tsindex 552f157f4..9a9dbd33a 100644--- a/src/shared/types.ts+++ b/src/shared/types.ts@@ -252,12 +252,6 @@ export interface GitFileChange {deleted: number}-export interface GitCommit {- hash: string- subject: string- relative: string-}-export interface GitStatus {hasRepo: boolean/** "owner/repo" from the origin remote, else the folder name. */@@ -272,7 +266,6 @@ export interface GitStatus {ghAuthed: booleanstaged: GitFileChange[]changes: GitFileChange[]- recent: GitCommit[]}export interface GitResult {