fix(frontend): terminal_input 显示参数从 timeout 改为 output_wait,标签改为等待时间
This commit is contained in:
parent
f43b5ea73b
commit
c5dde27faa
@ -654,12 +654,12 @@ function renderTerminalSession(result: any, args: any): string {
|
|||||||
|
|
||||||
function renderTerminalInput(result: any, args: any): string {
|
function renderTerminalInput(result: any, args: any): string {
|
||||||
const command = args.command || args.input || '';
|
const command = args.command || args.input || '';
|
||||||
const timeout = args.timeout || 30;
|
const outputWait = args.output_wait || 30;
|
||||||
const output = result.output || result.result || '';
|
const output = result.output || result.result || '';
|
||||||
|
|
||||||
let html = '<div class="tool-result-meta">';
|
let html = '<div class="tool-result-meta">';
|
||||||
html += `<div><strong>指令:</strong>${escapeHtml(command)}</div>`;
|
html += `<div><strong>指令:</strong>${escapeHtml(command)}</div>`;
|
||||||
html += `<div><strong>超时时间:</strong>${timeout}秒</div>`;
|
html += `<div><strong>等待时间:</strong>${outputWait}秒</div>`;
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
if (output) {
|
if (output) {
|
||||||
|
|||||||
@ -604,12 +604,12 @@ function renderTerminalSession(result: any, args: any): string {
|
|||||||
|
|
||||||
function renderTerminalInput(result: any, args: any): string {
|
function renderTerminalInput(result: any, args: any): string {
|
||||||
const command = args.command || args.input || '';
|
const command = args.command || args.input || '';
|
||||||
const timeout = args.timeout || 30;
|
const outputWait = args.output_wait || 30;
|
||||||
const output = result.output || result.result || '';
|
const output = result.output || result.result || '';
|
||||||
|
|
||||||
let html = '<div class="tool-result-meta">';
|
let html = '<div class="tool-result-meta">';
|
||||||
html += `<div><strong>指令:</strong>${escapeHtml(command)}</div>`;
|
html += `<div><strong>指令:</strong>${escapeHtml(command)}</div>`;
|
||||||
html += `<div><strong>超时时间:</strong>${timeout}秒</div>`;
|
html += `<div><strong>等待时间:</strong>${outputWait}秒</div>`;
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
if (output) {
|
if (output) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user