feat: no note under the command in the assistant's question

This commit is contained in:
redtea committed 2026-10-16 10:48:34 +03:00
1 parent fcf9417f5a
commit fdd0483286
1 file changed
+1 -2
+1 -2
View File
@@ -360,8 +360,7 @@
// (or the start of the text) in mono.
function confirmAction(a) {
const m = machineOf(a.machine), where = m ? m.name : (a.machine || 'активная машина');
if (a.kind === 'run') return UI.confirm('Выполнить команду на {chip}?', {ok: 'Выполнить', chip: where, code: a.body,
note: 'Уйдёт в терминал этой машины с вашими правами.'});
if (a.kind === 'run') return UI.confirm('Выполнить команду на {chip}?', {ok: 'Выполнить', chip: where, code: a.body});
const lines = a.body.split('\n');
return UI.confirm('Записать файл {chip}?', {ok: 'Записать', chip: where + ':' + a.path,
code: lines.slice(0, 12).join('\n') + (lines.length > 12 ? '\n…' : ''),