data timeout fixes; research agent improvements
This commit is contained in:
@@ -634,6 +634,23 @@ const injectShadowStyles = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const updateShadowStopOverride = (enabled: boolean) => {
|
||||
const chatEl = document.querySelector('vue-advanced-chat')
|
||||
if (!chatEl?.shadowRoot) return
|
||||
chatEl.shadowRoot.querySelector('#vac-stop-override')?.remove()
|
||||
if (enabled) {
|
||||
const style = document.createElement('style')
|
||||
style.id = 'vac-stop-override'
|
||||
style.textContent = `
|
||||
.vac-send-disabled {
|
||||
pointer-events: auto !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
`
|
||||
chatEl.shadowRoot.appendChild(style)
|
||||
}
|
||||
}
|
||||
|
||||
watch(() => channelStore.isReady, async (ready) => {
|
||||
if (!ready) return
|
||||
await nextTick()
|
||||
@@ -644,6 +661,10 @@ watch(() => channelStore.isReady, async (ready) => {
|
||||
}, 100)
|
||||
})
|
||||
|
||||
watch(isAgentProcessing, (val) => {
|
||||
updateShadowStopOverride(val)
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
wsManager.removeHandler(handleMessage)
|
||||
})
|
||||
@@ -711,6 +732,7 @@ onUnmounted(() => {
|
||||
@mousedown="isStopPressed = true"
|
||||
@mouseup="isStopPressed = false"
|
||||
:style="{
|
||||
pointerEvents: 'auto',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
|
||||
Reference in New Issue
Block a user