5017 Commits

Author SHA1 Message Date
duya-aaa
5398a584c6
docs: fix the image generation command's line continuation (#8615) 2026-11-25 18:13:38 +08:00
Barry
1e19560e06
docs: run quickstart checks after cloning (#8618)
The local check target exists only in the checkout. Use the built-in config bootstrap so first-time readers also get the environment templates.
2026-11-25 17:00:32 +08:00
ZephyrWang
2629c0bb78
fix(acp): select the configured model before prompting (#8600)
* fix(acp): select the configured model before prompting

* fix(acp): verify configured session model selection
2026-11-25 16:59:06 +08:00
Hu Hongwei
cccadd1729
docs(auth): use the local nginx entry point for SSO setup (#8602) 2026-11-25 13:00:53 +08:00
Yufeng He
126ad9dc37
fix(agents): keep an unrenderable summary_prompt from failing the run (#7667)
* fix(agents): keep an unrenderable summary_prompt from failing the run

summary_prompt is a str.format template with a {messages} slot, so a
literal brace has to be doubled. The render runs outside the try that
guards the model call, so an unescaped brace raised KeyError out of
abefore_model and failed the turn instead of skipping compaction.

The middleware already documents the opposite: the automatic path
swallows a summary failure and leaves compaction state unchanged, and
raise_on_failure reports a real failure as SummaryGenerationError so
/compact can tell it from "nothing to compact". Route the render through
_render_summary_prompt, which turns a failure into None with a warning
naming the brace rule, and let the existing None path apply.

docs/summarization.md now states the template syntax.

* fix(agents): cover attribute and index template failures in summary_prompt rendering

Expand the render exception tuple to include AttributeError and TypeError so
{messages.foo} and {messages[missing]} share the same fail-open boundary as
literal braces and unknown placeholders. Add summary_prompt_hash to the
warning so operators can correlate the log line with the offending config
without the template or history appearing in logs.

Rewrite the regression suite around a real create_agent graph with
InMemorySaver: template failures preserve history and the checkpoint, the
summary model is never reached, and a repaired template recovers on the next
attempt. Document the template syntax and failure contract in
summarization.md, the middleware AGENTS.md, and the root README.

* fix(agents): log summary template error types only

---------

Signed-off-by: Yufeng He <40085740+he-yufeng@users.noreply.github.com>
2026-11-25 11:41:04 +08:00
Wenchao An
adba516884
feat(coordination): add atomic coordinator task dispatch (#8558)
* feat(coordination): add atomic coordinator task dispatch

* fix(coordination): settle the current plan and forward visible replies

* fix(coordination): retry transient planner failures once

* fix(coordination): preserve planner privacy and replay inputs
2026-11-25 10:18:53 +08:00
Totoro
b2061d8488
fix(runtime): complete runs at a terminal step-limit checkpoint (#8593)
Co-authored-by: Totoro-qaq <279883115+Totoro-qaq@users.noreply.github.com>
2026-11-25 10:15:10 +08:00
Correctover
339bd42e2b
fix(hitl): warn loudly when hitl_approval is disabled instead of silently skipping the middleware (#8440)
* fix(hitl): warn loudly when hitl_approval is disabled instead of silently skipping the middleware

Raised in #8431: _insert_hitl_approval_middleware returns silently when
hitl_approval is absent or enabled != true, so agents run tools without
runtime human approval and nothing in the logs marks it. This keeps the
default (no behavior change) but makes the fail-open posture visible:

- emit a warning at middleware insertion time, with the exact config
  keys to flip and a doc pointer
- state the disabled-by-default posture explicitly in docs/guide

Signed-off-by: DSHCorrectover <correctover@sina.com>

* test(hitl): unit tests for the disabled-visibility warning (three mount states)

- absence of hitl_approval -> warning + no middleware
- enabled=false -> warning + no middleware
- enabled=true -> middleware mounted, no warning

Runs the same assertions as our internal replay (AST guard-uniqueness,
mount-point coverage, behavioral stub replay) against the real package;
maintainer CI is the authoritative run.

Signed-off-by: DSHCorrectover <correctover@sina.com>

* fix(hitl): report disabled approvals at Gateway startup

---------

Signed-off-by: DSHCorrectover <correctover@sina.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-25 08:56:35 +08:00
Hu Hongwei
c76d54a313
docs(deploy): check Gateway readiness through the published nginx port (#8587) 2026-11-25 08:52:48 +08:00
zzj84862-creator
4223e0710c
fix(skills): reclaim idle projection lock entries (#8564)
Co-authored-by: zzj84862-creator <252897181+zzj84862-creator@users.noreply.github.com>
2026-11-24 23:31:10 +08:00
ordinary being
8d6e774de6
fix(nginx): leave multipart headroom above the upload limit (#8580)
* fix(nginx): leave multipart headroom above the upload limit

Gateway's default 100 MiB upload ceiling counts file bytes only, while nginx's 100M limit also has to carry multipart headers and boundaries. Two valid 50 MiB files therefore exceed nginx and return 413 before Gateway can apply its limits. Raise the thread-upload and project-document locations to 101M in the Docker, local-dev and Helm configs, and assert the proxy limit is strictly greater than Gateway's total content limit.

* test(nginx): size upload headroom from multipart framing

Compare the proxy ceiling with a representative multipart body: Gateway's maximum content plus part headers, closing boundary and filename slack. Base project-document headroom on its single-file limit. Document that uploads.* is runtime-configurable while the nginx ceilings are static, and drop the hardcoded 101M from unrelated prose.

---------

Co-authored-by: Tong-bit-art <Tong-bit-art@users.noreply.github.com>
2026-11-24 23:11:16 +08:00
HYYAlex
3a2ebca717
fix(feishu): keep links and code blocks from rich-text posts (#8574)
* fix(feishu): keep links and code blocks from rich-text posts

A Feishu message with a hyperlink or a code block arrives as a post. The
parser kept only text/at elements and attachment placeholders, so `a` and
`code_block` elements were dropped and the agent got the question without
the link or the code.

Render a link as [text](url), or the bare URL when the text is the URL, and
a code block as a fenced block tagged with its language, using a fence
longer than any backtick run in the code.

* fix(feishu): start a post code block on its own line and escape link labels

A code block that shares a paragraph with text was space-joined into one
line, where its opening fence does not start a block. Emit it as its own
paragraph instead.

Escape brackets and backslashes in a link label so a "]" cannot end the
link text early, and put a URL with parentheses or spaces in <...>.

---------

Co-authored-by: HYYAlex <232531662+HYYAlex@users.noreply.github.com>
2026-11-24 23:01:16 +08:00
Hu Hongwei
336b3d3527
docs(deploy): clarify local config and runtime paths (#8572) 2026-11-24 21:23:05 +08:00
ChengLong GU
6f5e24b500
fix(sandbox): forward operator environment to provisioned pods (#8370)
* fix(sandbox): forward operator environment to provisioned pods

* docs(sandbox): record the Kubernetes idle baseline

* test(sandbox): fold operator environment cases into the provisioner suite

* fix(provisioner): keep the operator environment budget and values intact

Generated capacity settings no longer travel in the forwarded map, so all 32
entries belong to the operator. Pod values are escaped before they reach the
API server, and a key with a trailing newline is rejected at validation.

* fix(provisioner): fail an unusable environment map when the backend is built

The provisioner rejects a forwarded map it cannot apply, which used to surface
only as a bare 422 on the first sandbox create. The backend now applies the same
limits while it is constructed and names the setting and key that offend, so the
failure lands before any Pod is attempted.
The provisioner README and the memory guide also record that the profile needs
the newer provisioner, and that existing Pods keep their environment.

* fix(provisioner): reject an unusable environment map at Gateway start-up

* fix(provisioner): tighten the start-up refusal wording

* fix(provisioner): skip the start-up check when the map is empty

---------

Co-authored-by: gcl-coder <gcl-coder@users.noreply.github.com>
2026-11-24 21:14:34 +08:00
Bas Cancrinus
b5e19e03a0
feat(crawl4ai): configurable web_fetch output cap and a truncation note (#8553)
* feat(crawl4ai): configurable web_fetch output cap and a truncation note

Crawl4AI web_fetch cut pages to a hard-coded 4096 characters without saying so.
An optional max_chars tool setting (positive integer, default 4096) sets the
cap; invalid values keep the default with a warning. A cut page ends with
'[web_fetch: truncated to the first N of M characters]'.

Refs #8552

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(changelog): crawl4ai web_fetch max_chars

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(crawl4ai): fall back when max_chars cannot be parsed

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-24 21:13:14 +08:00
ZephyrWang
efc98f1164
fix(mcp): expose structured-only stdio tool results (#8542)
* fix(mcp): expose structured-only stdio tool results

Use a JSON text fallback when a successful stdio MCP result contains
structuredContent without content blocks. Retain the structured artifact
and existing text, media and error handling.

Extend the existing discovery/pooling/graph regression with populated
and empty JSON objects.

Fixes #8541

* fix(mcp): translate file paths in structured stdio results

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-24 20:49:31 +08:00
Kevin Hsiao
ec189ccd2b
fix(benchmark): pass OpenSandbox instance to _invalidate_sandbox (#8561)
Follow-up to #8507 (`6cefec0c9`), which changed
`OpenSandboxProvider._invalidate_sandbox` to accept an `OpenSandboxSandbox`
instance instead of `sandbox_id: str`. Look up the active or warm sandbox
instance under `self._lock` inside `BenchmarkOpenSandboxProvider.destroy()`
before calling `_invalidate_sandbox()`.
2026-11-24 16:05:22 +08:00
Yusen Meng
178edb4721
feat(memory): support multi-user and multi-tenant isolation in openviking (#8441)
* docs(openviking): document multi-user and multi-tenant isolation

* feat(memory): support multi-user and multi-tenant isolation in openviking (#8420)

* fix(memory): fall back to viking://~/ URIs on OpenViking >=0.5.5

* fix(memory): address OpenViking multi-user PR review findings

* fix(memory): reject single-user client_pool and scope static tenant errors

* fix(memory): normalize provider MemoryManagerError to honor read failure policy

* fix(memory): allow admitted OpenViking operations to acquire clients during shutdown drain

* fix(memory): bound OpenViking provider cleanup on shutdown and harden diagnostics

* fix(memory): avoid waiting on cleanup from _end_operation tail

* fix(memory): run recorder and provider cleanup in single shutdown worker

* fix(memory): harden multi-user api_key_env validation and cleanup worker start failure
2026-11-24 16:01:11 +08:00
zzj84862-creator
b8e03f71de
fix(sandbox): offload unexpected sandbox-init error sanitization off event loop (#8537)
* fix(sandbox): offload unexpected sandbox-init error sanitization off event loop

* test(sandbox): bound cancellation test startup wait and cleanup

---------

Co-authored-by: zzj84862-creator <252897181+zzj84862-creator@users.noreply.github.com>
2026-11-24 15:45:45 +08:00
Hu Hongwei
4a763bfd7e
docs(deploy): clarify LangGraph routing through nginx (#8560) 2026-11-24 15:36:22 +08:00
Hazenix
fc2b5b257f
fix(gateway): allow edit replay after long runs (#8544)
* fix: 修复长回合编辑重跑

* fix: 解耦重跑查找与运行上限

* fix: 防止重跑选中旁支 checkpoint

* fix: 统一分支与重跑的 checkpoint 查找期限

* fix: 记录重跑查找超时并补全回归验证
2026-11-24 11:24:16 +08:00
Hyeonsang Cho
624a64a152
fix(sandbox): show virtual paths in local grep match lines (#8556)
* fix(sandbox): show virtual paths in local grep match lines

LocalSandbox.write_file stores host paths in code files so a script runs
under a host interpreter. grep translated the match path back to a
virtual path but returned the matched line as stored, so every grep hit
in such a file showed the host path, including the user's home directory
and the thread directory.

find_grep_matches gains a display_line hook that rewrites a matched line
before it is shortened, and LocalSandbox passes its reverse path
resolution for both the mount walk and the regular walk. The pattern
still matches the stored text.

* fix(sandbox): keep grep line paths spelled as stored

The output path scanner stops at punctuation such as ':' and '(' that
can belong to one filename. Reverse resolution canonicalized the cut-off
prefix, so an unrelated symlink there (cache -> data) turned a stored
reference to cache:old.txt into data:old.txt, a file that does not exist.

Matched grep lines now replace each mount's host root with its virtual
path and keep the tail verbatim, which is what the line says. Bash output
and read_file keep their existing reverse resolution.
2026-11-24 11:21:33 +08:00
Lee minjing
fa20a53fa5
fix(client): use the effective model output budget for write_file (#8545)
* chore: initialize SDK write_file budget fix draft

* fix(client): use the effective model output budget for write_file

* test(client): update authorization tool stubs

---------

Co-authored-by: Leeminjing <247553113+Leeminjing@users.noreply.github.com>
2026-11-24 10:28:03 +08:00
hajicheng
f81d1633a4
feat(coordination): persist worker run settings (#8540)
* feat(coordination): persist worker run settings

Refs #8533

* test(persistence): update coordination migration head

Keep the single-head migration regression aligned with revision 0060 and assert the new edge to the existing grant revision.

---------

Co-authored-by: ZcWang <200940025+hajicheng@users.noreply.github.com>
2026-11-24 10:27:32 +08:00
ZephyrWang
6763d2ace4
fix(agents): project MCP images for text-only models (#8539)
* fix(agents): project MCP images for text-only models

Pass configured vision capabilities into request content compatibility for
lead and subagent chains. Replace image inputs with a text placeholder
for text-only model requests while retaining original tool/checkpoint data.

Cover the real graph and SDK HTTP payload, async projection, vision controls
and release-policy fingerprints in the existing compatibility suite.

Fixes #8538

* fix(agents): replay projected history for OpenAI Responses

* fix(agents): project native Responses images for text-only models

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-24 10:22:30 +08:00
Kevin Hsiao
9982c91998
feat(sandbox): add BytePlus veFaaS cloud sandbox provider (#8449)
* feat(sandbox): add BytePlus veFaaS cloud sandbox provider

* fix(vefaas-sandbox): address review findings on describe, rollback shutdown, and guidance inventory

* fix(vefaas-sandbox): harden upload subshell, teardown exclusion, pagination, and 404 handling

* fix(vefaas-sandbox): keep recycling teardowns visible to shutdown and verify init before adoption

* fix(vefaas-sandbox): serialize init adoption, verify bootstrap success, and guard deferred teardown

* fix(vefaas): protect output mirroring during teardown

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-24 09:27:50 +08:00
kongxin
e59f356650
fix(memory): keep a sharer's restated details out of the visitor's memory (#8474)
* fix(memory): keep a sharer's restated details out of the visitor's memory

When a visitor asks about a copied share ("summarize this conversation"),
the assistant's reply restates the sharer's details, and extraction recorded
them as the visitor's facts. Memory capture now marks the visitor's queued
turns when the thread is a share copy, and DeerMem tells extraction that
details repeated from the copy belong to someone else.

Compaction removes the copied messages and their import marks, so run
admission also flags share copies in a server-owned runtime context key.

* fix(memory): flag share copies on manual compaction and when admission cannot read metadata

Manual compaction does not pass run admission, so its memory flush lost
the share-copy flag once compaction had removed the copied turns. The
route now reads the thread's share provenance and passes it on.

A failed admission metadata read returned the same value as an ordinary
thread. The run's later metadata record now decides, and a thread whose
provenance stays unknown is treated as a copy.

* fix(gateway): keep manual compaction working without a thread store

* fix(sharing): keep share provenance in thread state

Share provenance lived in thread metadata and reached memory capture through
a per-run context flag, so every path that derives or rewrites a thread had
to carry it by hand: manual compaction bypassed admission, a branch copied
the state but not the metadata, and a failed metadata read looked like an
ordinary thread.

Share import now writes a server-owned `imported_history` state channel.
Branches copy it, compaction keeps it, and memory capture reads it from the
state it processes, so the run-context flag and its Gateway, worker and
compaction plumbing are gone. Clients cannot write the channel.

Copies imported earlier are migrated before a run, under the manual
compaction's reservation (skipping the memory flush when provenance cannot
be established), and when branched, which marks the copied turns from the
source's import checkpoint. The migration keeps the head's agent binding.

* fix(sharing): keep a copy with unreadable import history out of memory

When the import checkpoint could not be read, the migration still recorded
the copy as resolved, so its unmarked copied turns reached extraction as the
owner's, and later migrations skipped it. Such a copy is now recorded as
unresolved: memory capture and the compaction flush skip it, a branch of it
stays unresolved, and the next run tries the migration again.

* test(sharing): check that turns written while a copy is unresolved are captured later

* fix(sharing): keep memory off for a copy whose import history read fails

A raised checkpoint read now counts as unresolved import history, like a
missing one, so the run records the unresolved marker and memory capture
skips the copy. When the shim cannot store any provenance in a known copy,
the run is refused with a retryable 503 instead of capturing the copied
turns as the owner's.
2026-11-24 09:00:53 +08:00
yetuge
b5e9999b15
fix(artifacts): skip unusable stored rows during consumption tracking (#8525)
* fix(artifacts): skip unusable stored rows during consumption tracking

A checkpoint row that merge_tool_artifacts skips can still reach the
consumption scan. Keying every dict by entry["handle"] raised KeyError from
before_model on every later model call, and a non-list consumed_by either
raised or became a character list. Filter the registry the way the reducer
does and treat a non-list consumed_by as empty.

* fix(artifacts): filter invalid handles before capture

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-24 08:43:44 +08:00
HYYAlex
fc0d4bd7bc
fix(harness): compare tool output, not per-call bytes, in loop detection (#8531)
* fix(harness): compare tool output, not per-call bytes, in loop detection

Loop detection counts a repeated call only while its result is
unchanged, and it hashed the stored ToolMessage content to decide that.
Two common kinds of results change on every call even when the tool
returned the same data:

- langchain-core's create_*_block helpers, which every MCP result goes
  through, give each content block a fresh lc_<uuid> id;
- an output that ToolOutputBudgetMiddleware externalizes is replaced by
  a preview naming a file derived from the tool call id.

An identical call to such a tool never matched an earlier one, so the
warning and the forced stop never fired and a stuck run went on to the
recursion limit.

A result is now fingerprinted without content block ids, and the budget
middleware records the fingerprint of the output it replaced in its
transform-trail entry (source_sha256), which loop detection compares
instead of the preview.

* fix(harness): keep ids outside standard content blocks in result fingerprints

Only a standard LangChain content block gets a generated per-call id.
A dict of another kind in a ToolMessage list can carry an id that is
the data that changed, so the result fingerprint now keeps it.

---------

Co-authored-by: HYYAlex <232531662+HYYAlex@users.noreply.github.com>
2026-11-23 22:00:36 +08:00
Totoro
cd9fbf2967
fix(feishu): keep topic and card replies on their conversation (#8523)
* fix(feishu): keep topic and card replies on their conversation

* fix(feishu): preserve topic and sender routing through dispatch

* fix(feishu): follow explicit replies to earlier answer cards

---------

Co-authored-by: Totoro-qaq <279883115+Totoro-qaq@users.noreply.github.com>
2026-11-23 21:54:39 +08:00
mika
0926db9c0f
fix(skills): reject boolean rollback history indexes (#8363)
* fix(skills): reject boolean rollback history indexes

* fix(skills): preserve rollback index coercion

---------

Co-authored-by: mikamikasuki <211269698+mikamikasuki@users.noreply.github.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-23 21:25:04 +08:00
Hyeonsang Cho
0c1e2119df
fix(events): stop pinning a DB write lock for every thread ever written (#8483)
DbRunEventStore kept a strong pin for each thread's asyncio.Lock next to its
weak registry, and released it only in delete_by_thread. Every thread a
process wrote events for, and never deleted, kept a lock and its id for the
life of the process.

The weak registry alone already keeps a lock generation alive while a holder
or waiter references it, which is what the deletion handoff needs. Drop the
pin, as the JSONL store already does.
2026-11-23 21:23:52 +08:00
Hyeonsang Cho
ea1872e429
refactor(persistence): leave one guarded delete on ScheduledTaskRepository (#8529)
delete() removed a task after an owner check only. Since the queue
landed, the Gateway deletes through delete_with_queue_cancellation,
which refuses while an occurrence is launching or running and cancels a
queued one. The unguarded method stayed public with no production
caller. Remove it, and cover the remaining delete against real SQLite:
the other-owner, queued and launching cases.
2026-11-23 21:20:29 +08:00
alexcastgonz
7287c7945f
fix(slack): wait for Retry-After before retrying a reply (#8266)
* fix(slack): wait for Retry-After before retrying a reply

chat.postMessage retries at 1s/2s and then drops the reply when Slack
returns HTTP 429. The WebClient default handlers do not retry rate
limits, and the error's Retry-After header was ignored. Wait the longer
of the shared backoff and that hint, capped at 60s per attempt.

* docs(slack): address retry review notes

* docs(slack): drop the changelog hunk

The review of 383a2ec asks to remove the Unreleased entry.
Maintainers add changelog lines at merge time.

* fix(slack): abandon a rate-limited reply when Retry-After exceeds the inline budget

Slack sends run inline on the shared inbound workers, so waiting out a
long Retry-After held a worker other providers need. Cap the inline wait
at 15s; a longer hint re-raises the 429 with a warning instead of
sleeping or retrying early.
2026-11-23 20:59:20 +08:00
LuisQin
b669144246
fix(benchmark): honor AIO service flags in Docker lifecycle runs (#8493)
* fix(benchmark): honor AIO service flags in Docker lifecycle runs

* fix(benchmark): resolve only selected AIO service flags

* test(benchmark): support skill uploads in the offline OpenSandbox transport

* fix(benchmark): load dotenv before selecting the AIO service profile
2026-11-23 20:51:20 +08:00
MasterZRC
ecfe8264ea
feat(subagents): add read-only SQLite history inventory (#8520)
* feat(subagents): add read-only SQLite history inventory

* docs: explain SQLite WAL sidecars for history inventory

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-23 20:46:51 +08:00
Hu Hongwei
12ca6379a9
docs(readme): describe local workspace mode in Chinese (#8528) 2026-11-23 20:44:20 +08:00
Lee minjing
6cefec0c9d
fix(opensandbox): keep stale callbacks from destroying replacement sandboxes (#8507)
* chore: initialize OpenSandbox callback fix draft

* fix(opensandbox): keep stale callbacks from destroying replacement sandboxes

---------

Co-authored-by: Leeminjing <247553113+Leeminjing@users.noreply.github.com>
2026-11-23 20:43:09 +08:00
ZephyrWang
e212596a02
fix(client): honor named agent model profiles (#8509)
* fix(client): honor named agent model profiles

* fix(client): fall back from retired saved model profiles
2026-11-23 20:38:14 +08:00
Totoro
7076409781
fix(scheduler): use current account status for conversation schedules (#8522)
Co-authored-by: Totoro-qaq <279883115+Totoro-qaq@users.noreply.github.com>
2026-11-23 20:29:39 +08:00
Totoro
b7d1c577e3
fix(acp): resolve configured launchers before starting the agent (#8524)
* fix(acp): resolve configured launchers before starting the agent

* fix(acp): clarify launcher path and permission guidance

---------

Co-authored-by: Totoro-qaq <279883115+Totoro-qaq@users.noreply.github.com>
2026-11-23 20:27:19 +08:00
Hazenix
1e72197a5a
perf(client): skip values serialization in chat() (#8518)
* perf: 跳过 chat 中未使用的快照序列化

* fix: 保留绑定到其他客户端的 stream 委托

* fix: 保留包装后的 stream 调用
2026-11-23 20:23:37 +08:00
Wenchao An
0877d9d4c9
feat(coordination): recover managed tasks with revocable grants (#8439)
* feat(coordination): recover managed tasks with revocable grants

* fix(coordination): settle blocked worker recovery

* fix(coordination): wait for worker permissions to return

* fix(persistence): chain coordination grants after browser OAuth

* fix(coordination): preserve accepted input receipts

* fix(coordination): replay accepted task creation

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-23 16:02:49 +08:00
Hyeonsang Cho
003f1576d8
refactor(persistence): drop ChannelConnectionRepository.close (#8515)
close() disposed the process-global persistence engine instead of
anything the repository owns, so a caller cleaning up one repository
would cut off every store in the process. Nothing outside the tests
called it. The tests that opened the engine now close it with
close_engine() directly.
2026-11-23 15:50:39 +08:00
Danila Katalshov
76a47652fa
fix(tools): count todos without a status as pending (#8276)
* fix(tools): count todos without a status as pending

* fix(tools): count null todo statuses as pending

* test: stabilize PII redaction scaling check

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-23 15:07:30 +08:00
Hu Hongwei
81288bfcac
docs(deploy): link local development to the configuration guide (#8517) 2026-11-23 15:03:47 +08:00
Bas Cancrinus
b504fe8808
feat(auth): PAT scopes for agent, schedule and managed-subagent configuration (#8514)
* feat(auth): PAT scopes for agent, schedule and managed-subagent configuration

Opens the routes a deploy pipeline needs to personal access tokens, each
behind its own scope (#8310):

- agents:read / agents:write on /api/agents and /api/agents/{name};
- schedules:read / schedules:write on the /api/scheduled-tasks subtree,
  on top of the existing threads:* / runs:create route checks;
- subagents:read / subagents:write on /api/subagents; the writes stay
  admin-only and admit an admin's PAT only while it holds subagents:write
  (require_admin_user gains an opt-in pat_scope; is_admin_user stays False
  for every PAT, so no other admin route changes);
- GET /api/v1/auth/me for any PAT, so automation can confirm its account.

schedules:* and subagents:* are PAT-only scopes enforced by a scoped route
rule in the PAT route policy; session callers are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Bas Cancrinus <7222814+bascan@users.noreply.github.com>

* fix(auth): allow PAT mutations for agent names shared by actions

---------

Signed-off-by: Bas Cancrinus <7222814+bascan@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-23 15:02:55 +08:00
hajicheng
e2b3f85421
feat(task-continuity): add latest-first history search (#8506)
* feat(task-continuity): add latest-first history search

* fix(task-continuity): order recaptured history by checkpoint

Archive rows retain their original IDs when a batch is recaptured. Use the current checkpoint to rank reachable batches and retain row order within each batch.

---------

Co-authored-by: hajicheng <200940025+hajicheng@users.noreply.github.com>
2026-11-23 14:58:07 +08:00
zjy-boom
ae53197923
fix(dingtalk): validate Markdown table delimiter cells (#8138)
* fix(dingtalk): validate Markdown table delimiter cells

* fix(dingtalk): preserve tables with mismatched delimiter counts

---------

Co-authored-by: zjy-boom <174030947+zjy-boom@users.noreply.github.com>
Co-authored-by: Nan Gao <thunderggnn@gmail.com>
2026-11-23 11:50:12 +08:00
Willem Jiang
17b8921ee3
fix(sandbox): separate local file tools from shell execution (#8494)
* fix(sandbox): separate local file tools from shell execution

Signed-off-by: Willem Jiang <willem.jiang@gmail.com>

* test(sandbox): align the bash help assertion

Signed-off-by: Willem Jiang <willem.jiang@gmail.com>

* fix(sandbox): warn about retired local Bash and align guidance

---------

Signed-off-by: Willem Jiang <willem.jiang@gmail.com>
2026-11-23 11:37:35 +08:00