mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
fix(tui,cli): render a resumed interrupted turn as an event
Desktop already did; the TUI transcript and the CLI resume recap fell through to the default and printed the raw system note.
This commit is contained in:
parent
7ab5567953
commit
ff7418315f
3 changed files with 11 additions and 1 deletions
|
|
@ -494,7 +494,7 @@ export interface SessionMessage {
|
|||
reasoning?: null | string
|
||||
reasoning_content?: null | string
|
||||
reasoning_details?: unknown
|
||||
display_kind?: 'async_delegation_complete' | 'hidden' | 'model_switch' | string
|
||||
display_kind?: 'async_delegation_complete' | 'auto_continue' | 'hidden' | 'model_switch' | string
|
||||
/**
|
||||
* A backend older than this app can still serve this as unparsed JSON text,
|
||||
* so readers must narrow before indexing into it.
|
||||
|
|
|
|||
|
|
@ -594,6 +594,9 @@ class CLIAgentSetupMixin:
|
|||
if display_kind == "async_delegation_complete":
|
||||
entries.append(("event", "background delegation completed"))
|
||||
continue
|
||||
if display_kind == "auto_continue":
|
||||
entries.append(("event", "resumed interrupted turn"))
|
||||
continue
|
||||
|
||||
if role == "system":
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -69,6 +69,13 @@ export const toTranscriptMessages = (rows: unknown): Msg[] => {
|
|||
continue
|
||||
}
|
||||
|
||||
if (display_kind === 'auto_continue') {
|
||||
out.push({ kind: 'event', role: 'system', text: 'resumed interrupted turn' })
|
||||
pending = []
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
if (display_kind === 'async_delegation_complete') {
|
||||
const meta = (row as TranscriptRow).display_metadata
|
||||
const count = meta && typeof meta.task_count === 'number' ? meta.task_count : undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue