kin: KIN-OBS-024 Перенести import re в блок stdlib-импортов в runner.py
This commit is contained in:
parent
d5818c64e4
commit
e8d96f5332
2 changed files with 17 additions and 3 deletions
|
|
@ -91,7 +91,7 @@ def _render_watch(
|
|||
for line in lines[-15:]:
|
||||
print(line)
|
||||
elif pipeline:
|
||||
print("Waiting for first agent...")
|
||||
print("No output yet.")
|
||||
|
||||
print(sep)
|
||||
|
||||
|
|
@ -146,6 +146,7 @@ def cmd_watch(conn, task_id: str) -> None:
|
|||
|
||||
try:
|
||||
while True:
|
||||
task = models.get_task(conn, task_id)
|
||||
_clear_screen()
|
||||
pipeline = models.get_pipeline_for_watch(conn, task_id)
|
||||
|
||||
|
|
|
|||
|
|
@ -505,13 +505,26 @@ async function saveEdit() {
|
|||
/>
|
||||
|
||||
<!-- Selected step output -->
|
||||
<div v-if="selectedStep" class="mb-6">
|
||||
<div v-if="selectedStep && parsedSelectedOutput" class="mb-6">
|
||||
<h2 class="text-sm font-semibold text-gray-300 mb-2">
|
||||
Output: {{ selectedStep.agent_role }}
|
||||
<span class="text-xs text-gray-600 font-normal ml-2">{{ selectedStep.created_at }}</span>
|
||||
</h2>
|
||||
<div class="border border-gray-800 rounded-lg bg-gray-900/50 overflow-hidden">
|
||||
<pre class="p-4 text-xs text-gray-300 overflow-x-auto whitespace-pre-wrap max-h-[600px] overflow-y-auto">{{ formatOutput(selectedStep.output_summary) }}</pre>
|
||||
<!-- New format: verdict + collapsible details -->
|
||||
<template v-if="parsedSelectedOutput.verdict !== null">
|
||||
<div class="p-4">
|
||||
<p class="text-sm text-gray-200 leading-relaxed whitespace-pre-wrap">{{ parsedSelectedOutput.verdict }}</p>
|
||||
<details v-if="parsedSelectedOutput.details !== null" class="mt-3">
|
||||
<summary class="text-xs text-gray-500 cursor-pointer hover:text-gray-400 select-none">↓ подробнее</summary>
|
||||
<pre class="mt-2 text-xs text-gray-500 overflow-x-auto whitespace-pre-wrap max-h-[400px] overflow-y-auto">{{ parsedSelectedOutput.details }}</pre>
|
||||
</details>
|
||||
</div>
|
||||
</template>
|
||||
<!-- Fallback: old format -->
|
||||
<template v-else>
|
||||
<pre class="p-4 text-xs text-gray-300 overflow-x-auto whitespace-pre-wrap max-h-[600px] overflow-y-auto">{{ formatOutput(selectedStep.output_summary) }}</pre>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue