WeKnora/internal/application/service
lyingbug 68e6c03dc4
fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406)
* fix(skills): keep retries and catalog installs from rewriting the skill definition

Every install path wrote its archive back to the workspace catalog. After a
skill was re-registered as v2, sandboxes still on v1 are pinned to v1's
archive, so retrying one of them (a failed retry, or a ready skill retried
with guidance) reinstalled v1 and also moved the catalog definition back to
v1 and deleted v2's archive.

Installs now carry where their archive came from. Only an upload or a source
pull is a new definition; a retry or a catalog install uses bytes the
workspace already stores and never rewrites the definition. A retry of a
pinned install keeps its pin and replays its own version, and bytes that
neither the definition nor the row holds are refused with a conflict.

The catalog listing also reports each installation's version so the UI can
show what an upgrade moves from and to.

* feat(frontend): upgrade outdated skill installs from the catalog, sandbox drawer and agent editor

An install whose archive differs from the catalog was flagged as outdated,
but nothing could move it to the catalog version: the install drawer hid
ready installs, and the manage drawer only offered a retry, which replays
the sandbox's own archive.

- Skill settings: cards with outdated installs show an upgrade button that
  opens the install drawer with every outdated sandbox preselected. The
  add wizard and install drawer also let outdated ready installs be picked,
  labelled with the version they move from and to.
- Sandbox skill drawer: an outdated skill shows a "new version" row whose
  upgrade button installs the catalog onto that one sandbox.
- Agent editor: skills on the chosen sandbox that are outdated show the
  version change and an upgrade button, both for admins only, matching the
  admin-only catalog install. The install progress entry, which opens a
  drawer backed by admin-only endpoints, is now admin-only too.
- A skill that is being upgraded is no longer pruned from the agent's
  selected skills while it is briefly not ready.

The outdated check is shared in utils/skillUpgrade.ts.

* feat(skills): keep the previous version serving while an upgrade runs or after it fails

An install rewrote the row to the new version and marked it installing as
soon as it started, and the agent is only offered ready rows. So an upgrade
took the skill away from every sandbox for its whole run, and a failed
upgrade kept it away, even though the image pointer only moves on success
and the previous version was in the image the whole time.

The row now records what it described when it was last ready (served:
version, description, instructions, digest, the archive its files come from,
and the snapshot that installed it). The agent's usable set, member env
acceptance and the @-mention list read TenantSkillEntity.ServedView, which
is that version marked ready while the row is installing or failed. A
successful install clears it and releases its archive; a failure or a stop
keeps it.

Keeping that consistent:
- The served archive counts as a reader when a bundle is released or
  replaced by a re-registered catalog, so v1's files stay readable while v2
  installs.
- The reaper and a failed removal put the served version back when the image
  never moved past it, instead of labelling v1's files with the upgrade's
  metadata. A stuck upgrade whose chain cannot be read is left alone, since
  v1 keeps serving meanwhile.
- The env declaration is stored after the pointer moves rather than before
  the snapshot, so an upgrade that fails late cannot drop the admin value of
  a variable the previous version still reads.

Migration 000104 adds tenant_skills.served. The console says "upgrading,
still running 1.1.0" or "upgrade failed, still running 1.1.0", the agent
editor keeps such skills selectable, and the upgrade texts no longer warn
that the skill goes offline.

* fix(skills): offer only the upgrade to installs the catalog has moved past

Review follow-up on the upgrade flow.

- An install that differs from the catalog, ready or failed, is now offered
  the upgrade and not the retries. The retry icon and the retry-with-guidance
  box both replay the archive the install is pinned to, so next to an
  Upgrade button they reinstalled the version the operator came to leave
  behind. A failed first install of v1 whose catalog has since moved to v2
  used to retry v1 from the drawer while the agent editor's Install went to
  v2; every entry now goes to v2, and the agent editor labels it "Upgrade".
  The drawer explains that the failed install is replaced by the catalog
  version.
- A catalog install or a retry reuses the definition that already holds its
  bytes instead of re-running the catalog upsert, which rewrote the row and
  bumped its updated_at every time the skill was installed somewhere. The
  upsert still runs for a definition that does not exist yet or whose object
  was lost.
2026-09-18 20:27:43 +08:00
..
chat_pipeline refactor(modelcontext): consolidate source_refs parsing, fixed data_analysis table, and identifier leak report (#3372) 2026-09-17 22:08:16 +08:00
file fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
memory feat(artifacts): artifacts library page backed by a message_artifacts table (#3384) 2026-09-18 12:10:19 +08:00
metric feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
retriever refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
agent_browser_preferences.go feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
agent_browser_preferences_test.go feat(browser): polish connection settings, open tasks in a new window, and streamline prompts (#3193) 2026-09-11 21:28:58 +08:00
agent_browser_source_test.go refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
agent_history.go fix(chat): preserve steering continuity and composer focus 2026-09-09 20:15:23 +08:00
agent_history_test.go refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
agent_memory_config_test.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
agent_memory_tool_test.go feat(memory): introduce long-term memory feature with i18n updates 2026-08-13 18:00:02 +08:00
agent_rerank_requirement_test.go refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
agent_service.go fix(agent): search bound knowledge bases before answering, and pass suggested-question origins (#3400) 2026-09-18 17:00:47 +08:00
agent_service_install_shell_test.go fix(sandbox): separate file access from artifact publishing (#3356) 2026-09-17 16:18:01 +08:00
agent_service_scope_test.go fix(agent): 共享知识库在 runtime_context 中 doc_count 为 0 2026-08-12 15:55:51 +08:00
agent_service_shell_test.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
agent_service_skill_bundle_test.go refactor(skills): improve skill bundle size handling and error management 2026-09-02 15:08:05 +08:00
agent_service_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
agent_service_user_env_test.go feat(sandbox): inject per-user and workspace skill env vars at execution 2026-08-27 14:32:00 +08:00
agent_share.go refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
agent_share_runtime_test.go refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
agent_tool_surface_test.go refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
agent_web_pages.go fix(agent): improve web search and persistent page reading (#3086) 2026-09-07 23:09:27 +08:00
agent_web_pages_test.go fix(agent): improve web search and persistent page reading (#3086) 2026-09-07 23:09:27 +08:00
agent_web_tools_test.go refactor(agent): consolidate knowledge retrieval tools into search_knowledge, read_document, list_documents (#3381) 2026-09-18 14:12:22 +08:00
artifact_collector.go perf(sandbox): reduce redundant remote calls 2026-09-17 17:47:24 +08:00
artifact_collector_store.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
artifact_collector_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
audit_log.go fix(audit_log): prevent deadlock in Stop() when Start() is never called 2026-05-18 17:28:58 +08:00
audit_log_retention.go fix(audit_log): prevent deadlock in Stop() when Start() is never called 2026-05-18 17:28:58 +08:00
audit_log_retention_test.go fix(audit_log): prevent deadlock in Stop() when Start() is never called 2026-05-18 17:28:58 +08:00
audit_log_test.go feat(rbac): per-tenant audit log for RBAC events (PR 6, #1303) 2026-05-18 17:28:58 +08:00
chunk.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
chunk_edit_parent_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
chunk_write.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
custom_agent.go fix(agent): search bound knowledge bases before answering, and pass suggested-question origins (#3400) 2026-09-18 17:00:47 +08:00
custom_agent_api_key_scope_test.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
custom_agent_suggestion_limit_test.go fix(agent): honor suggested-questions limit parameter 2026-07-24 10:46:53 +08:00
custom_agent_suggestion_scope_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
dataset.go init commit 2025-08-05 15:08:07 +08:00
datasource_delete_sqlite_test.go fix: 修复 SQLite 下删除 DataSource 失败 2026-07-31 11:00:47 +08:00
datasource_result_cap_test.go fix(feishu): resilient large-wiki sync — retry, streaming resume, failure visibility 2026-07-21 16:14:22 +08:00
datasource_service.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
datasource_service_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
datasource_stream_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
datasource_sweep_wiring_test.go fix(datasource): perform real sync deletions scoped per data source (#2690) 2026-08-13 19:52:44 +08:00
document_write_access_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
embed_channel.go fix(agent): honor suggested-questions limit parameter 2026-07-24 10:46:53 +08:00
embed_channel_chunk_test.go feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
embed_channel_public_config_test.go refactor: remove Neo4j-based conversation memory feature 2026-07-18 23:41:48 +08:00
embed_channel_update_test.go refactor: remove Neo4j-based conversation memory feature 2026-07-18 23:41:48 +08:00
embed_session.go fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
embed_session_test.go fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
embed_webhook.go fix(security): harden outbound requests and file previews 2026-07-02 19:15:46 +08:00
embed_webhook_test.go fix(security): harden outbound requests and file previews 2026-07-02 19:15:46 +08:00
evaluation.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
extract.go refactor(modelcontext): consolidate source_refs parsing, fixed data_analysis table, and identifier leak report (#3372) 2026-09-17 22:08:16 +08:00
extract_data_table_summary_test.go fix(data-analysis): 修复 Excel 表格摘要丢失样本数据 2026-08-13 11:18:08 +08:00
fallback_messages_test.go fix(agent): prevent MCP answers from citing unrelated KB sources (#3144) 2026-09-10 00:31:43 +08:00
faq_clone_sync.go feat(knowledge): enhance FAQ export functionality 2026-07-23 10:50:32 +08:00
fork_bootstrapper.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
fork_bootstrapper_test.go test: isolate fork reset Git environment 2026-09-17 15:51:51 +08:00
fork_snapshot_reaper.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
fork_snapshot_reaper_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
graph.go fix(knowledge): stitch chunks by text overlap, not by position 2026-05-30 17:53:47 +08:00
image_multimodal.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
image_multimodal_orphan_test.go feat(tests): enhance image multimodal service tests and runtime task handling 2026-07-14 15:38:06 +08:00
image_multimodal_prompt_test.go Add instruction fields to knowledge base configuration 2026-07-13 12:16:19 +08:00
kb_activity.go feat(audit): 知识库活动记录对 API Key 操作额外显示 Key 名称 (#3405) 2026-09-18 19:39:34 +08:00
kb_activity_test.go feat(audit): 知识库活动记录对 API Key 操作额外显示 Key 名称 (#3405) 2026-09-18 19:39:34 +08:00
kbshare.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge.go fix(knowledge): make in-place file replacement race-safe 2026-09-16 14:54:47 +08:00
knowledge_auto_tag.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_auto_tag_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_batch_reparse_test.go feat(knowledge): make document summary generation optional 2026-09-17 19:39:52 +08:00
knowledge_caller_scope_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_cleanup_regression_test.go refactor(modelcontext): consolidate source_refs parsing, fixed data_analysis table, and identifier leak report (#3372) 2026-09-17 22:08:16 +08:00
knowledge_clone_image_test.go fix(knowledge): copy embedded chunk images into exports namespace 2026-07-22 15:27:11 +08:00
knowledge_clone_move.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledge_content_binding_test.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
knowledge_create.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
knowledge_create_folder_test.go feat(knowledge): store folder path for folder uploads and expose folder tree API 2026-08-04 20:45:29 +08:00
knowledge_create_gitlab_test.go feat(datasource): add Confluence sync (#3287) 2026-09-16 14:38:16 +08:00
knowledge_create_test.go feat(knowledge): make document summary generation optional 2026-09-17 19:39:52 +08:00
knowledge_delete.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledge_delete_plan.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_delete_test.go fix(knowledge): clean bound vector stores in batch delete 2026-07-27 11:32:30 +08:00
knowledge_faq.go feat(faq): filter entries by enabled status (#3157) 2026-09-10 14:42:59 +08:00
knowledge_faq_batch.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_faq_create_guard.go fix(faq): prevent duplicate entries when a create is retried 2026-08-05 17:05:51 +08:00
knowledge_faq_create_guard_test.go fix(faq): prevent duplicate entries when a create is retried 2026-08-05 17:05:51 +08:00
knowledge_faq_import.go perf(chunk): speed up chunk ingestion and batch updates (#3369) 2026-09-17 21:38:15 +08:00
knowledge_folder_move_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_housekeeping.go fix(knowledge): recover stranded deleting rows and align the KB count (#3367) 2026-09-18 00:55:44 +08:00
knowledge_housekeeping_test.go fix(knowledge): recover stranded deleting rows and align the KB count (#3367) 2026-09-18 00:55:44 +08:00
knowledge_image_cleanup_test.go fix(knowledge): delete extracted images from storage when knowledge is removed 2026-04-02 12:04:04 +08:00
knowledge_index_content.go refactor(knowledge): keep metadata document scoped 2026-07-28 20:23:48 +08:00
knowledge_index_content_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_manual_test.go fix: sanitize tab chars and avoid double .md extension in manual download filename 2026-03-16 18:18:23 +08:00
knowledge_move_gate_test.go fix: reject cross-store reuse_vectors knowledge move 2026-06-05 15:00:41 +08:00
knowledge_move_wiki_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_owner_chain_test.go feat(rbac): per-KB ownership for knowledge / chunks / wiki pages (#1303) 2026-05-18 17:28:58 +08:00
knowledge_post_process.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledge_post_process_graph_chunks_test.go fix(graph): feed OCR chunks to graph extraction instead of image-link placeholders (#3092) 2026-09-08 19:23:13 +08:00
knowledge_post_process_summary_test.go feat(knowledge): make document summary generation optional 2026-09-17 19:39:52 +08:00
knowledge_post_process_trace_test.go fix: correct graph and multimodal processing traces 2026-07-22 17:38:28 +08:00
knowledge_post_process_wiki_enqueue_test.go fix(graph): feed OCR chunks to graph extraction instead of image-link placeholders (#3092) 2026-09-08 19:23:13 +08:00
knowledge_process.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledge_process_config.go feat(knowledge): make document summary generation optional 2026-09-17 19:39:52 +08:00
knowledge_process_config_test.go feat(knowledge): make document summary generation optional 2026-09-17 19:39:52 +08:00
knowledge_process_parent_child_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_process_status_test.go fix(knowledge): clear stale error_message on the remaining reprocess paths 2026-08-03 20:14:09 +08:00
knowledge_reparse_scope.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_reparse_test.go fix(knowledge): clear stale errors on reparse 2026-07-28 20:44:34 +08:00
knowledge_replace.go fix(knowledge): make in-place file replacement race-safe 2026-09-16 14:54:47 +08:00
knowledge_replace_test.go fix(knowledge): make in-place file replacement race-safe 2026-09-16 14:54:47 +08:00
knowledge_resource_release_test.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
knowledge_shared_access_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_shared_storage_failure_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_span_tracker.go fix: correct graph and multimodal processing traces 2026-07-22 17:38:28 +08:00
knowledge_span_tracker_test.go fix(knowledge): enqueue stale summary refreshes 2026-07-28 20:23:48 +08:00
knowledge_storage_config_test.go fix(storage): merge tos/s3/oss/ks3 tenant configs in buildStorageConfig (#1117) 2026-05-06 17:09:42 +08:00
knowledge_summary_reconstruction_test.go fix(summary): preserve rows across table chunks / 修复表格分块摘要丢行 2026-08-05 13:12:59 +08:00
knowledge_summary_refresh.go fix(wiki): ensure prompt language is always resolved 2026-08-05 16:14:50 +08:00
knowledge_summary_refresh_test.go fix(knowledge): harden summary refresh after review feedback 2026-07-28 20:23:48 +08:00
knowledge_summary_sort_test.go fix(knowledge): harden summary refresh after review feedback 2026-07-28 20:23:48 +08:00
knowledge_summary_stale_test.go fix(knowledge): harden summary refresh after review feedback 2026-07-28 20:23:48 +08:00
knowledge_summary_test.go fix: retry document summaries before fallback 2026-08-05 19:29:32 +08:00
knowledge_task_options.go feat(worker): replace aggregate asynq concurrency with per-pool governance 2026-07-13 15:51:06 +08:00
knowledge_task_options_test.go feat(worker): replace aggregate asynq concurrency with per-pool governance 2026-07-13 15:51:06 +08:00
knowledge_transfer.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_transfer_test.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledge_update_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_util.go fix(knowledge): allow XMind files in knowledge imports 2026-09-15 17:56:25 +08:00
knowledge_util_filetype_test.go fix(knowledge): allow XMind files in knowledge imports 2026-09-15 17:56:25 +08:00
knowledge_util_ssrf_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
knowledge_write.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledge_write_access_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledgebase.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledgebase_access.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledgebase_delete_datasource_test.go fix(knowledgebase): delete data sources when knowledge base is removed 2026-06-23 17:30:38 +08:00
knowledgebase_pr3_test.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledgebase_profile.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledgebase_profile_test.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledgebase_search.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledgebase_search_budget_test.go fix(retriever): rebuild a missing vector store engine on demand 2026-07-29 12:25:18 +08:00
knowledgebase_search_dimension_test.go fix: report embedding dimension mismatches 2026-09-07 14:41:28 +08:00
knowledgebase_search_fanout.go feat(search): fan-out KB retrieval across bound vector stores 2026-05-20 22:25:39 +08:00
knowledgebase_search_fanout_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledgebase_search_faq.go Fix/hybrid search match count normalization (#2750) 2026-08-20 11:36:38 +08:00
knowledgebase_search_fusion.go fix(retrieval): bound keyword-only BM25 scores before rerank (#3343) 2026-09-17 12:12:11 +08:00
knowledgebase_search_fusion_test.go fix(retrieval): bound keyword-only BM25 scores before rerank (#3343) 2026-09-17 12:12:11 +08:00
knowledgebase_search_matchcount_test.go Fix/hybrid search match count normalization (#2750) 2026-08-20 11:36:38 +08:00
knowledgebase_search_results.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
knowledgebase_search_results_edit_test.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
knowledgebase_search_shared.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledgebase_search_storegroup.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
knowledgebase_task_cancel_test.go fix(knowledge): recover stranded deleting rows and align the KB count (#3367) 2026-09-18 00:55:44 +08:00
knowledgebase_wiki_cleanup_test.go fix: clean up wiki data when deleting knowledge base (#3109) 2026-09-14 21:02:31 +08:00
mcp_endpoint.go feat(mcp): add built-in MCP server with per-workspace endpoints (#3371) 2026-09-17 22:40:05 +08:00
mcp_endpoint_test.go feat(mcp): add built-in MCP server with per-workspace endpoints (#3371) 2026-09-17 22:40:05 +08:00
mcp_metadata.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
mcp_metadata_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
mcp_service.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
mcp_service_test.go fix(test): use resolvable URLs in MCP service update test 2026-08-10 19:25:25 +08:00
mcp_tool_approval_service.go feat(mcp): add per-tool enable toggle (#2989) 2026-09-05 17:19:20 +08:00
mcp_tool_approval_service_test.go refactor(agent): discover and invoke MCP tools on demand 2026-09-08 12:01:36 +08:00
message.go feat(artifacts): artifacts library page backed by a message_artifacts table (#3384) 2026-09-18 12:10:19 +08:00
message_artifact_library_test.go feat(artifacts): artifacts library page backed by a message_artifacts table (#3384) 2026-09-18 12:10:19 +08:00
message_artifact_versions.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
message_artifact_versions_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
message_index_skip_test.go fix(message): log why chat history indexing was skipped 2026-09-05 16:52:27 +08:00
message_search_group_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
message_suggestion.go fix(observability): nest follow-up completions under the chat trace 2026-08-31 19:42:32 +08:00
message_suggestion_test.go fix(agent): ground follow-up suggestions and preserve KB scope on click 2026-07-15 19:16:53 +08:00
metric_hook.go fix(evaluation): fix retrieval metrics by mapping chunks back to passage IDs 2026-07-31 11:05:13 +08:00
model.go fix(models): show usage details when deletion is blocked (#2975) 2026-09-02 17:20:37 +08:00
model_builtin_management_test.go feat(models): let system admins edit builtin model config 2026-07-14 15:56:02 +08:00
model_delete_test.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
ocr_sanitizer.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
ocr_sanitizer_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
organization.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
parser_url_security.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
parser_url_security_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
password_policy.go feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
password_policy_test.go feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
pinned_session_sandbox.go perf(sandbox): reduce redundant remote calls 2026-09-17 17:47:24 +08:00
pinned_session_sandbox_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
question_origin_test.go fix(agent): search bound knowledge bases before answering, and pass suggested-question origins (#3400) 2026-09-18 17:00:47 +08:00
resource.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
resource_file_authorization_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
resource_references_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
resource_review_regression_test.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
resource_test.go fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
sandbox_desktop_last.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
sandbox_desktop_last_test.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
sandbox_desktop_service.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
sandbox_desktop_service_test.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
sandbox_desktop_ticket.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
sandbox_desktop_ticket_test.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
sandbox_operation_requests_test.go perf(sandbox): reduce redundant remote calls 2026-09-17 17:47:24 +08:00
sandbox_terminal_auth.go feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
sandbox_terminal_auth_test.go feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
sandbox_terminal_service.go feat(sandbox): unify the interactive PTY prompt and reconnect running sandboxes (#3128) 2026-09-09 18:17:10 +08:00
sandbox_terminal_service_test.go feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
sandbox_terminal_ticket.go feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
sandbox_terminal_ticket_test.go feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
session.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
session_agent_qa.go fix(agent): search bound knowledge bases before answering, and pass suggested-question origins (#3400) 2026-09-18 17:00:47 +08:00
session_agent_qa_scope_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
session_attachment_staging.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
session_attachment_staging_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
session_fork.go feat(artifacts): artifacts library page backed by a message_artifacts table (#3384) 2026-09-18 12:10:19 +08:00
session_fork_delete_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
session_fork_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
session_knowledge_qa.go refactor(modelcontext): consolidate source_refs parsing, fixed data_analysis table, and identifier leak report (#3372) 2026-09-17 22:08:16 +08:00
session_knowledge_qa_test.go fix(wiki): fall back to a knowledge QA model 2026-08-31 12:28:37 +08:00
session_model_requirement_test.go fix(wiki): fall back to a knowledge QA model 2026-08-31 12:28:37 +08:00
session_qa_api_key_scope_test.go Refine scoped API key capabilities 2026-07-07 12:00:13 +08:00
session_qa_helpers.go fix(agent): search bound knowledge bases before answering, and pass suggested-question origins (#3400) 2026-09-18 17:00:47 +08:00
session_sandbox_entry_test.go fix(sandbox): pin Docker sessions so skill artifacts get collected 2026-08-27 11:49:34 +08:00
session_sandbox_gating_test.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
session_sandbox_pin.go fix(sandbox): pin Docker sessions so skill artifacts get collected 2026-08-27 11:49:34 +08:00
session_sandbox_pin_test.go fix(sandbox): pin Docker sessions so skill artifacts get collected 2026-08-27 11:49:34 +08:00
session_sandbox_turn_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
session_tag_targets_test.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
session_title_test.go fix(session): bound the auto-generated session title to fit the column 2026-08-20 15:35:34 +08:00
session_user_scope_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
slug_fuzzy.go perf(wiki-ingest): scale to 4w-doc KBs + generic task queue / dead-letter 2026-05-10 00:01:06 +08:00
slug_fuzzy_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
storagebackend.go fix(security): reject traversal in local prefixes, task IDs, and wiki sort 2026-09-07 11:23:45 +08:00
storagebackend_test.go ui(sandbox): rename settings to skill sandbox and fix skill install (#2792) 2026-08-25 13:24:58 +08:00
system_setting.go feat: require opt-in for the Docker sandbox backend (#2936) 2026-09-01 15:42:28 +08:00
system_setting_validation_test.go feat(worker): replace aggregate asynq concurrency with per-pool governance 2026-07-13 15:51:06 +08:00
tag.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
tag_access.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
temporary_document.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
temporary_document_fork_access_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00
temporary_document_test.go feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
tenant.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
tenant_api_key.go feat: support updating API key configuration 2026-08-12 11:43:03 +08:00
tenant_api_key_test.go feat: support updating API key configuration 2026-08-12 11:43:03 +08:00
tenant_invitation.go fix: reconcile direct invites after share-link join 2026-08-31 12:31:00 +08:00
tenant_invitation_test.go fix: reconcile direct invites after share-link join 2026-08-31 12:31:00 +08:00
tenant_member.go fix(tenant): clear stale home tenant after member removal 2026-08-07 14:35:10 +08:00
tenant_member_test.go feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
tenant_sandbox_config.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
tenant_sandbox_config_test.go feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
tenant_sandbox_resolve.go feat(sandbox): 沙箱后端改为按空间配置,并补齐 E2B 模板与检测诊断 2026-08-11 15:42:02 +08:00
tenant_skill_admin.go fix(sandbox): make skill env capture fill blanks only 2026-08-27 14:32:00 +08:00
tenant_skill_admin_test.go fix(sandbox): make skill env capture fill blanks only 2026-08-27 14:32:00 +08:00
tenant_skill_bundle.go fix(skills): accept UTF-8 BOM in skill manifests 2026-09-09 14:42:03 +08:00
tenant_skill_bundle_test.go fix(skills): accept UTF-8 BOM in skill manifests 2026-09-09 14:42:03 +08:00
tenant_skill_catalog.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_catalog_test.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_effective.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_effective_test.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
tenant_skill_env_declare.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
tenant_skill_env_declare_test.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
tenant_skill_files.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_files_test.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_install.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_install_test.go fix(skills): stop racing background install in retry tests 2026-09-17 13:03:35 +08:00
tenant_skill_progress.go fix(sandbox): harden tenant skill install against races and credential rotation 2026-08-24 17:51:13 +08:00
tenant_skill_reaper.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_reaper_test.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_remove.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_remove_test.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_runtime_verify.go fix(skills): pin install guidance and generalize runtime prompts 2026-09-09 23:46:59 +08:00
tenant_skill_runtime_verify_test.go fix(skills): pin install guidance and generalize runtime prompts 2026-09-09 23:46:59 +08:00
tenant_skill_served_test.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_service.go fix(skills): verify runtime prerequisites and support installer steering 2026-09-09 23:04:59 +08:00
tenant_skill_service_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
tenant_skill_source.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
tenant_skill_source_test.go fix(skills): accept UTF-8 BOM in skill manifests 2026-09-09 14:42:03 +08:00
tenant_skill_stale_sandbox_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
tenant_skill_steer.go fix(skills): verify runtime prerequisites and support installer steering 2026-09-09 23:04:59 +08:00
tenant_skill_steer_test.go fix(skills): verify runtime prerequisites and support installer steering 2026-09-09 23:04:59 +08:00
tenant_skill_stop.go feat(skills): add StopSkill functionality to abort in-flight installs 2026-09-02 15:08:05 +08:00
tenant_skill_stop_test.go feat(skills): add StopSkill functionality to abort in-flight installs 2026-09-02 15:08:05 +08:00
tenant_skill_transcript.go fix(agent): report failed tool executions as tool_result, not error 2026-09-18 11:11:21 +08:00
tenant_skill_transcript_test.go fix(agent): report failed tool executions as tool_result, not error 2026-09-18 11:11:21 +08:00
tenant_skill_verify.go fix(skills): verify runtime prerequisites and support installer steering 2026-09-09 23:04:59 +08:00
tenant_skill_verify.py refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
tenant_skill_verify_python_test.go refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
tenant_storagebackend_test.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
user.go fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
user_admin_create_test.go feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
user_auth_token_test.go feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
user_env.go fix(skills): upgrade outdated sandbox skills without rolling back the catalog or taking them offline (#3406) 2026-09-18 20:27:43 +08:00
user_env_resolver.go feat(agent): unify sandbox tools and drop host preloaded skills (#3033) 2026-09-05 16:45:59 +08:00
user_env_resolver_test.go feat(sandbox): inject per-user and workspace skill env vars at execution 2026-08-27 14:32:00 +08:00
user_env_test.go ui(sandbox): redesign personal sandbox secrets settings 2026-08-27 16:55:09 +08:00
user_jwt_test.go fix(security): block refresh tokens as bearer and sandbox MCP uploads 2026-07-02 17:08:17 +08:00
user_oidc_security_test.go fix: close OIDC id_token verification gaps for explicit endpoints 2026-09-01 11:26:30 +08:00
user_oidc_verify_test.go fix: close OIDC id_token verification gaps for explicit endpoints 2026-09-01 11:26:30 +08:00
user_provisioning_test.go fix(tenant): clear stale home tenant after member removal 2026-08-07 14:35:10 +08:00
user_resource_favorite.go feat(favorites): implement user favorites and recents functionality 2026-05-18 17:28:58 +08:00
user_switch_tenant_test.go fix(auth): record last-active-tenant preference on SwitchTenant (#2922) 2026-09-01 15:43:40 +08:00
vectorstore.go fix: validate vector store connection addresses against SSRF policy 2026-06-04 15:26:56 +08:00
vectorstore_healthcheck.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
vectorstore_healthcheck_ssrf_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
vectorstore_opensearch_test.go feat(retriever): activate OpenSearch k-NN driver (PR 3 of 3) 2026-05-29 16:32:27 +08:00
vectorstore_ssrf_test.go fix: validate vector store connection addresses against SSRF policy 2026-06-04 15:26:56 +08:00
vectorstore_test.go feat(knowledge): derive knowledge base descriptions from document profiles (#3370) 2026-09-17 22:21:55 +08:00
web_search.go feat(web-search): add Serply provider 2026-09-17 12:25:09 +08:00
web_search_filters_test.go fix(agent): improve web search and persistent page reading (#3086) 2026-09-07 23:09:27 +08:00
web_search_provider.go feat(web-search): add Serply provider 2026-09-17 12:25:09 +08:00
web_search_provider_test.go feat(web-search): add Serply provider 2026-09-17 12:25:09 +08:00
web_search_state.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
weknoracloud.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
wiki_deleted_kb_guard_test.go fix(tasks): dequeue work for deleted knowledge bases 2026-07-23 12:17:14 +08:00
wiki_folder_prune_finalize_test.go feat(wiki): prune empty folders after document retract 2026-07-22 19:27:22 +08:00
wiki_ingest.go refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
wiki_ingest_batch.go refactor(modelcontext): consolidate source_refs parsing, fixed data_analysis table, and identifier leak report (#3372) 2026-09-17 22:08:16 +08:00
wiki_ingest_cite.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_ingest_cite_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
wiki_ingest_dedup.go refactor: remove unused private Go helpers 2026-09-17 15:51:51 +08:00
wiki_ingest_dedup_test.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_ingest_language_test.go fix(wiki): ensure prompt language is always resolved 2026-08-05 16:14:50 +08:00
wiki_ingest_retry_test.go fix(wiki): treat rate-limit-shaped 403 responses as transient 2026-09-07 14:41:48 +08:00
wiki_ingest_taxonomy.go feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
wiki_ingest_taxonomy_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
wiki_ingest_test.go fix(wiki): set MaxTokens for generateWithTemplate LLM calls 2026-08-12 11:45:06 +08:00
wiki_linkify.go feat: Refactor cross-link injection logic for wiki pages 2026-04-22 21:18:09 +08:00
wiki_linkify_test.go feat: Refactor cross-link injection logic for wiki pages 2026-04-22 21:18:09 +08:00
wiki_lint.go refactor(modelcontext): consolidate source_refs parsing, fixed data_analysis table, and identifier leak report (#3372) 2026-09-17 22:08:16 +08:00
wiki_page.go fix(wiki): keep folder names that look like page-type labels when placing pages 2026-09-07 17:23:19 +08:00
wiki_page_revision_test.go feat(wiki): add page revision history with diff, revert, and manual editing 2026-07-27 15:03:24 +08:00
wiki_page_test.go fix(wiki): keep folder names that look like page-type labels when placing pages 2026-09-07 17:23:19 +08:00
wiki_slug_handles.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
wiki_slug_handles_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
workspace_checkpointer.go perf(sandbox): reduce redundant remote calls 2026-09-17 17:47:24 +08:00
workspace_checkpointer_test.go feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00