mirror of
https://github.com/open-webui/computer.git
synced 2026-11-24 14:30:22 -05:00
refac
This commit is contained in:
1 parent
5ca7bff590
commit
a1856ea737
9 files changed
+90
-27
No files matched your search
@@ -206,7 +206,11 @@
|
||||
}
|
||||
|
||||
function isPendingHiddenMessage(m: ChatMessageRow): boolean {
|
||||
return !!(m.meta?.queued || m.meta?.async_subagent_pending);
|
||||
return !!(
|
||||
m.meta?.queued ||
|
||||
m.meta?.async_subagent_pending ||
|
||||
(m.meta?.internal === true && m.meta?.type === 'subagent' && m.meta?.status === 'pending')
|
||||
);
|
||||
}
|
||||
|
||||
function nearestVisibleAncestorId(
|
||||
|
||||
@@ -56,7 +56,9 @@
|
||||
let textareaEl: HTMLTextAreaElement;
|
||||
let asyncExpanded = $state(false);
|
||||
let timerExpanded = $state(false);
|
||||
const isAsyncSubagentResult = $derived(meta?.async_subagent_result === true);
|
||||
const isAsyncSubagentResult = $derived(
|
||||
(meta?.internal === true && meta?.type === 'subagent') || meta?.async_subagent_result === true
|
||||
);
|
||||
const isTimer = $derived(meta?.internal === true && meta?.type === 'timer');
|
||||
const delegationId = $derived(meta?.delegation_id || '');
|
||||
const delegationIds = $derived(Array.isArray(meta?.delegation_ids) ? meta.delegation_ids : []);
|
||||
|
||||
Reference in new issue
Block a user