summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/pages
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-02 10:55:15 -0600
committerAdam <[email protected]>2026-02-02 14:24:23 -0600
commit3b93e8d95cfc30d1a85fbb76694bdb7f49dff1e9 (patch)
tree1d3c5b40c80f64de6bb5fc26870dd1f2f6367e35 /packages/app/src/pages
parent23631a93935a33fb8e44272ba1572e3475a223c2 (diff)
downloadopencode-3b93e8d95cfc30d1a85fbb76694bdb7f49dff1e9.tar.gz
opencode-3b93e8d95cfc30d1a85fbb76694bdb7f49dff1e9.zip
fix(app): added/deleted file status now correctly calculated
Diffstat (limited to 'packages/app/src/pages')
-rw-r--r--packages/app/src/pages/session.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/app/src/pages/session.tsx b/packages/app/src/pages/session.tsx
index 772ad063b..540046c09 100644
--- a/packages/app/src/pages/session.tsx
+++ b/packages/app/src/pages/session.tsx
@@ -500,9 +500,7 @@ export default function Page() {
const out = new Map<string, "add" | "del" | "mix">()
for (const diff of diffs()) {
const file = normalize(diff.file)
- const add = diff.additions > 0
- const del = diff.deletions > 0
- const kind = add && del ? "mix" : add ? "add" : del ? "del" : "mix"
+ const kind = diff.status === "added" ? "add" : diff.status === "deleted" ? "del" : "mix"
out.set(file, kind)