feat(tui): wrap and page question dialogs

This commit is contained in:
Turtle
2026-08-03 17:15:04 +08:00
parent ca9bf213b7
commit 3b58ed65b7
19 changed files with 1231 additions and 178 deletions
@@ -0,0 +1,39 @@
terminal 56x20 buffer=normal length=25 base=5 viewport=5
lifecycle started=1 stopped=0 progress=inactive
title "DSH snapshot"
cursor hidden column=56 viewportRow=13 bufferRow=18
viewport
5| "Model wait 0.0s "
style 0-14 dim
6| <blank>
7| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 "
style 0-17 fg=bright-magenta bold
style 18-31 dim
style 34-50 dim
style 53-55 dim
8| " Review the complete plan including every required "
9| " checkpoint including every required checkpoint "
10| " including every required checkpoint including every "
11| " required checkpoint including every required "
12| " checkpoint including every required checkpoint "
13| " including every required checkpoint including every "
14| " required checkpoint including every required "
15| " checkpoint including every required checkpoint "
16| " including every required checkpoint including every "
17| " required checkpoint visible plan tail "
18| " … lines 4-13/13 • PgUp/PgDn "
style 2-28 dim
19| " › 1. [ ] Code Mode "
style 2-20 fg=bright-magenta bold
20| " run_code programs and captured output with "
style 12-53 dim
21| " … lines 1-2/12 • PgUp/PgDn "
style 2-27 dim
22| " ↓ 3 more "
style 2-9 dim
23| " ↑↓ Tab Sp ↵Esc "
style 2-15 dim
24| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse
@@ -0,0 +1,39 @@
terminal 56x20 buffer=normal length=25 base=5 viewport=5
lifecycle started=1 stopped=0 progress=inactive
title "DSH snapshot"
cursor hidden column=56 viewportRow=16 bufferRow=21
viewport
5| "Model wait 0.0s "
style 0-14 dim
6| <blank>
7| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 "
style 0-17 fg=bright-magenta bold
style 18-31 dim
style 34-50 dim
style 53-55 dim
8| " Review the complete plan including every required "
9| " checkpoint including every required checkpoint "
10| " including every required checkpoint including every "
11| " required checkpoint including every required "
12| " checkpoint including every required checkpoint "
13| " including every required checkpoint including every "
14| " required checkpoint including every required "
15| " checkpoint including every required checkpoint "
16| " including every required checkpoint including every "
17| " required checkpoint visible plan tail "
18| " … lines 4-13/13 • PgUp/PgDn "
style 2-28 dim
19| " detail with complete wrapped detail "
style 12-46 dim
20| " visible tail "
style 12-23 dim
21| " … lines 11-12/12 • PgUp/PgDn "
style 2-29 dim
22| " ↓ 3 more "
style 2-9 dim
23| " ↑↓ Tab Sp ↵Esc "
style 2-15 dim
24| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse
@@ -1,7 +1,7 @@
terminal 56x20 buffer=normal length=20 base=0 viewport=0
lifecycle started=1 stopped=0 progress=inactive
title "DSH snapshot"
cursor hidden column=0 viewportRow=19 bufferRow=19
cursor hidden column=56 viewportRow=16 bufferRow=16
viewport
0| " DEEPSEEK HARNESS"
style 1-8 fg=bright-magenta bold
@@ -21,20 +21,20 @@ viewport
style 18-31 dim
style 34-50 dim
style 53-55 dim
8| " dsh > "
8| " "
9| " Question 1/1 (1 unanswered) · Confirm "
style 2-38 dim
10| " Continue with this change? "
11| " "
12| " › 1. Proceed "
style 2-14 fg=bright-magenta bold
13| " Apply the proposed change "
style 8-32 dim
14| " Tab custom answer • Enter submit • Esc interrupt "
style 2-49 dim
15| " "
16| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse
9-11| <blank>
12| " "
13| " Question 1/1 (1 unanswered) · Confirm "
style 2-38 dim
14| " Continue with this change? "
15| " "
16| " › 1. Proceed Apply the proposed change "
style 2-13 fg=bright-magenta bold
style 16-40 dim
17| " Tab custom answer • Enter submit • Esc interrupt "
style 2-49 dim
18| " "
19| <blank>
17-19| <blank>
@@ -1,40 +1,40 @@
terminal 56x20 buffer=normal length=20 base=0 viewport=0
terminal 56x20 buffer=normal length=25 base=5 viewport=5
lifecycle started=1 stopped=0 progress=inactive
title "DSH snapshot"
cursor hidden column=56 viewportRow=17 bufferRow=17
cursor hidden column=56 viewportRow=17 bufferRow=22
viewport
0| " DEEPSEEK HARNESS"
style 1-8 fg=bright-magenta bold
style 10-16 bold
1| " Snapshot agent ready."
style 1-21 dim
2| " main-session"
style 1-12 dim
3| <blank>
4| "Assistant "
style 0-8 fg=bright-magenta bold underline
5| " "
6| " Question 1/3 (3 unanswered) · Coverage "
style 2-39 dim
7| " Which advanced TUI states belong in the required "
8| " matrix? "
9| " "
10| " › 1. [ ] Code Mode run_code programs and capture "
style 2-19 fg=bright-magenta bold
style 25-53 dim
11| " 2. [ ] Workflows phases and parallel agents "
style 25-50 dim
12| " 3. [ ] Cordis tools inspect, mount, and unmount "
style 25-51 dim
13| " 1/4 "
style 2-4 dim
14| " Tab custom answer • ↑/↓ navigate • Space toggle • "
style 2-55 dim
15| " Enter submit • Esc interrupt "
5| "Model wait 0.0s "
style 0-14 dim
6| <blank>
7| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 "
style 0-17 fg=bright-magenta bold
style 18-31 dim
style 34-50 dim
style 53-55 dim
8| " Review the complete plan including every required "
9| " checkpoint including every required checkpoint "
10| " including every required checkpoint including every "
11| " required checkpoint including every required "
12| " checkpoint including every required checkpoint "
13| " including every required checkpoint including every "
14| " required checkpoint including every required "
15| " checkpoint including every required checkpoint "
16| " including every required checkpoint including every "
17| " … lines 4-12/13 • PgUp/PgDn "
style 2-28 dim
18| " detail with complete wrapped detail "
style 12-46 dim
19| " visible tail "
style 12-23 dim
20| " … lines 11-12/12 • PgUp/PgDn "
style 2-29 dim
16| " Select at least one option, or press Tab for a "
style 2-55 fg=red
17| " custom answer. "
style 2-15 fg=red
18| " "
19| <blank>
21| " ↓ 3 more "
style 2-9 dim
22| " Error: Select at least one option, or press Tab for… "
style 2-52 fg=red
23| " ↑↓ Tab Sp ↵Esc "
style 2-15 dim
24| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse
@@ -1,39 +1,39 @@
terminal 56x20 buffer=normal length=20 base=0 viewport=0
terminal 56x20 buffer=normal length=25 base=5 viewport=5
lifecycle started=1 stopped=0 progress=inactive
title "DSH snapshot"
cursor hidden column=0 viewportRow=19 bufferRow=19
cursor hidden column=56 viewportRow=19 bufferRow=24
viewport
0| " DEEPSEEK HARNESS"
style 1-8 fg=bright-magenta bold
style 10-16 bold
1| " Snapshot agent ready."
style 1-21 dim
2| " main-session"
style 1-12 dim
3| <blank>
4| "Assistant "
style 0-8 fg=bright-magenta bold underline
5| "Model wait 0.0s "
style 0-14 dim
6| <blank>
7| " "
8| " Question 1/3 (3 unanswered) · Coverage "
style 2-39 dim
9| " Which advanced TUI states belong in the required "
10| " matrix? "
11| " "
12| " › 1. [ ] Code Mode run_code programs and capture "
style 2-19 fg=bright-magenta bold
style 25-53 dim
13| " 2. [ ] Workflows phases and parallel agents "
style 25-50 dim
14| " 3. [ ] Cordis tools inspect, mount, and unmount "
style 25-51 dim
15| " 1/4 "
style 2-4 dim
16| " Tab custom answer • ↑/↓ navigate • Space toggle • "
style 2-55 dim
17| " Enter submit • Esc interrupt "
style 2-29 dim
18| " "
19| <blank>
7| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 "
style 0-17 fg=bright-magenta bold
style 18-31 dim
style 34-50 dim
style 53-55 dim
8| " Which advanced TUI states belong in the required "
9| " matrix? "
10| " "
11| " Review the complete plan including every required "
12| " checkpoint including every required checkpoint "
13| " including every required checkpoint including every "
14| " required checkpoint including every required "
15| " checkpoint including every required checkpoint "
16| " including every required checkpoint including every "
17| " required checkpoint including every required "
18| " … lines 1-10/13 • PgUp/PgDn "
style 2-28 dim
19| " › 1. [ ] Code Mode "
style 2-20 fg=bright-magenta bold
20| " run_code programs and captured output with "
style 12-53 dim
21| " … lines 1-2/12 • PgUp/PgDn "
style 2-27 dim
22| " ↓ 3 more "
style 2-9 dim
23| " ↑↓ Tab Sp ↵Esc "
style 2-15 dim
24| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse
@@ -1,7 +1,7 @@
terminal 100x34 buffer=normal length=34 base=0 viewport=0
terminal 100x34 buffer=normal length=40 base=6 viewport=6
lifecycle started=1 stopped=0 progress=inactive
title "Unsafe terminal title \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m"
cursor hidden column=0 viewportRow=33 bufferRow=33
cursor hidden column=100 viewportRow=33 bufferRow=39
buffer
0| " DEEPSEEK HARNESS"
style 1-8 fg=bright-magenta bold
@@ -48,15 +48,30 @@ buffer
24| <blank>
25| "Unsafe turn error \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m "
style 0-62 fg=red
26| " "
27| " Question 1/1 (1 unanswered) · Unsafe header \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m "
26-27| <blank>
28| "Plan"
style 0-3 fg=bright-magenta bold
29| " ● Unsafe todo \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m"
style 2-2 fg=yellow
30| "/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
31| " "
32| " Question 1/1 (1 unanswered) · Unsafe header \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m "
style 2-90 dim
28| " Unsafe question \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m "
29| " "
30| " › 1. Unsafe option \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m Unsafe detail \\x1b]2;snapshot-c "
style 2-65 fg=bright-magenta bold
style 67-97 dim
31| " Tab custom answer • Enter submit • Esc interrupt "
33| " Unsafe question \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m "
34| " "
35| " › 1. Unsafe option \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m "
style 2-66 fg=bright-magenta bold
36| " Unsafe detail \\x1b]2;snapshot-controlled\\x07\\x09\\x7f\\x9b31m "
style 8-66 dim
37| " Tab custom answer • Enter submit • Esc interrupt "
style 2-49 dim
32| " "
33| <blank>
38| " "
39| " dsh > "
style 1-3 fg=bright-magenta bold
style 5-6 dim
style 7-7 inverse