dart format session.dart
test / unit + widget + golden + a11y (push) Failing after 34s
test / integration_test (xvfb) (push) Has been skipped
test / bundle smoke (xvfb 5s) (push) Has been skipped
test / daemon subprocess + web WASM smoke (push) Has been skipped

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-05-03 21:52:53 +02:00
co-authored by Claude
parent b45699ccd1
commit 38b017e92b
2 changed files with 23 additions and 14 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"exported_at": "2026-05-03T19:52:39Z",
"exported_at": "2026-05-03T19:52:53Z",
"decisions": [
{
"id": "D-1",
+22 -13
View File
@@ -142,11 +142,7 @@ class PtySession {
// Drain ptyc's stdout to parse the success envelope. We don't
// strictly need it — the fd arriving is proof-of-life — but
// draining avoids a PIPE accumulating.
final stdoutLine = await proc.stdout
.transform(const Utf8Decoder())
.transform(const LineSplitter())
.first
.timeout(const Duration(seconds: 5));
final stdoutLine = await proc.stdout.transform(const Utf8Decoder()).transform(const LineSplitter()).first.timeout(const Duration(seconds: 5));
final pid = _extractPid(stdoutLine);
final code = await proc.exitCode;
@@ -317,13 +313,27 @@ class PtySession {
for (var i = 0; i < s.length; i++) {
final c = s.codeUnitAt(i);
switch (c) {
case 0x22: b.write(r'\"'); break;
case 0x5c: b.write(r'\\'); break;
case 0x08: b.write(r'\b'); break;
case 0x09: b.write(r'\t'); break;
case 0x0a: b.write(r'\n'); break;
case 0x0c: b.write(r'\f'); break;
case 0x0d: b.write(r'\r'); break;
case 0x22:
b.write(r'\"');
break;
case 0x5c:
b.write(r'\\');
break;
case 0x08:
b.write(r'\b');
break;
case 0x09:
b.write(r'\t');
break;
case 0x0a:
b.write(r'\n');
break;
case 0x0c:
b.write(r'\f');
break;
case 0x0d:
b.write(r'\r');
break;
default:
if (c < 0x20) {
b.write('\\u${c.toRadixString(16).padLeft(4, '0')}');
@@ -388,4 +398,3 @@ void _readerEntrypoint(_ReaderArgs args) {
pkg_ffi.calloc.free(buf);
}
}