Bug 58591

Summary: Команда cat <файл> не преобразуется автоматически в rtk read <файл>
Product: Sisyphus Reporter: Кожевников Владимир Сергеевич <kozhevnikovvs>
Component: rtkAssignee: Vladislav Glinkin <smasher>
Status: NEW --- QA Contact: qa-sisyphus
Severity: minor    
Priority: P5 CC: smasher
Version: unstable   
Hardware: x86_64   
OS: Linux   
Attachments:
Description Flags
Фактический результат none

Description Кожевников Владимир Сергеевич 2026-04-07 19:36:04 MSK
Created attachment 21073 [details]
Фактический результат

Системы: 
ALT Workstation 11 x86_64 
ALT Workstation K 11 x86_64
ALT Education 11 KDE x86_64 
ALT Education 11 x86_64
ALT Server 11.0 minimal x86_64 

Предусловие:
1. Создать файл test.txt:
$cat > ~/test.txt <<EOF
hello world
//
hello world
EOF
2. Установить opencode: $ curl -fsSL https://opencode.ai/install | bash

Шаги для воспроизведения:
1. Установить rtk: # atp-get install rtk
2. Открыть opencode: $ opencode
3. Выполнить в opencode: cat ~/test.txt

Ожидаемый результат:
Команда переписывается в `rtk read /home/test/test.txt`, вывод сжат:
$ rtk read /home/test/test.txt
hello world
hello world

Реальный результат:
Команда выполнена как системная `cat`, переписывания не произошло.
Вывод:
hello world
//
hello world