WeKnora/frontend/src/composables
nullptr-error fbaff900a0
feat(chat): append messages to a running agent turn (#3123)
* feat(stream): persist live-run markers and per-run steer queues

Mid-run sends need a cross-replica pointer to the generating
assistant and a control-plane list that never hits the SSE stream.

* feat(agent): inject queued user messages at ReAct round boundaries

The engine drains the steer sink after each round, persists accepted
rows, and delays Done until after a loop-end inject so the turn can continue.

* feat(session): expose /steer and hand leftover messages to a follow-up turn

Owner-scoped steer routes queue or inject into the live run, single-flight
AgentQA via the live-run marker, and history replay keeps multiple user rows
inside one turn.

* feat(frontend): queue mid-run messages while an agent turn streams

Stop and Send stay visible together, the overlay follows server delivery,
and history splits the transcript around injected user bubbles.

* fix(frontend): type pending and client_id on SteerQueueItem

vue-tsc failed because the overlay sets those fields while POST /steer is in flight.

* fix(session): harden steer persist, handoff, and new_run

Keep SetLiveRun ahead of SSE and roll back orphan turns, make inject
persist idempotent, append-then-delete on rebind, cap overrun rounds,
and stop aborting a live stream when /steer returns new_run.

* fix(session): satisfy pre-push lint on steer paths

Wrap long lines, check discarded Error/Emit results, and keep
context as the first argument so the fork push hook can pass.

---------

Co-authored-by: hailongzhao <hailongzhao@tencent.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-09-09 16:43:33 +08:00
..
preferenceStorage.ts fix(frontend): drop infectious preference fallback, add migration latch 2026-05-05 00:48:40 +08:00
skillInstallProgress.ts feat(frontend): keep the install drawer open with live circular progress 2026-09-02 15:08:05 +08:00
useApiBaseUrlDisplay.ts feat(frontend): add Chrome extension and Claw Skill integration landing pages 2026-06-28 00:31:38 +08:00
useArtifactArriveMotion.ts feat(chat): pulse the artifact folder when generated files arrive 2026-09-02 15:08:05 +08:00
useChatAttachmentPreviewDrawer.ts feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
useChatCitationPopover.ts feat(quick-qa): add references drawer and polish retrieval source UI 2026-07-08 00:26:34 +08:00
useChatMemoryRow.ts fix(frontend): 修复占位行样式并把记忆行统一收进时间轴 2026-08-13 21:34:21 +08:00
useChatQuestionMinimap.ts feat(chat): add a question outline for long overflowing sessions (#2839) 2026-08-27 16:18:05 +08:00
useChatReferencesDrawer.ts feat(quick-qa): add references drawer and polish retrieval source UI 2026-07-08 00:26:34 +08:00
useChatSandboxPanel.ts feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
useChatStreamHandler.test.mjs feat(chat): append messages to a running agent turn (#3123) 2026-09-09 16:43:33 +08:00
useChatStreamHandler.ts feat(chat): append messages to a running agent turn (#3123) 2026-09-09 16:43:33 +08:00
useConfigSkillInstallProgress.test.mjs refactor(skills): improve skill bundle size handling and error management 2026-09-02 15:08:05 +08:00
useConfigSkillInstallProgress.ts refactor(skills): improve skill bundle size handling and error management 2026-09-02 15:08:05 +08:00
useEmbedBridge.ts feat(frontend): embed OAuth wiring and API integration UI polish 2026-06-30 20:01:05 +08:00
useEmbedChatSession.ts fix(chat): align live timestamps with persisted created_at 2026-08-24 17:04:48 +08:00
useEmbedCitationPopover.ts feat(quick-qa): add references drawer and polish retrieval source UI 2026-07-08 00:26:34 +08:00
useFont.ts fix(frontend): make general-settings font picker actually work 2026-05-07 15:07:24 +08:00
useListUrlState.ts feat(favorites): implement user favorites and recents functionality 2026-05-18 17:28:58 +08:00
useResourcePins.ts feat(favorites): implement user favorites and recents functionality 2026-05-18 17:28:58 +08:00
useRoleLabel.ts feat(rbac-ui): rework tenant identity surfaces 2026-05-18 17:28:58 +08:00
useSandboxTerminal.ts feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
useStickyBottomOnResize.ts feat(frontend): enhance chat image handling and typewriter effect 2026-06-18 18:42:16 +08:00
useTagChipsOverflow.ts fix(knowledge): harden multi-tag data integrity and UX follow-ups 2026-06-26 10:52:52 +08:00
useTenantModelReadiness.ts refactor(frontend): streamline knowledge base and agent handling with chat resources store 2026-06-09 18:05:33 +08:00
useTheme.ts fix(frontend): drop infectious preference fallback, add migration latch 2026-05-05 00:48:40 +08:00
useTypewriter.test.ts feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
useTypewriter.ts feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00