mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-17 04:31:55 +00:00
fix(tui): stop empty idle dequeue from triggering ready-state OOM
This commit is contained in:
parent
edf1aecacd
commit
904f20d622
1 changed files with 6 additions and 1 deletions
|
|
@ -386,7 +386,12 @@ export function useMainApp(gw: GatewayClient) {
|
||||||
// and error paths never emit message.complete, so anything enqueued while
|
// and error paths never emit message.complete, so anything enqueued while
|
||||||
// `!sleep` / a failed turn was running would stay stuck forever.
|
// `!sleep` / a failed turn was running would stay stuck forever.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!ui.sid || ui.busy || composerRefs.queueEditRef.current !== null) {
|
if (
|
||||||
|
!ui.sid ||
|
||||||
|
ui.busy ||
|
||||||
|
composerRefs.queueEditRef.current !== null ||
|
||||||
|
composerRefs.queueRef.current.length === 0
|
||||||
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue