fix(tui): bound diff rendering work

This commit is contained in:
kingwl
2026-07-31 12:58:30 +08:00
parent 51beb34f97
commit 81ff2894ca
14 changed files with 246 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
terminal 100x40 buffer=normal length=40 base=0 viewport=0
terminal 100x40 buffer=normal length=41 base=1 viewport=1
lifecycle started=1 stopped=0 progress=inactive
title "DSH snapshot"
cursor hidden column=7 viewportRow=34 bufferRow=34
cursor hidden column=7 viewportRow=39 bufferRow=40
buffer
0| " DEEPSEEK HARNESS"
style 1-8 fg=bright-magenta bold
@@ -58,17 +58,27 @@ buffer
style 0-99 dim
30| "Loaded review instructions. "
style 0-99 dim
31| "Model wait 0.0s "
31| <blank>
32| "● Tool / large_edit"
style 0-18 fg=green
33| "src/large.ts "
style 0-11 bold
34| "[exact line diff omitted: >2 changed lines] "
style 0-42 dim
35| "… +6 lines (Ctrl+O to expand) "
style 0-28 dim
36| "└ +3 -3 · 1 file · approximate "
style 0-29 dim
37| "Model wait 0.0s "
style 0-14 dim
32| <blank>
33| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 ↓0 0% context"
38| <blank>
39| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 ↓0 0% context"
style 0-17 fg=bright-magenta bold
style 18-31 dim
style 34-50 dim
style 53-57 dim
style 60-69 dim
34| " dsh > "
40| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse
35-39| <blank>

View File

@@ -1,7 +1,7 @@
terminal 100x40 buffer=normal length=42 base=2 viewport=2
terminal 100x40 buffer=normal length=53 base=13 viewport=13
lifecycle started=1 stopped=0 progress=inactive
title "DSH snapshot"
cursor hidden column=7 viewportRow=39 bufferRow=41
cursor hidden column=7 viewportRow=39 bufferRow=52
buffer
0| " DEEPSEEK HARNESS"
style 1-8 fg=bright-magenta bold
@@ -70,19 +70,40 @@ buffer
style 0-99 dim
35| "Loaded review instructions. "
style 0-99 dim
36| "Model wait 0.0s "
36| <blank>
37| "● Tool / large_edit"
style 0-18 fg=green
38| "src/large.ts "
style 0-11 bold
39| "[exact line diff omitted: >2 changed lines] "
style 0-42 dim
40| "- old one "
style 0-8 fg=red
41| "- old two "
style 0-8 fg=red
42| "- old three "
style 0-10 fg=red
43| "+ new one "
style 0-8 fg=green
44| "+ new two "
style 0-8 fg=green
45| "+ new three "
style 0-10 fg=green
46| "└ +3 -3 · 1 file · approximate "
style 0-29 dim
47| "Model wait 0.0s "
style 0-14 dim
37| <blank>
38| "Tool and context cards expanded. "
48| <blank>
49| "Tool and context cards expanded. "
style 0-31 dim
39| <blank>
40| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 ↓0 0% context"
50| <blank>
51| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 ↓0 0% context"
style 0-17 fg=bright-magenta bold
style 18-31 dim
style 34-50 dim
style 53-57 dim
style 60-69 dim
41| " dsh > "
52| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse