diff --git a/.pql/pql-plan.json b/.pql/pql-plan.json index cc20ac3b..3fcc12b6 100644 --- a/.pql/pql-plan.json +++ b/.pql/pql-plan.json @@ -1,5 +1,5 @@ { - "exported_at": "2026-04-26T12:16:59Z", + "exported_at": "2026-04-26T13:07:25Z", "decisions": [ { "id": "D-1", diff --git a/lib/test_app.dart b/lib/test_app.dart index cd3bbf6e..4b56e1a0 100644 --- a/lib/test_app.dart +++ b/lib/test_app.dart @@ -173,6 +173,17 @@ class _ClideTestAppState extends State { return 'exit=${r.exitCode} ${(r.stdout as String).trim()}'; }); + // ptyc stdin/stdout test — send a valid request, verify JSON response + await _testAsync('ptyc spawn echo', () async { + final proc = await Process.start(tc.ptyc, []); + // Send a request for /bin/echo — simplest possible child + proc.stdin.write('{"argv":["/bin/echo","hello"],"cwd":"/tmp","env":{},"cols":80,"rows":24}'); + await proc.stdin.close(); + final stdout = await proc.stdout.transform(const SystemEncoding().decoder).join(); + final exitCode = await proc.exitCode; + return 'exit=$exitCode stdout=${stdout.trim().split('\n').first}'; + }); + print('[testmode]'); }