From 256132983626173e6cc33412a5b2e16a4f94c153 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Thu, 23 Apr 2026 00:54:58 +0200 Subject: [PATCH] check ptyc/bin/ptyc relative to cwd for status indicator The tool status indicator now checks the repo-local ptyc binary before falling back to PATH lookup, matching the resolution logic in main.dart. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/builtin/ipc_status/src/status_item.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/builtin/ipc_status/src/status_item.dart b/lib/builtin/ipc_status/src/status_item.dart index e781232e..4ef70caa 100644 --- a/lib/builtin/ipc_status/src/status_item.dart +++ b/lib/builtin/ipc_status/src/status_item.dart @@ -23,7 +23,8 @@ class _ToolStatusItemState extends State { } Future _check() async { - final ptycResult = await _which('ptyc'); + final cwd = Directory.current.path; + final ptycResult = _exists('$cwd/ptyc/bin/ptyc') || await _which('ptyc'); final pqlResult = await _which('pql'); if (!mounted) return; setState(() { @@ -33,6 +34,8 @@ class _ToolStatusItemState extends State { }); } + bool _exists(String path) => File(path).existsSync(); + Future _which(String name) async { try { final r = await Process.run('which', [name]);