Commit Graph

3455 Commits (9b031a657656cddaddafe3cb2e124ccfc2f0693e)

Author SHA1 Message Date
Mohamed Arbi 9b031a6576
fix: accept qdrant collection created concurrently (#3999) 2026-10-12 13:24:36 +08:00
ordinary being 7925f774d1
fix(datasource/gitlab): emptied files no longer leave their old body searchable (#4008)
A blob that a commit emptied is still a blob, and ingestion reads an item with
neither content nor URL as nothing to sync: applyFetchedItem counts it as
skipped and the sync reports success. The body indexed from an earlier commit
stays fully searchable, and no later sync revisits it — a full sync still sees
the path in the tree, and an incremental sync only walks the diffs of commits
newer than the recorded head, which the emptying commit already moved past.

Emit the file's path as the content in that case so ingestion replaces the stale
body, matching what the Notion (b9be7d0d), Confluence and IMA (b71b31c8)
connectors already do. The check is on length alone: a blob holding only
whitespace still carries content the repository has.
2026-10-12 13:06:19 +08:00
Jarvis 24b5ca3f23
docs: clarify frontend development proxy configuration (#4171) 2026-10-12 13:03:01 +08:00
Lyang77 fe444c851e
fix(feishu): add shared request pacing and improve HTTP 429 / error 99991400 retries in Feishu Wiki synchronization (#4039)
* fix(feishu): 修复同步请求限流与共享重试等待

* fix(feishu): 完善知识库限流冷却和导出轮询

Bound export polling by poll count so shared pacing and cooldowns retain the
same export ticket without causing false 60-second timeouts. Preserve the
feishu_timeout failure classification when the poll budget is exhausted.

Cap cooldowns, isolate reactive waits by API path, and use a configurable
10-second default when no valid retry hint is available. Refresh expired
tokens before rejoining the request gate to preserve pacing and new cooldowns.

Skip JSON decoding when the legacy rate-limit code is absent, derive the
prefilter from the shared protocol constant, and update configuration docs.
Isolate shared gates in tests and cover cooldowns, cancellation, API grouping,
concurrent token refresh, and timeout classification.

Validation: Feishu core tests pass; diff-scoped Feishu lint reports 0 issues;
gofmt and git diff --check pass. No live Feishu sync was run for this commit.

* fix(feishu): grant request gate slots in arrival order and improve rate-limit logs

- Reserve the next slot before sleeping so concurrent callers are paced in
  FIFO order instead of racing after a shared wake-up.
- Restore the error log for non-rate-limited HTTP 400 download failures.
- Include the API gate name in rate-limit warnings.

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-12 13:00:33 +08:00
kwsYeager e5f9f9deab feat(rerank): add Cohere provider for the v2 rerank API 2026-10-12 11:57:53 +08:00
Perfecto c6bfe81894
feat(helm): allow Service name overrides with matching consumer references (#4109)
* feat(helm): support compatible service name overrides

* refactor(helm): keep verification within existing chart workflow

* docs(helm): focus service naming guidance on configuration and upgrades
2026-10-12 11:53:32 +08:00
LuckVd 3c36cb19a2
fix(deploy): bump paradedb image to v0.25.11-pg17 (#4120)
* fix(deploy): bump paradedb image to v0.25.11-pg17

Batch-importing large knowledge bases on the pinned
paradedb/paradedb:v0.22.6-pg17 image drives PostgreSQL into a
PANIC/crash-recovery loop (corrupted page pointers in shared buffers,
amcheck clean, no OOM), taking every ingest task down with it.

Three independent fixes upstream cover this exact write path, and the
pinned image predates all of them:

- pgvector 0.8.2 fixed a buffer overflow in parallel HNSW index
  builds, 0.8.3 fixed possible index corruption during HNSW vacuuming,
  and 0.8.4 fixed inserts during HNSW vacuuming; the image ships
  pgvector 0.8.1, and the embeddings table maintains three HNSW
  halfvec indexes on import.
- pg_search gained WAL-based crash recovery in 0.24.0 (paradedb#4901):
  without it, any backend crash corrupts BM25 segment metadata and
  turns a single crash into a recovery loop (paradedb#4935).
- PostgreSQL core moved 17.9 -> 17.11; its release notes contain no
  fix matching this failure signature, ruling the core out.

Bump the compose image tags to v0.25.11-pg17 (postgres and
langfuse-db-init, prod and dev) and update the docs that pin the old
tag. Fresh installs are covered by the existing schema SQL (verified
against 0.25.11: extensions, BM25 index and HNSW halfvec indexes all
create cleanly). Existing data volumes keep working across the image
swap without any action (keyword and vector queries byte-identical in
testing); ALTER EXTENSION pg_search/vector UPDATE aligns the SQL
catalog afterwards, and migration 000099 is a no-op for 0.25.x by
design. The Helm chart pins a different image line and is left alone.

Fixes #4077

* fix(migrations): upgrade pg_search catalog to 0.25.11 with the image

Swapping in the v0.25.11 image leaves the extension catalog at 0.22.x.
Calling extension functions such as paradedb.version_info() against the
mismatched catalog segfaults the backend and sends the whole server into
crash recovery, so the catalog upgrade is required rather than optional.

- Add migration 000115 to update pg_search 0.22.0-0.25.10 to 0.25.11 and
  pgvector 0.8.0-0.8.3 to 0.8.4 when the server ships those versions.
- Skip 000099 on newer images instead of advising UPDATE TO '0.22.6',
  which leaves the catalog behind the shared library and crashes.
- Rewrite the upgrade guide as one 0.22.x -> 0.25.11 path with a required
  ALTER EXTENSION UPDATE and a note that rollback needs a backup.
- Extend scripts/test_paradedb_upgrade.py to verify 0.22.2 -> 0.25.11 by
  default (--to 0.22.6 keeps the old path) and run CONCURRENTLY
  migrations outside a transaction like golang-migrate does.

---------

Co-authored-by: LuckVd <LuckVd@users.noreply.github.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-12 11:50:11 +08:00
AndyZhang 21ef506fc9
fix(agent): scope database queries to authorized shared knowledge bases (#4136)
Resolve database query tenant scopes for authorized shared knowledge bases and add regression coverage for cross-tenant access.

Fixes Tencent/WeKnora#4084
2026-10-12 11:26:34 +08:00
Ochan Kwon be581c41e0
fix(mcp): close only the authorizing user's connection after OAuth (#4138)
An OAuth MCP service keeps one cached connection per user. After a
successful OAuth callback, after a token is revoked, and when an agent
resumes from an in-conversation authorization, the service's connections
were recycled with CloseClient, which disconnects every user's
connection and cancels connection attempts still in flight. Closing a
Streamable HTTP connection cancels the requests it has in flight, so one
user authorizing again cancelled other users' running tool calls on the
same server process. The agent retries a failed call once on a fresh
connection, but a long call fails, and a non-idempotent tool can run
twice.

A connection is not affected when another user's token changes: each
one reads its own user's token from the store on every request. Add
MCPManager.CloseClientForPrincipal, which closes only that user's
connection, and use it when a token is revoked.

After an authorization, the callback and the in-conversation retry call
CloseClientsAfterAuthorization instead. It closes the authorizing user's
connection, since the new authorization may be for another account of
the upstream service, and every connection of the service in the tenant
that was built with an OAuth client ID other than the registration
stored now. The registration is shared by all users of the service and
can be replaced by any replica. A connection still holding the old
client ID can fail its next refresh with invalid_client, and handling
that failure deletes the stored registration, by then the replacement.
If the registration cannot be read, the whole service is closed as
before, unless the caller's context has ended, in which case only the
authorizing user's connection is closed. The callback bounds this
cleanup with its own timeout.

This runs in the process that handles the callback and, for an
in-conversation authorization, in the process where the agent waits.
Connections cached by other replicas are not examined, as before, and
neither are other users' connection attempts still in flight.

CompleteAuthorization now returns the tenant, service and principal of
the attempt, and connections report the client ID they were built with.
Disconnecting happens after the manager lock is released, because
closing a transport can wait on the server.
2026-10-12 11:19:42 +08:00
VictorMaznyuk d272a83cfc
fix(deploy): pass WEKNORA_OUTBOUND_DIAL_TIMEOUT through to the app container (#4157)
#4122 made the outbound (SSRF-safe) dial timeout configurable through
WEKNORA_OUTBOUND_DIAL_TIMEOUT (internal/config/config.go,
applyNetworkEnvOverrides), but the variable is not listed in
services.app.environment, so in a Docker Compose deployment there is no way
to set it: a value in the host .env never reaches the container, and slow
serverless endpoints keep failing at the 5s default.

Pass it through with an empty default. applyNetworkEnvOverrides only
overrides the timeout when the trimmed value is non-empty and parses as a
positive duration, so an unset variable keeps the 5s default unchanged.
Also document it in .env.example next to the other outbound settings.

Co-authored-by: Victor Maznyuk <victor@maznyuk.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:01:06 +08:00
alexcastgonz 9efe94cc6f
feat(models): add Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 to the catalog (#4158)
These three models were missing from the catalog, so they resolved to the
anthropic defaults: budget thinking (they reject budget_tokens) and
temperature/top_p (they reject non-default sampling values).

seed.json pins their metadata from the models overview and pricing pages:
1M context, 128K output, and base, 5m cache write, cache hit and output
prices. Haiku 5.5 is priced by prompt length, and the catalog has one price
per model, so it carries the prompts-up-to-100k tier. overrides.json gives
all three adaptive thinking with effort (all five levels), with temperature
and top_p off.

Thinking off differs per model. Opus 5.5 can't turn thinking off, so off is
unsupported, like Fable 5.1. Haiku 5.5 accepts "disabled". Sonnet 5.5
rejects "disabled" and turns off up-front thinking with "between_tools". The
new thinking_off_type compat field carries that value. Empty keeps
"disabled", and it is omitempty so the parity hashes of other entries don't
change.


Claude-Session: https://claude.ai/code/session_01BeNHkjF4spsH9d18UiYPiU

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:59:51 +08:00
lyingbug 00474f734d
fix: align settings layouts and tolerate existing migration objects (#4164)
* fix(frontend): unify settings layouts and compact integration guides

* fix(migrations): tolerate existing browser memory and catalog objects
2026-10-11 22:48:57 +08:00
alexcastgonz 5343ac47b7
fix(models): stop sending temperature to Claude models that reject it (#4155)
Disable temperature and top_p for Claude models that reject non-default sampling values. Regenerate the model catalog and parity baseline, add request-body regression coverage, and clarify the documented sampling restrictions.
2026-10-11 22:44:56 +08:00
JLi 643f64180e
feat(system): add platform user management and streamline settings (#4153)
* feat(system): platform user management — list, enable/disable, reset password, role toggle

Adds a SystemAdmin-only user management panel under platform settings
(System global -> Access). The backend already had repository primitives
and promote/revoke endpoints; this wires the missing service/handler/route
for listing and account-status changes and adds the UI.

Backend
- New GET /system/admin/users: paginated, cross-tenant user list
  (offset/limit, limit capped at 200), serialised via ToUserInfo so password
  hashes are never exposed; has_more derived with a limit+1 fetch (no COUNT).
- New POST /system/admin/users/status: enable/disable an account.
  Disabling revokes all of the user's tokens immediately. Service guards
  reject self-disable and disabling the last active system administrator.
- ValidateToken now re-checks is_active on every request, so a disabled
  account cannot keep using a previously issued access token.

Frontend
- UserListDialog: table with status/role tags, pagination, in-page
  username/email filter, enable/disable and reset-password actions, and
  one-click system-admin promote/revoke (reuses existing endpoints) with
  confirmation prompts. Reset-password dialog is a sibling (not nested)
  dialog so close/cancel/overlay all work.
- All new strings are i18n keys under system.globalSettings.userList in
  all six locales (en-US, zh-CN, zh-TW, ja-JP, ko-KR, ru-RU).

Tests: handler unit tests for list pagination/redaction/limit-cap and for
status-change success/guard/404 paths; existing handler/service/router
suites pass.

Co-authored-by: MOSS Agent <noreply@example.com>

* fix(system): make account status changes atomic and validate requests

* refactor(system): streamline settings and add dedicated user management tab

* fix(system): resolve user management CI lint findings

* fix(system): preserve account status during ordinary user updates

---------

Co-authored-by: desksk <26273255+desksk@users.noreply.github.com>
Co-authored-by: MOSS Agent <noreply@example.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-11 17:07:00 +08:00
lyingbug 17dc7da514
feat(gallery): replace pagination with infinite masonry scrolling (#4156)
Replace gallery pagination with an aspect-ratio-preserving masonry layout and automatic loading. Keep viewer navigation continuous, preserve loaded images on retry, and discard stale query results. Remove obsolete pagination paths and cover loading behavior with regression tests.
2026-10-11 15:46:13 +08:00
lyingbug d2dbf72099
style: polish sidebar, list pages, toolbox and citation UI (#4154)
* Compact and align collapsed sidebar icons

* Unify chat composer control sizing and styling

* Polish sidebar, list pages, toolbox and citation popover styling

* Update tests for compact sidebar and borderless citation pills
2026-10-11 15:01:12 +08:00
lyingbug 231a5c0b15
feat(wiki): improve graph layout, theme captions and group focus (#4147)
* feat(wiki): improve graph layout and exploration

* feat(wiki): name graph themes and connect pages to their document summary

- Rewrite selectGraphAnchors on deterministic Louvain communities with
  coverage, redundancy and readability rules; clean file-name captions.
- Add group focus bar with switch menu, Esc/background exit, caption pills.
- Count distinct neighbors for link_count from both link directions, and
  let ego BFS use the same adjacency so stale in_links do not hide pages.
- Connect each page to its source document summary and leave the index
  page out of the graph; return edges as [] for an isolated ego center.
- Keep graph search and type filters available after an empty render.

* fix(wiki): use theme tokens in graph styles and satisfy Go lint

* feat(wiki): label the page shared by a multi-document graph group
2026-10-11 11:52:04 +08:00
nullptr-error 150d8cc605
feat(sandbox): Docker 后端支持交互式终端 (#4023)
Docker 沙箱后端支持会话侧栏的交互式终端:TTY exec 劫持连接收发原始字节,窗口大小走 ExecResize;终端打开期间定期刷新空闲回收活动标记。

Docker exec 无法重新附着,关闭时按每次打开注入的 WEKNORA_TERMINAL_ID 向 shell 及其子进程发送 SIGHUP(nohup 任务保留),仅对仍存活的 shell 补 SIGKILL。ready 帧新增 reattachable,Docker 为 false 时前端不自动重连。Docker 沙箱未运行时返回 SANDBOX_STOPPED,提示可能已被回收。

Co-authored-by: WHUTcjh-2024 <202126324+WHUTcjh-2024@users.noreply.github.com>
2026-10-10 21:38:03 +08:00
Jay0130-a 54cb6e9f9b test(docreader): add unit tests for utils.split text-splitting helpers
docreader.utils.split provides the text-splitting primitives (split_text_keep_separator, split_by_sep, split_by_char, split_by_regex, match_by_regex) used by the document splitter, but had no unit tests. Add docreader/tests/test_utils_split.py covering keep/discard separator behavior, char splitting, regex splitting that preserves separators, and regex matching.
2026-10-10 21:25:02 +08:00
icearia0219 b1d92048cf fix(agent): account for file paths in read pagination budgets
Fixes Tencent/WeKnora#4017
2026-10-10 21:24:43 +08:00
dongik a6327f8e39 fix(i18n): correct Korean username rule message to match the pattern
The register form accepts usernames matching /^[a-zA-Z0-9_\u4e00-\u9fa5]+$/:
ASCII letters, digits, underscore and CJK ideographs (Hanja). The ko-KR
message said Hangul (한글) instead of Hanja (한자), so a Korean user who
typed a Hangul name was rejected by a message claiming Hangul is allowed.
Every other locale already says "Chinese characters".
2026-10-10 21:18:57 +08:00
AstonKrss 0d39af1214 fix(retrieval): skip KB retrieval for summarize intent 2026-10-10 20:51:04 +08:00
hahahahahayesyeseys 89e3273daf fix(mcp): preserve disabled state on service creation 2026-10-10 20:50:05 +08:00
goodnight 45a022aac2 fix: wait for qdrant writes to finish 2026-10-10 20:48:02 +08:00
hahahahahayesyeseys 3f9af2afa9 fix(sqlite): add MCP metadata migration 2026-10-10 20:47:20 +08:00
yeliheng-010 0466c294ef fix(agent): 将空闲超时覆盖到模型流建立阶段 2026-10-10 20:40:58 +08:00
诉说晚秋 932b750b2f
fix(agent): preserve steering order across persistence failures (#4078)
* fix(agent): 保持追加指令在持久化失败后的消费顺序

* fix(session): 限制追加指令持久化重试次数,避免单条消息阻塞队列

同一条追加指令的用户消息连续写库失败 3 次后,将其标记为 consumed+dropped 退出队列,
后续指令按原顺序继续注入,也不会把它作为 follow-up 的 query 导致整批积压滞留。
入队时去除 NUL 字符(PostgreSQL text 列不接受)。

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-10 20:32:20 +08:00
fight for you 57f8a65fec
fix(datasource/dingtalk): tighten Validate sampling edges (#4079)
* fix(datasource/dingtalk): tighten Validate sampling edges

Keep probing later documents in the same workspace, hold listing budget
for sibling folders that are already queued, fail closed when any root
page cannot be listed, and say when the probe cap stops a conclusive walk.

Fixes #4021

Co-authored-by: fight for you <wangrui19971019@users.noreply.github.com>

* fix(datasource/dingtalk): stop Validate walk once probe cap is spent

- Break the workspace walk as soon as maxValidateProbes is spent, so a
  later unlistable folder can no longer turn failed probes into acceptance.
- Treat a skipped folder tail as covered only by a probe made after the
  skip, not by any earlier probe in the same workspace.
- Keep the document name on probe context errors.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: fight for you <wangrui19971019@users.noreply.github.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-10 20:32:05 +08:00
dvd233 769a5aeca8 fix(frontend): preserve the caret when outdenting Markdown lists 2026-10-10 20:31:35 +08:00
LuckVd def582b98a test(im/wecom): satisfy errcheck and lll in endpoint tests 2026-10-10 20:29:15 +08:00
LuckVd d9237166cc fix(im/wecom): accept custom wss long-connection endpoints behind SSRF host checks
validateEndpointURL pinned the scheme to wss for long-connection endpoints
and then passed the URL to ValidateURLForSSRF, whose scheme allowlist only
accepts http/https — so every custom ws/wss endpoint failed with
"invalid scheme: wss (only http/https allowed)" and SSRF_WHITELIST could
not help because the whitelist is only consulted after the scheme check.
The default endpoint worked only because it short-circuits validation.

Validate ws/wss endpoints under an https mask instead: the scheme is
already pinned, and every host-level guard (restricted hostnames,
private/metadata IPs, DNS rebinding, port blocklist, whitelist and
whitelist-only mode) still applies unchanged. Same approach as
qqbot.validateGatewayURL.
2026-10-10 20:29:15 +08:00
clumsypsc 1a21af1b82 fix(mcp): preserve structured tool results for agents 2026-10-10 20:27:34 +08:00
iceriverlin de616ed4b7 test(service): assert RRF ranks ignore list arrival order
fuseWithRRF reads each list's ranks through bestRanks, which ranks every
list on its own by score. Retrievers run concurrently and their results are
appended in goroutine completion order, so neither the order of the lists nor
the order of the hits inside a list may change a chunk's rank.

These tests fail on the pre-#3687 concatenation-order ranking and pass on
main. Refs #3796.
2026-10-10 20:19:37 +08:00
Cursor Agent dccb1d6d2c fix(mcp): stop advertising read-only endpoint tools as destructive
mcp.NewTool defaults destructiveHint and openWorldHint to true. The
built-in endpoint only set readOnlyHint, so clients that refuse
destructive tools could not call search or wiki reads.

Co-authored-by: fight for you <wangrui19971019@users.noreply.github.com>
2026-10-10 20:19:13 +08:00
yeliheng-010 54e8d7ffde fix(mcp): 隔离慢连接清理对其他服务的阻塞 2026-10-10 20:12:58 +08:00
胡罡铭 98e9dc0786 perf(reranking): accelerate MMR selection with sparse postings 2026-10-10 20:06:30 +08:00
hahahahahayesyeseys d8fa5b49a7 feat(embed): support pasting screenshots into chat 2026-10-10 20:04:28 +08:00
lyingbug 50a2963160
fix(preview): refine source citation highlights (#4139)
* fix(preview): refine source citation highlights

* fix(preview): use shared radius token for source highlights
2026-10-10 20:03:10 +08:00
LaiYuanRong aa535c22fe fix(chat): keep queued follow-up answers attached to their own question
When a turn finishes with queued follow-ups, the chat view attaches to the
follow-up run via continue-stream while the previous POST may still be open,
waiting up to 3s for the session title. Both streams share one
AbortController and onclose stopped it unconditionally, so the old POST
closing aborted the follow-up stream and left that answer stuck as
"generating". The next follow-up's agent_query then relabelled that stale
row, rendering its answer under the previous question.

- streame.ts: onclose and the error path only stop or report for the
  current stream generation, mirroring the existing onmessage guard.
- useChatStreamHandler.ts: agent_query only adopts a trailing placeholder
  that has no request id yet (or already has this one).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-10 19:53:12 +08:00
wizardchen a58fc13206 fix(chat): smooth streamed citation reveal cadence 2026-10-10 19:27:37 +08:00
lyingbug 5f18308b0a
fix(ocr): reject split repetition and preserve no-text responses (#4135)
Count distinct coverage across long repetitive runs and preserve HTML-wrapped no-text replies through normalization. Add sanitizer and image-persistence regressions for both cases.
2026-10-10 18:36:04 +08:00
lyingbug d27ecade65
fix(ocr): reject invalid output and record extraction failures (#4132) 2026-10-10 17:45:18 +08:00
lyingbug bb878af508
fix(gallery): improve image detail panel readability (#4130) 2026-10-10 17:34:14 +08:00
lyingbug 8cb53fdbc5
fix(observability): distinguish retrieval diagnostic spans (#4128)
Distinguish vector and keyword result pools, initial and refill phases, and diagnostic decisions from actual retrieval and model calls. Clarify that aggregate counts cover all candidates while detailed samples focus on image vectors, and document the new trace names.
2026-10-10 16:28:43 +08:00
lyingbug e372b8e42e
perf(embedding): batch Qwen3-VL message inputs (#4126)
Batch independent Qwen3-VL embedding conversations through an explicit compatibility setting. Preserve singleton requests and serial overrides, validate response ordering, and add wire tests and opt-in live numerical parity checks.

Live verification confirms valid batched responses but does not meet strict numerical parity bounds; document the deployment-side reproducibility limitation.
2026-10-10 16:07:29 +08:00
Perfecto 03e2c47aec
feat(mcp): support 2026-07-28 alongside legacy clients (#4095)
* feat(mcp): support modern and legacy protocol connections

* fix(mcp): preserve annotated headers on modern tool calls

* fix(mcp): load parameter header schemas before tool calls

* fix(mcp): keep a working legacy session when discovery retry fails

Modern method-level 404s stay connected, while an expired SSE session still disconnects. A transient discover failure retries once, and a failed retry keeps the handshake that already succeeded.

* fix(mcp): wrap protocol negotiation lines for the linter

golangci-lint rejects lines longer than 120 characters.

* fix(mcp): retry protocol discovery without dropping the live session

A second initialize on the same transport clears a stateful legacy session when discover returns 404. Probe on a separate connection, and drop cached parameter headers after another client refreshes the directory.

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-10 15:15:06 +08:00
tayadwx d6269994b3
refactor: 出站拨号超时默认 5s 并改为 env 可配 (WEKNORA_OUTBOUND_DIAL_TIMEOUT) (#4122)
* refactor: make outbound SSRF-safe dial timeout configurable (default 5s)

Previously SSRFSafeDialContext hardcoded a 30s dial timeout for every
outbound (SSRF-validated) endpoint (VLM/LLM/embedding/ASR/connectors).
A black-holed or unreachable endpoint therefore burned ~30s per attempt
before failing, which (a) delayed the circuit breaker trip and (b) made
the UI show a misleading "thinking" state instead of surfacing the
bad-URL error quickly.

- Move the dial timeout to WEKNORA_OUTBOUND_DIAL_TIMEOUT, default 5s.
- Apply it in config.LoadConfig via utils.SetOutboundDialTimeout; the
  default is also set in an init() so it holds even if LoadConfig is
  skipped. Concurrent reads are safe (atomic nanoseconds).
- KeepAlive stays 30s; the sandbox/cloud GuardedDialContext (10s) and
  Ollama dialer (10s) are intentionally left untouched.

* test(utils): serialize outbound dial timeout tests

---------

Co-authored-by: tayadwx <tayadwx@users.noreply.github.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-10 14:50:20 +08:00
Sairaj-24 8125ed250f
fix(chat): keep custom metadata on knowledge-chat references (#4087)
* fix(chat): keep custom metadata on knowledge-chat references

Redis round-trips and graph or analysis result builders dropped knowledge custom metadata, so chat citations lost fields such as course and lesson URLs.

* test(chat): wrap metadata fixtures to satisfy line length lint

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-10 14:20:38 +08:00
fight for you 097bd475f6
fix(docker): install CA certificates before the browserskill mirror swap (#4104)
node:24-bookworm-slim has no trust store. Switching apt to
mirrors.tencent.com first follows an HTTP to HTTPS redirect and the
package install fails. Install ca-certificates from the original HTTP
source before the swap, matching the runtime stage.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: fight for you <wangrui19971019@users.noreply.github.com>
2026-10-10 11:59:00 +08:00
hahahahahayesyeseys 6e2e5d8bb0
fix(frontend): follow configured upload limit in hints (#4110) 2026-10-10 11:50:30 +08:00