mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
fix(tui): address latest review feedback
This commit is contained in:
parent
2be5e181a9
commit
a8bfe72d35
5 changed files with 17 additions and 87 deletions
|
|
@ -101,10 +101,10 @@ export function useSubmission(opts: UseSubmissionOptions) {
|
|||
|
||||
gw.request<PromptSubmitResponse>('prompt.submit', { session_id: sid, text: submitText }).catch((e: Error) => {
|
||||
if (isSessionBusyError(e)) {
|
||||
composerActions.enqueue(text)
|
||||
composerActions.enqueue(submitText)
|
||||
patchUiState({ busy: true, status: 'queued for next turn' })
|
||||
|
||||
return sys(`queued: "${text.slice(0, 50)}${text.length > 50 ? '…' : ''}"`)
|
||||
return sys(`queued: "${submitText.slice(0, 50)}${submitText.length > 50 ? '…' : ''}"`)
|
||||
}
|
||||
|
||||
sys(`error: ${e.message}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue