orca/src/relay
Trevin Chow b2b5cac9a9
Add per-file line counts to the source control sidebar (#2865)
* Add per-file line counts to the source control sidebar

Show +N/-N (green/red) next to each file in the Changes, Untracked, and
Committed-on-branch sections so the magnitude of a change is visible at a
glance. Counts are computed per staging area via `git diff --numstat`;
untracked/new files count their full contents as additions and binary
files show no count.

Consolidate numstat parsing and binary-buffer detection into shared
modules reused by the local status path, the SSH/relay path, and the
existing branch-compare code. Include added/removed in the status-entry
equality check so the sidebar doesn't re-render on unchanged polls.

* fix: harden source control line counts

---------

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-05-26 20:09:54 -07:00
..
agent-exec-handler.test.ts feat(ssh): make remote workspaces first-class (#1876) 2026-05-15 12:32:07 -07:00
agent-exec-handler.ts feat(source-control): AI commit message generation (#1487) 2026-05-15 02:18:46 -07:00
agent-hook-integration.test.ts Fix Claude approval status clearing (#2833) 2026-05-26 13:13:38 -07:00
agent-hook-server.test.ts fix(ssh-relay): prevent duplicate daemons from replacing active sockets (#2447) 2026-05-20 23:01:24 -04:00
agent-hook-server.ts Fix Claude permission status across subagents (#2674) 2026-05-23 04:28:45 -04:00
client-request-aborts.ts feat(ssh): make remote workspaces first-class (#1876) 2026-05-15 12:32:07 -07:00
context.ts
dispatcher.test.ts feat(ssh): make remote workspaces first-class (#1876) 2026-05-15 12:32:07 -07:00
dispatcher.ts feat(ssh): make remote workspaces first-class (#1876) 2026-05-15 12:32:07 -07:00
external-automations-handler.test.ts fix: pr-bug-scan validated finding from #2130 (#2140) 2026-05-17 14:55:21 -07:00
external-automations-handler.ts fix: pr-bug-scan validated finding from #2130 (#2140) 2026-05-17 14:55:21 -07:00
fs-handler-file-read.ts feat(ssh): stream fs.readFile to lift 10MB SSH preview cap (#1095) (#1676) 2026-05-11 15:29:15 -07:00
fs-handler-git-fallback.ts Fix mobile SSH worktrees (#2198) 2026-05-17 20:55:30 -07:00
fs-handler-install-rg.ts
fs-handler-list-files-ignored.test.ts fix: include gitignored files in quick open (#1762) 2026-05-13 14:29:30 -07:00
fs-handler-list-files.ts fix: include gitignored files in quick open (#1762) 2026-05-13 14:29:30 -07:00
fs-handler-readdir-fallback.ts
fs-handler-stream.test.ts Make Activity default-on (#1765) 2026-05-13 15:39:45 -07:00
fs-handler-utils.ts feat(ssh): stream fs.readFile to lift 10MB SSH preview cap (#1095) (#1676) 2026-05-11 15:29:15 -07:00
fs-handler.test.ts fix: address review findings (#2220) 2026-05-17 22:34:09 -07:00
fs-handler.ts fix: address review findings (#2220) 2026-05-17 22:34:09 -07:00
fs-stream-registry.ts feat(ssh): stream fs.readFile to lift 10MB SSH preview cap (#1095) (#1676) 2026-05-11 15:29:15 -07:00
git-exec-validator.test.ts feat(source-control): AI commit message generation (#1487) 2026-05-15 02:18:46 -07:00
git-exec-validator.ts feat(source-control): AI commit message generation (#1487) 2026-05-15 02:18:46 -07:00
git-handler-blob-readers.test.ts fix: normalize windows paths in git blob readers (#2290) 2026-05-18 23:46:24 -07:00
git-handler-commit-diff-ops.ts Add per-file line counts to the source control sidebar (#2865) 2026-05-26 20:09:54 -07:00
git-handler-ops.ts Handle unborn worktrees with resolvable base (#2398) 2026-05-19 21:59:25 -07:00
git-handler-push-target.ts fix: address review findings (#1770) 2026-05-13 16:14:50 -07:00
git-handler-staging.test.ts
git-handler-status-ops.ts Add per-file line counts to the source control sidebar (#2865) 2026-05-26 20:09:54 -07:00
git-handler-test-setup.ts
git-handler-utils.test.ts Add per-file line counts to the source control sidebar (#2865) 2026-05-26 20:09:54 -07:00
git-handler-utils.ts Add per-file line counts to the source control sidebar (#2865) 2026-05-26 20:09:54 -07:00
git-handler-worktree-ops.test.ts Persist worktree creation base in git config (#2859) 2026-05-26 15:54:07 -07:00
git-handler-worktree-ops.ts Persist worktree creation base in git config (#2859) 2026-05-26 15:54:07 -07:00
git-handler.test.ts Add per-file line counts to the source control sidebar (#2865) 2026-05-26 20:09:54 -07:00
git-handler.ts Add per-file line counts to the source control sidebar (#2865) 2026-05-26 20:09:54 -07:00
git-status-output-parser.ts Add per-file line counts to the source control sidebar (#2865) 2026-05-26 20:09:54 -07:00
integration.test.ts feat(ssh): stream fs.readFile to lift 10MB SSH preview cap (#1095) (#1676) 2026-05-11 15:29:15 -07:00
plugin-overlay-env.test.ts Add OMP as first-class TUI agent 2026-05-25 18:35:48 -07:00
plugin-overlay-env.ts Add OMP as first-class TUI agent 2026-05-25 18:35:48 -07:00
plugin-overlay.test.ts Fix OMP agent status routing (#2815) 2026-05-25 19:32:15 -07:00
plugin-overlay.ts Fix shell-launched OMP status hooks (#2821) 2026-05-25 22:20:15 -07:00
plugin-source-limit.test.ts Support agent status hooks over SSH (#1865) 2026-05-14 16:06:23 -07:00
plugin-source-limit.ts Support agent status hooks over SSH (#1865) 2026-05-14 16:06:23 -07:00
port-scan-handler.test.ts
port-scan-handler.ts
preflight-handler.ts
protocol-handshake.test.ts
protocol.ts feat(ssh): stream fs.readFile to lift 10MB SSH preview cap (#1095) (#1676) 2026-05-11 15:29:15 -07:00
pty-handler.test.ts Fix SSH sessions after host sleep 2026-05-26 14:53:16 -07:00
pty-handler.ts Fix SSH sessions after host sleep 2026-05-26 14:53:16 -07:00
pty-shell-launch.test.ts Emit OSC 133 C/D from bash shell wrappers 2026-05-20 22:13:33 -04:00
pty-shell-launch.ts Fix shell-launched OMP status hooks (#2821) 2026-05-25 22:20:15 -07:00
pty-shell-utils.ts
relay-command-env.test.ts Fix mobile SSH worktrees (#2198) 2026-05-17 20:55:30 -07:00
relay-command-env.ts Fix mobile SSH worktrees (#2198) 2026-05-17 20:55:30 -07:00
relay-handshake-roundtrip.test.ts
relay-handshake.ts
relay.ts Fix SSH sessions after host sleep 2026-05-26 14:53:16 -07:00
subprocess-test-utils.ts fix(ssh-relay): prevent duplicate daemons from replacing active sockets (#2447) 2026-05-20 23:01:24 -04:00
subprocess.test.ts Fix stale relay socket startup recovery (#2563) 2026-05-21 15:28:07 -07:00
workspace-session-handler.test.ts feat(ssh): make remote workspaces first-class (#1876) 2026-05-15 12:32:07 -07:00
workspace-session-handler.ts feat(ssh): make remote workspaces first-class (#1876) 2026-05-15 12:32:07 -07:00
workspace-space-scan.ts Add Space manager V2 safeguards 2026-05-14 23:30:22 -07:00