The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(review): apply A1, A3, B2, N1 from review-leer2-offload and review-isalinux
purple74ef4c86f8e0
diff --git a/scripts/__fixtures__/linux-isa/clean-baseline-realistic-size.disasm.txt b/scripts/__fixtures__/linux-isa/clean-baseline-realistic-size.disasm.txtindex cd33795c..ae104a7b 100644--- a/scripts/__fixtures__/linux-isa/clean-baseline-realistic-size.disasm.txt+++ b/scripts/__fixtures__/linux-isa/clean-baseline-realistic-size.disasm.txt@@ -1,22 +1,235 @@0000000000401200 <clean_baseline_fn_realistic_size>:- 401200: 55 push %rbp- 401201: 48 89 e5 mov %rsp,%rbp+ 401200: 55 push %rbp+ 401201: 48 89 e5 mov %rsp,%rbp401204: 48 83 ec 20 sub $0x20,%rsp401208: 0f 10 45 f0 movups -0x10(%rbp),%xmm040120c: 66 0f 6f c1 movdqa %xmm1,%xmm0401210: f3 0f b8 c0 popcnt %eax,%eax- 401214: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 401214: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm040121a: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)- 40121e: 8b 45 fc mov -0x4(%rbp),%eax- 401221: 83 c0 01 add $0x1,%eax- 401224: 89 45 fc mov %eax,-0x4(%rbp)- 401227: 8b 45 fc mov -0x4(%rbp),%eax- 40122a: 3b 45 f8 cmp -0x8(%rbp),%eax- 40122d: 7c e9 jl 401218 <clean_baseline_fn_realistic_size+0x18>- 40122f: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0- 401233: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)- 401237: 8b 45 f8 mov -0x8(%rbp),%eax- 40123a: 48 8d 65 f8 lea -0x8(%rbp),%rsp- 40123e: 5b pop %rbx- 40123f: 5d pop %rbp- 401240: c3 ret+ 40121e: 8b 45 fc mov -0x4(%rbp),%eax+ 401221: 83 c0 01 add $0x1,%eax+ 401224: 89 45 fc mov %eax,-0x4(%rbp)+ 401227: 8b 45 fc mov -0x4(%rbp),%eax+ 40122a: 3b 45 f8 cmp -0x8(%rbp),%eax+ 40122d: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401231: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 401235: 8b 45 f8 mov -0x8(%rbp),%eax+ 401238: 55 push %rbp+ 401239: 48 89 e5 mov %rsp,%rbp+ 40123c: 48 83 ec 20 sub $0x20,%rsp+ 401240: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 401244: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401248: f3 0f b8 c0 popcnt %eax,%eax+ 40124c: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 401252: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 401256: 8b 45 fc mov -0x4(%rbp),%eax+ 401259: 83 c0 01 add $0x1,%eax+ 40125c: 89 45 fc mov %eax,-0x4(%rbp)+ 40125f: 8b 45 fc mov -0x4(%rbp),%eax+ 401262: 3b 45 f8 cmp -0x8(%rbp),%eax+ 401265: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401269: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 40126d: 8b 45 f8 mov -0x8(%rbp),%eax+ 401270: 55 push %rbp+ 401271: 48 89 e5 mov %rsp,%rbp+ 401274: 48 83 ec 20 sub $0x20,%rsp+ 401278: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 40127c: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401280: f3 0f b8 c0 popcnt %eax,%eax+ 401284: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 40128a: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 40128e: 8b 45 fc mov -0x4(%rbp),%eax+ 401291: 83 c0 01 add $0x1,%eax+ 401294: 89 45 fc mov %eax,-0x4(%rbp)+ 401297: 8b 45 fc mov -0x4(%rbp),%eax+ 40129a: 3b 45 f8 cmp -0x8(%rbp),%eax+ 40129d: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 4012a1: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 4012a5: 8b 45 f8 mov -0x8(%rbp),%eax+ 4012a8: 55 push %rbp+ 4012a9: 48 89 e5 mov %rsp,%rbp+ 4012ac: 48 83 ec 20 sub $0x20,%rsp+ 4012b0: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 4012b4: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 4012b8: f3 0f b8 c0 popcnt %eax,%eax+ 4012bc: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 4012c2: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 4012c6: 8b 45 fc mov -0x4(%rbp),%eax+ 4012c9: 83 c0 01 add $0x1,%eax+ 4012cc: 89 45 fc mov %eax,-0x4(%rbp)+ 4012cf: 8b 45 fc mov -0x4(%rbp),%eax+ 4012d2: 3b 45 f8 cmp -0x8(%rbp),%eax+ 4012d5: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 4012d9: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 4012dd: 8b 45 f8 mov -0x8(%rbp),%eax+ 4012e0: 55 push %rbp+ 4012e1: 48 89 e5 mov %rsp,%rbp+ 4012e4: 48 83 ec 20 sub $0x20,%rsp+ 4012e8: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 4012ec: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 4012f0: f3 0f b8 c0 popcnt %eax,%eax+ 4012f4: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 4012fa: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 4012fe: 8b 45 fc mov -0x4(%rbp),%eax+ 401301: 83 c0 01 add $0x1,%eax+ 401304: 89 45 fc mov %eax,-0x4(%rbp)+ 401307: 8b 45 fc mov -0x4(%rbp),%eax+ 40130a: 3b 45 f8 cmp -0x8(%rbp),%eax+ 40130d: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401311: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 401315: 8b 45 f8 mov -0x8(%rbp),%eax+ 401318: 55 push %rbp+ 401319: 48 89 e5 mov %rsp,%rbp+ 40131c: 48 83 ec 20 sub $0x20,%rsp+ 401320: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 401324: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401328: f3 0f b8 c0 popcnt %eax,%eax+ 40132c: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 401332: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 401336: 8b 45 fc mov -0x4(%rbp),%eax+ 401339: 83 c0 01 add $0x1,%eax+ 40133c: 89 45 fc mov %eax,-0x4(%rbp)+ 40133f: 8b 45 fc mov -0x4(%rbp),%eax+ 401342: 3b 45 f8 cmp -0x8(%rbp),%eax+ 401345: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401349: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 40134d: 8b 45 f8 mov -0x8(%rbp),%eax+ 401350: 55 push %rbp+ 401351: 48 89 e5 mov %rsp,%rbp+ 401354: 48 83 ec 20 sub $0x20,%rsp+ 401358: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 40135c: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401360: f3 0f b8 c0 popcnt %eax,%eax+ 401364: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 40136a: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 40136e: 8b 45 fc mov -0x4(%rbp),%eax+ 401371: 83 c0 01 add $0x1,%eax+ 401374: 89 45 fc mov %eax,-0x4(%rbp)+ 401377: 8b 45 fc mov -0x4(%rbp),%eax+ 40137a: 3b 45 f8 cmp -0x8(%rbp),%eax+ 40137d: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401381: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 401385: 8b 45 f8 mov -0x8(%rbp),%eax+ 401388: 55 push %rbp+ 401389: 48 89 e5 mov %rsp,%rbp+ 40138c: 48 83 ec 20 sub $0x20,%rsp+ 401390: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 401394: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401398: f3 0f b8 c0 popcnt %eax,%eax+ 40139c: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 4013a2: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 4013a6: 8b 45 fc mov -0x4(%rbp),%eax+ 4013a9: 83 c0 01 add $0x1,%eax+ 4013ac: 89 45 fc mov %eax,-0x4(%rbp)+ 4013af: 8b 45 fc mov -0x4(%rbp),%eax+ 4013b2: 3b 45 f8 cmp -0x8(%rbp),%eax+ 4013b5: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 4013b9: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 4013bd: 8b 45 f8 mov -0x8(%rbp),%eax+ 4013c0: 55 push %rbp+ 4013c1: 48 89 e5 mov %rsp,%rbp+ 4013c4: 48 83 ec 20 sub $0x20,%rsp+ 4013c8: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 4013cc: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 4013d0: f3 0f b8 c0 popcnt %eax,%eax+ 4013d4: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 4013da: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 4013de: 8b 45 fc mov -0x4(%rbp),%eax+ 4013e1: 83 c0 01 add $0x1,%eax+ 4013e4: 89 45 fc mov %eax,-0x4(%rbp)+ 4013e7: 8b 45 fc mov -0x4(%rbp),%eax+ 4013ea: 3b 45 f8 cmp -0x8(%rbp),%eax+ 4013ed: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 4013f1: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 4013f5: 8b 45 f8 mov -0x8(%rbp),%eax+ 4013f8: 55 push %rbp+ 4013f9: 48 89 e5 mov %rsp,%rbp+ 4013fc: 48 83 ec 20 sub $0x20,%rsp+ 401400: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 401404: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401408: f3 0f b8 c0 popcnt %eax,%eax+ 40140c: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 401412: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 401416: 8b 45 fc mov -0x4(%rbp),%eax+ 401419: 83 c0 01 add $0x1,%eax+ 40141c: 89 45 fc mov %eax,-0x4(%rbp)+ 40141f: 8b 45 fc mov -0x4(%rbp),%eax+ 401422: 3b 45 f8 cmp -0x8(%rbp),%eax+ 401425: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401429: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 40142d: 8b 45 f8 mov -0x8(%rbp),%eax+ 401430: 55 push %rbp+ 401431: 48 89 e5 mov %rsp,%rbp+ 401434: 48 83 ec 20 sub $0x20,%rsp+ 401438: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 40143c: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401440: f3 0f b8 c0 popcnt %eax,%eax+ 401444: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 40144a: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 40144e: 8b 45 fc mov -0x4(%rbp),%eax+ 401451: 83 c0 01 add $0x1,%eax+ 401454: 89 45 fc mov %eax,-0x4(%rbp)+ 401457: 8b 45 fc mov -0x4(%rbp),%eax+ 40145a: 3b 45 f8 cmp -0x8(%rbp),%eax+ 40145d: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401461: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 401465: 8b 45 f8 mov -0x8(%rbp),%eax+ 401468: 55 push %rbp+ 401469: 48 89 e5 mov %rsp,%rbp+ 40146c: 48 83 ec 20 sub $0x20,%rsp+ 401470: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 401474: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401478: f3 0f b8 c0 popcnt %eax,%eax+ 40147c: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 401482: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 401486: 8b 45 fc mov -0x4(%rbp),%eax+ 401489: 83 c0 01 add $0x1,%eax+ 40148c: 89 45 fc mov %eax,-0x4(%rbp)+ 40148f: 8b 45 fc mov -0x4(%rbp),%eax+ 401492: 3b 45 f8 cmp -0x8(%rbp),%eax+ 401495: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401499: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 40149d: 8b 45 f8 mov -0x8(%rbp),%eax+ 4014a0: 55 push %rbp+ 4014a1: 48 89 e5 mov %rsp,%rbp+ 4014a4: 48 83 ec 20 sub $0x20,%rsp+ 4014a8: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 4014ac: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 4014b0: f3 0f b8 c0 popcnt %eax,%eax+ 4014b4: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 4014ba: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 4014be: 8b 45 fc mov -0x4(%rbp),%eax+ 4014c1: 83 c0 01 add $0x1,%eax+ 4014c4: 89 45 fc mov %eax,-0x4(%rbp)+ 4014c7: 8b 45 fc mov -0x4(%rbp),%eax+ 4014ca: 3b 45 f8 cmp -0x8(%rbp),%eax+ 4014cd: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 4014d1: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 4014d5: 8b 45 f8 mov -0x8(%rbp),%eax+ 4014d8: 55 push %rbp+ 4014d9: 48 89 e5 mov %rsp,%rbp+ 4014dc: 48 83 ec 20 sub $0x20,%rsp+ 4014e0: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 4014e4: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 4014e8: f3 0f b8 c0 popcnt %eax,%eax+ 4014ec: 66 0f 3a 44 c1 00 pclmulqdq $0x0,%xmm1,%xmm0+ 4014f2: 0f 29 45 e0 movaps %xmm0,-0x20(%rbp)+ 4014f6: 8b 45 fc mov -0x4(%rbp),%eax+ 4014f9: 83 c0 01 add $0x1,%eax+ 4014fc: 89 45 fc mov %eax,-0x4(%rbp)+ 4014ff: 8b 45 fc mov -0x4(%rbp),%eax+ 401502: 3b 45 f8 cmp -0x8(%rbp),%eax+ 401505: 0f 28 45 e0 movaps -0x20(%rbp),%xmm0+ 401509: 0f 11 45 f0 movups %xmm0,-0x10(%rbp)+ 40150d: 8b 45 f8 mov -0x8(%rbp),%eax+ 401510: 55 push %rbp+ 401511: 48 89 e5 mov %rsp,%rbp+ 401514: 48 83 ec 20 sub $0x20,%rsp+ 401518: 0f 10 45 f0 movups -0x10(%rbp),%xmm0+ 40151c: 66 0f 6f c1 movdqa %xmm1,%xmm0+ 401520: f3 0f b8 c0 popcnt %eax,%eax+ 401524: 48 8d 65 f8 lea -0x8(%rbp),%rsp+ 401528: 5b pop %rbx+ 401529: 5d pop %rbp+ 40152a: c3 retdiff --git a/scripts/lib/isa-guard-linux-rules.sh b/scripts/lib/isa-guard-linux-rules.shindex 6ce35112..18bb5c4c 100644--- a/scripts/lib/isa-guard-linux-rules.sh+++ b/scripts/lib/isa-guard-linux-rules.sh@@ -359,7 +359,15 @@ evaluate_module_asm() {# real binary" reasoning win-isa-guard.mjs's own --min-lines already uses,# see verify-sidecar-isa.sh:616), so a real Linux run tightening this# further is expected, not a sign this number was wrong.-MIN_DISASM_LINES=20+#+# NACHARBEIT N1 (review-isalinux.md, Nachreview Runde 2): genau das ist+# passiert. Der echte Linux-Lauf mass fuer das KLEINSTE Modul 761+# disassemblierte Befehlszeilen, weit ueber der alten 20er-Schwelle. 20 war+# nur eine grobe Untergrenze gegen einen kaputten Disassembler (siehe oben),+# keine an echten Zahlen gemessene. 200 bleibt weit unter den 761 echten+# und faengt trotzdem jeden Fall ab, in dem objdump nur ein paar Zeilen+# Fehlermeldung statt einer echten Disassemblierung liefert.+MIN_DISASM_LINES=200# Count objdump/llvm-objdump AT&T-syntax instruction lines: an address,# a colon, then a tab (the disassembled-instruction shape every fixture indiff --git a/scripts/verify-sidecar-isa.selftest.sh b/scripts/verify-sidecar-isa.selftest.shindex 815eb6d6..fd6db1a7 100755--- a/scripts/verify-sidecar-isa.selftest.sh+++ b/scripts/verify-sidecar-isa.selftest.sh@@ -292,15 +292,18 @@ set +eout="$(check_min_disasm_lines "" "empty-module")"; status=$?set -eassert_eq "empty disassembly exits 1 (RED PROBE, the exact bug the review measured: evaluate_module_asm baseline \"\" used to exit 0)" "1" "$status"-assert_eq "empty disassembly verdict text (RED PROBE)" 'FAIL: empty-module: only 0 disassembled instruction line(s) found (need >= 20); an empty or near-empty disassembly is not proof the module carries no AVX-or-above instruction, it means the disassembler produced nothing usable (crashed, printed an error, or was fed the wrong file) and every ISA verdict for this module is unproven' "$out"+assert_eq "empty disassembly verdict text (RED PROBE)" 'FAIL: empty-module: only 0 disassembled instruction line(s) found (need >= 200); an empty or near-empty disassembly is not proof the module carries no AVX-or-above instruction, it means the disassembler produced nothing usable (crashed, printed an error, or was fed the wrong file) and every ISA verdict for this module is unproven' "$out"set +eout="$(check_min_disasm_lines "$clean_baseline" "too-short-module")"; status=$?set -e-assert_eq "a too-short real-looking disassembly (7 lines, below MIN_DISASM_LINES=20) exits 1 (RED PROBE)" "1" "$status"+assert_eq "a too-short real-looking disassembly (7 lines, below MIN_DISASM_LINES=200) exits 1 (RED PROBE)" "1" "$status"+# N1 (Nachreview Runde 2): fixture grew from 21 to 234 instruction lines so+# it still clears the raised MIN_DISASM_LINES=200 (the real Linux run's+# smallest module measured 761).out="$(check_min_disasm_lines "$clean_baseline_realistic" "realistic-module")"; status=$?-assert_eq "a realistically-sized disassembly (21 lines) exits 0" "0" "$status"+assert_eq "a realistically-sized disassembly (234 lines) exits 0" "0" "$status"# The deliberately-tiny decision-logic fixtures above (5-7 lines each) are# legitimate inputs to evaluate_module_asm/has_avx*_or_above directly (theydiff --git a/scripts/verify-sidecar-isa.sh b/scripts/verify-sidecar-isa.shindex 62953cc5..f1e7605f 100755--- a/scripts/verify-sidecar-isa.sh+++ b/scripts/verify-sidecar-isa.sh@@ -850,7 +850,8 @@ for path in "${!module_role[@]}"; do# BLOCKER B1 (review-isalinux.md Runde 2): an empty or near-empty# disassembly must fail its OWN check before it ever reaches# evaluate_module_asm, not read as "no AVX found, so it passes". See- # check_min_disasm_lines's own header for why 20 and not a tighter bound.+ # check_min_disasm_lines's own header, and N1 (Nachreview Runde 2), for+ # why 200 and not a tighter or looser bound.if lines_verdict="$(check_min_disasm_lines "$asm" "$label")"; thenvlog "$lines_verdict"elsediff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex 0a1c0cf3..801db098 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -84,7 +84,15 @@ export function ChatView() {// one frame where it actually flips.const activeConvIsEmpty = useChatStore((s) => {const conv = s.conversations.find((c) => c.id === s.activeConversationId)- if (!conv || (conv.mode ?? 'lu') !== 'lu') return false+ if (!conv) return false+ // Auflage A3 (review-leer2-offload.md): 'remote' zaehlt jetzt mit. Ein+ // dispatchter Remote-Chat ist bis zur ersten Mobil-Nachricht genauso+ // leer wie ein frischer lokaler Chat, und lief vorher auf denselben+ // leeren Hauptbereich wie das F1-Symptom oben, nur dass hier kein+ // Reiterwechsel den Zustand zuruecksetzt. 'codex' bleibt aussen vor+ // (eigene Ansicht, CodexView, siehe chatMode-Weiche oben); 'openclaw' hat+ // keinen aktiven Einstiegspunkt in der UI und bleibt deshalb unberuehrt.+ if (conv.mode !== 'lu' && conv.mode !== 'remote') return falsereturn conv.messages.filter((m) => m.role !== 'system' && !m.hidden).length === 0})const activeModel = useModelStore((s) => s.activeModel)@@ -478,29 +486,45 @@ export function ChatView() {tief, exakt der Fehler der Eingangsseite, nur an einemzweiten Ort mit demselben Rezept. */}{activeConvIsEmpty && (- <div- data-testid="chat-landing"- className="flex-1 min-h-0 flex flex-col items-center justify-center text-center gap-2 overflow-y-auto scrollbar-thin py-4 px-3"- >- <img- src={MONOGRAM}- alt=""- width={56}- height={56}- className={`${MONOGRAM_INVERT} opacity-90`}- />- <h1 className="t-display text-gray-900 dark:text-gray-100">Ask LU anything</h1>- <p className="t-body text-gray-500 max-w-[40ch]">{landing.subline}</p>- {landing.note && (- <p className="t-mono w-full truncate px-4 text-gray-400 dark:text-gray-500" title={landing.note}>- {landing.note}- </p>- )}- {!sidebarOpen && (- <div className="w-full pt-3 flex flex-col items-center text-left">- <RecentChats />- </div>- )}+ // Runde 2 (David, Auflage A1, review-leer2-offload.md):+ // `chat-landing` stand vorher auf DIESEM flex-1-Container+ // selbst, also der sichtbaren Flaeche selbst, nicht auf+ // dem Inhalt darin. `measureLanding` in+ // leerzustand-sitzt-mittig.spec.ts nimmt `block.parentElement`+ // als Flaeche, hier also den AEUSSEREN `motion.div key="chat"`+ // (PlanBar + dieser Block + Sitzungsleiste + Remote-Baender+ // zusammen), nicht die eigentliche Restflaeche zwischen+ // PlanBar und Composer. Fix: `chat-landing` auf den+ // INNEREN Inhalt (Zeichen, Ueberschrift, Modellname,+ // Recents), der aeussere `flex-1 justify-center`-Container+ // bleibt namenlos und ist jetzt die Flaeche, gegen die+ // gemessen wird, genau wie beim Block der Eingangsseite+ // oben (Zeile 355-362, dasselbe Rezept).+ <div className="flex-1 min-h-0 flex flex-col items-center justify-center overflow-y-auto scrollbar-thin py-4 px-3">+ <div+ data-testid="chat-landing"+ className="flex flex-col items-center text-center gap-2"+ >+ <img+ src={MONOGRAM}+ alt=""+ width={56}+ height={56}+ className={`${MONOGRAM_INVERT} opacity-90`}+ />+ <h1 className="t-display text-gray-900 dark:text-gray-100">Ask LU anything</h1>+ <p className="t-body text-gray-500 max-w-[40ch]">{landing.subline}</p>+ {landing.note && (+ <p className="t-mono w-full truncate px-4 text-gray-400 dark:text-gray-500" title={landing.note}>+ {landing.note}+ </p>+ )}+ {!sidebarOpen && (+ <div className="w-full pt-3 flex flex-col items-center text-left">+ <RecentChats />+ </div>+ )}+ </div></div>)}diff --git a/src/components/chat/__tests__/leer-aktive-unterhaltung.test.ts b/src/components/chat/__tests__/leer-aktive-unterhaltung.test.tsindex 2a841758..da8c8d1a 100644--- a/src/components/chat/__tests__/leer-aktive-unterhaltung.test.ts+++ b/src/components/chat/__tests__/leer-aktive-unterhaltung.test.ts@@ -20,6 +20,11 @@* zugeklappter Seitenleiste (D-S06, siehe home-recent-chats.test.ts).** Run: npx vitest run src/components/chat/__tests__/leer-aktive-unterhaltung.test.ts+ *+ * Auflage A3 (review-leer2-offload.md): dieselbe leere Flaeche traf auch+ * einen dispatchten Remote-Chat vor der ersten Mobil-Nachricht, weil die+ * Bedingung `conv.mode !== 'lu'` jeden anderen Modus ausschloss. `mode:+ * 'remote'` zaehlt jetzt mit (Fix in ChatView.tsx, activeConvIsEmpty).*/import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'import { createElement } from 'react'@@ -97,4 +102,29 @@ describe('F1: eine aktive, leere Unterhaltung zeigt nie einen komplett leeren Harender(createElement(ChatView))expect(screen.getByTestId('chat-landing')).toBeTruthy()})++ it('A3: ein dispatchter, noch leerer Remote-Chat zeigt denselben Leerzustand-Block, nicht eine leere Flaeche', () => {+ useUIStore.setState({ sidebarOpen: true })+ useChatStore.setState({+ conversations: [{ ...conv('remote1', 'Remote', NOW), mode: 'remote' }],+ activeConversationId: 'remote1',+ })+ render(createElement(ChatView))+ expect(screen.getByTestId('chat-landing')).toBeTruthy()+ expect(screen.getByText('Ask LU anything')).toBeTruthy()+ })++ it('A3-NEGATIVKONTROLLE: ein Remote-Chat mit der ersten Nachricht weicht dem Transkript, wie bei lu', () => {+ useUIStore.setState({ sidebarOpen: true })+ useChatStore.setState({+ conversations: [{+ ...conv('remote2', 'Remote', NOW),+ mode: 'remote',+ messages: [{ id: 'm1', role: 'user', content: 'hi', timestamp: NOW }],+ }],+ activeConversationId: 'remote2',+ })+ render(createElement(ChatView))+ expect(screen.queryByTestId('chat-landing')).toBeNull()+ })})diff --git a/src/lib/cloud-offload-defer.ts b/src/lib/cloud-offload-defer.tsindex 99277e4f..3b7e2d30 100644--- a/src/lib/cloud-offload-defer.ts+++ b/src/lib/cloud-offload-defer.ts@@ -38,6 +38,21 @@* `runOffload` wird nie gerufen, der Offload entfaellt komplett, statt* verspaetet einzutreffen. Ohne aktiven lokalen Lauf laeuft `runOffload`* sofort, unveraendert zum bisherigen Verhalten.+ *+ * ── AUFLAGE B2 (review-leer2-offload.md): DER PREIS DES AUFSCHUBS ───────────+ *+ * Dieser Aufschub ist ein Tausch, kein reiner Gewinn. Haengt ein lokaler Lauf+ * fest (Modell antwortet nicht mehr, Motor haengt, o.ae.), bucht er seine+ * Spur in `generationStore.runs` weiter, bis der Nutzer selbst Stop drueckt+ * oder der Lauf mit einem Fehler endet: `hasActiveLocalRun` sieht in diesem+ * Fenster keinen Unterschied zwischen "arbeitet noch" und "haengt fest".+ * Solange das so ist, laeuft `runOffload` nicht, das lokale Modell bleibt+ * geladen, und der VRAM, den es haelt, bleibt belegt, obwohl der Nutzer+ * laengst auf Cloud umgeschaltet hat. Das ist der bewusste Gegenwert zum+ * Fix oben (kein stilles "Connection dropped" fuer einen echten Lauf mehr):+ * ein haengender Lauf haelt jetzt VRAM fest statt eine fremde Unterhaltung+ * zu toeten. Der einzige Ausweg aus diesem Zustand ist Stop auf dem+ * haengenden Lauf selbst.*//** Die eine Tatsache, an der sich alles hier entscheidet. */