feat: no note under the command in the assistant's question
This commit is contained in:
1 parent
fcf9417f5a
commit
fdd0483286
1 file changed
+1
-2
@@ -360,8 +360,7 @@
|
|||||||
// (or the start of the text) in mono.
|
// (or the start of the text) in mono.
|
||||||
function confirmAction(a) {
|
function confirmAction(a) {
|
||||||
const m = machineOf(a.machine), where = m ? m.name : (a.machine || 'активная машина');
|
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,
|
if (a.kind === 'run') return UI.confirm('Выполнить команду на {chip}?', {ok: 'Выполнить', chip: where, code: a.body});
|
||||||
note: 'Уйдёт в терминал этой машины с вашими правами.'});
|
|
||||||
const lines = a.body.split('\n');
|
const lines = a.body.split('\n');
|
||||||
return UI.confirm('Записать файл {chip}?', {ok: 'Записать', chip: where + ':' + a.path,
|
return UI.confirm('Записать файл {chip}?', {ok: 'Записать', chip: where + ':' + a.path,
|
||||||
code: lines.slice(0, 12).join('\n') + (lines.length > 12 ? '\n…' : ''),
|
code: lines.slice(0, 12).join('\n') + (lines.length > 12 ? '\n…' : ''),
|
||||||
|
|||||||
Reference in new issue
Block a user