Merge refreshed typed Code Mode results into result card fix

# Conflicts:
#	.agents/notes/implemented/architecture/2026-07-20-canonical-tool-output-contract.i18n.yaml
#	.agents/notes/implemented/feature/2026-07-20-code-mode-typed-tool-returns.i18n.yaml
#	examples/acp-agent/tests/snapshots/code-mode-workspace-context/session.jsonl
#	examples/tui-agent/tests/snapshots/code-mode/terminal.expected.txt
This commit is contained in:
Tianyi Cui
2026-07-22 22:17:05 +08:00
473 changed files with 17962 additions and 3441 deletions
@@ -1,98 +1,89 @@
terminal 100x36 buffer=normal length=38 base=2 viewport=2
lifecycle started=1 stopped=0 progress=inactive
title "Using ONE run_code program: call — DSH TUI snapshot"
cursor hidden column=1 viewportRow=33 bufferRow=35
cursor hidden column=1 viewportRow=31 bufferRow=33
buffer
0| "╭──────────────────────────────────────────────────────────────────────────────────────────────────╮"
style 0-99 fg=bright-blue
1| "│ DEEPSEEK HARNESS │"
0| " DEEPSEEK HARNESS"
style 1-8 fg=bright-blue bold
style 10-16 bold
1| " Using ONE run_code program: call"
style 1-32 fg=bright-black
2| " deepseek-v4-flash • main-session"
style 1-34 dim
3| <blank>
4| "▌ "
style 0-0 fg=bright-blue
style 2-9 fg=bright-blue bold
style 11-17 bold
style 99-99 fg=bright-blue
2| "│ Using ONE run_code program: call │"
style 0-0 fg=bright-blue
style 2-33 fg=bright-black
style 99-99 fg=bright-blue
3| "│ deepseek-v4-flash • main-session │"
style 0-0 fg=bright-blue
style 2-35 dim
style 99-99 fg=bright-blue
4| "╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
style 0-99 fg=bright-blue
5| <blank>
6| "▌ "
style 0-0 fg=bright-blue
7| "▌ You "
5| "▌ You "
style 0-0 fg=bright-blue
style 2-4 fg=bright-blue bold
8| "▌ Using ONE run_code program: call the bash tool twice — exactly echo CODE_ONE then exactly echo "
6| "▌ Using ONE run_code program: call the bash tool twice — exactly echo CODE_ONE then exactly echo "
style 0-0 fg=bright-blue
style 65-77 fg=cyan
style 92-99 fg=cyan
9| "▌ CODE_TWO. Inside that same program, console.log exactly captured output, then return the two "
7| "▌ CODE_TWO. Inside that same program, console.log exactly captured output, then return the two "
style 0-0 fg=bright-blue
style 2-9 fg=cyan
style 58-72 fg=cyan
10| "▌ outputs joined with a plus sign. Reply with that joined string only and stop. "
8| "▌ outputs joined with a plus sign. Reply with that joined string only and stop. "
style 0-0 fg=bright-blue
11| "▌ "
9| "▌ "
style 0-0 fg=bright-blue
12| <blank>
13| " Reasoning "
10| <blank>
11| " Reasoning "
style 1-9 fg=bright-black italic
14| " The user wants me to write a single run_code program that: "
12| " The user wants me to write a single run_code program that: "
style 1-58 fg=bright-black italic
15| " 1. Calls bash tool twice - first with echo CODE_ONE, then with echo CODE_TWO "
13| " 1. Calls bash tool twice - first with echo CODE_ONE, then with echo CODE_TWO "
style 1-3 fg=bright-blue
style 4-38 fg=bright-black italic
style 39-51 fg=cyan
style 52-63 fg=bright-black italic
style 64-76 fg=cyan
16| " 2. console.log exactly captured output "
14| " 2. console.log exactly captured output "
style 1-3 fg=bright-blue
style 4-23 fg=bright-black italic
style 24-38 fg=cyan
17| " 3. Return the two outputs joined with a plus sign "
15| " 3. Return the two outputs joined with a plus sign "
style 1-3 fg=bright-blue
style 4-49 fg=bright-black italic
18| " "
19| " Let me write this carefully. "
16| " "
17| " Let me write this carefully. "
style 1-28 fg=bright-black italic
20| <blank>
21| "▌ "
18| <blank>
19| "▌ "
style 0-0 fg=green
22| "▌ ✓ const result1 = await tools.bash({ command: \"echo CODE_ONE\", description: \"First echo\" }); "
20| "▌ ✓ const result1 = await tools.bash({ command: \"echo CODE_ONE\", description: \"First echo\" }); "
style 0-0 fg=green
style 2-2 fg=green bold
style 3-99 bold
23| "▌ cons "
21| "▌ cons "
style 0-0 fg=green
style 2-5 bold
24| "▌ captured output "
22| "▌ captured output "
style 0-0 fg=green
25| "▌ CODE_ONE+CODE_TWO "
23| "▌ CODE_ONE+CODE_TWO "
style 0-0 fg=green
26| "▌ "
24| "▌ "
style 0-0 fg=green
27| <blank>
28| " Reasoning "
25| <blank>
26| " Reasoning "
style 1-9 fg=bright-black italic
29| " The user asked me to reply with that joined string only and stop. The joined string is "
27| " The user asked me to reply with that joined string only and stop. The joined string is "
style 1-99 fg=bright-black italic
30| " CODE_ONE+CODE_TWO. "
28| " CODE_ONE+CODE_TWO. "
style 1-17 fg=cyan
style 18-18 fg=bright-black italic
31| <blank>
32| " Assistant "
29| <blank>
30| " Assistant "
style 1-9 fg=bright-magenta bold
33| " CODE_ONE+CODE_TWO "
31| " CODE_ONE+CODE_TWO "
32| "────────────────────────────────────────────────────────────────────────────────────────────────────"
style 0-99 dim
33| " "
style 1-1 inverse
34| "────────────────────────────────────────────────────────────────────────────────────────────────────"
style 0-99 dim
35| " "
style 1-1 inverse
36| "────────────────────────────────────────────────────────────────────────────────────────────────────"
style 0-99 dim
37| "/tmp/dsh-tui-snapshot-code-mo ↑4.1k ↓227 4% context tools:compact deepseek-v4-flash(reasoning:on)"
style 0-28 dim
style 42-99 dim
35| "deepseek-v4-flash /workspace/project ↑4.1k ↓227 cache 53% 4% context tools:"
style 0-79 dim
style 82-99 dim
36-37| <blank>