WeKnora/internal/handler/session
wizardchen 9ed6266264 fix(chat): 持久化快速问答的检索步骤,刷新后不再丢失时间轴
快速问答的检索步骤只存在于 SSE 事件流里,刷新后前端只能靠 knowledge_references
反推时间轴,于是「检索了但没命中」的那一轮回到历史时步骤全部消失,只剩一条
孤立的记忆行。

改为在快速问答模式下订阅 pipeline 的工具事件,把 query_understand /
knowledge_search / attachment_parsing / image_analysis 落到 agent_steps。只在收到
tool_result 时写入,避免被中断的步骤刷新后显示成已完成。

这些调用来自 pipeline 而非模型,ID 加 ragpipe- 前缀并在 Agent 历史回放里过滤掉,
否则会把模型没发起过、甚至没被提供的工具调用塞进请求协议。
2026-08-13 21:34:21 +08:00
..
agent_stream_handler.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
artifact_download.go feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
artifact_download_test.go feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
attachment_processor.go fix: pptx/ppt attachment parsing fails — missing parser engine + markitdown extras (#2621) 2026-08-09 16:23:36 +08:00
continue_stream_resource_urls_test.go test(api): cover resource_urls=public across the rewriter, handlers and SSE wire 2026-08-05 14:42:51 +08:00
handler.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
helpers.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
helpers_test.go refactor(handler): extract shared searchResultFromMap 2026-08-10 19:34:02 +08:00
image_upload.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
qa.go fix(chat): 持久化快速问答的检索步骤,刷新后不再丢失时间轴 2026-08-13 21:34:21 +08:00
qa_attachment_test.go feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
quick_answer_timeline.go fix(chat): 持久化快速问答的检索步骤,刷新后不再丢失时间轴 2026-08-13 21:34:21 +08:00
quick_answer_timeline_test.go fix(chat): 持久化快速问答的检索步骤,刷新后不再丢失时间轴 2026-08-13 21:34:21 +08:00
resolve_agent_test.go fix: harden shared agent source selector validation 2026-07-30 12:28:23 +08:00
resource_urls.go fix(api): close the resource_urls=public gaps found in review 2026-08-05 14:42:51 +08:00
resource_urls_test.go fix(api): close the resource_urls=public gaps found in review 2026-08-05 14:42:51 +08:00
search_knowledge_resource_urls_test.go fix(api): address resource_urls review follow-ups 2026-08-05 14:42:51 +08:00
stream.go fix(api): close the resource_urls=public gaps found in review 2026-08-05 14:42:51 +08:00
temporary_attachment_persist_test.go feat(attachments): implement normalization and limits for temporary attachment IDs 2026-07-16 17:41:27 +08:00
temporary_document.go fix: harden shared agent source selector validation 2026-07-30 12:28:23 +08:00
title.go feat(session): implement strict owner scope for API-key sessions 2026-07-20 19:31:02 +08:00
types.go fix: harden shared agent source permissions 2026-07-30 12:28:23 +08:00
wiki_fixer_scope.go fix(session): scope wiki fixer to shared KB tenant 2026-05-21 11:19:19 +08:00
wiki_fixer_scope_test.go fix(session): scope wiki fixer to shared KB tenant 2026-05-21 11:19:19 +08:00