Commit Graph
9363 Commits
Author SHA1 Message Date
LegGasai b87a481bcf Merge pull request #8323 from deepseek-harness/fix/forge-github-status-batches
fix(forge): bound status queries, share polls, and drop repeated reads
2026-11-19 17:23:51 +08:00
Turtle 6e2fa257f0 Merge pull request #8820 from deepseek-harness/turtle/core-guidelines-scope/dsh-core-guidelines-83ad6c5e5a01
docs: state the status and scope of DSH Core Guidelines
2026-11-19 17:12:15 +08:00
Yudong Han f868dc2718 Merge pull request #8461 from deepseek-harness/feat/content-preview-values
feat(client): preview compaction summaries in the sidebar
2026-11-19 17:09:01 +08:00
Dudu-0223 d72d80bea7 fix(subagent): 恢复共享并发上限和容量(#8698) (#8809)
* fix(subagent): restore shared concurrency guidance from #8698

Restore the change removed when master was rolled back.

Cherry-picked from 014aa1659bcd0ba3cf5d2b4c096773f01f56ec50.

* refactor(ui-tool): clarify subagent member parsing
2026-11-19 08:58:42 +00:00
Turtle 2a807b4a3b docs: align business-domain placement and tighten scope wording 2026-11-19 16:55:26 +08:00
yudshj 8256284aca Merge remote-tracking branch 'origin/master' into rewrite/pr8461-master
# Conflicts:
#	packages/client/ui-chat/README.i18n.yaml
2026-11-19 16:47:54 +08:00
Turtle 498b681a09 docs: state the status and scope of DSH Core Guidelines 2026-11-19 16:40:57 +08:00
yudshj 1a3d9387f3 Record the recovery policy for window-local sidebar tabs 2026-11-19 16:40:02 +08:00
yudshj ce5bc3df56 Retain transient content across sessions and close its tabs on reload 2026-11-19 16:38:47 +08:00
Turtle 4d4e0b6be1 Merge pull request #8767 from deepseek-harness/turtle/dsh-core-guidelines-83ad6c5e5a01
docs: add DSH Core Guidelines
2026-11-19 16:35:34 +08:00
Dudu-0223 4ae3ccffba fix(team): 明确任务写入范围与 claim 诊断 (#8709)
* fix(team): clarify task scopes and claim diagnostics

* docs(team): shorten edit write scope guidance

* test(team): cover write scope edits through the task tool
2026-11-19 16:09:51 +08:00
yudshj ed08ff8364 Open typed preview content in the sidebar or a floating panel 2026-11-19 16:07:39 +08:00
LegGasai 0750436cb4 feat(sdk): report why a session agent was disposed (#8738)
* feat(sdk): report why a session agent was disposed

A request for a session whose agent left the registry now states whether the
whole runtime is shutting down, the SDK server is shutting down, or only the
agent loop was unloaded. During runtime shutdown it names the last process
event observed before teardown; for an agent-loop unload it gives the time and
the plugin whose unload began first. The liveness check reads the registry as
optional, so both stages of root disposal report the same failure.

Refs #8737

* fix(sdk): keep the runtime observation out of the plugin entry exports

The static gates reject a new read of the Cordis root context, a value export
from a function plugin entry, and new assertions to unknown. The plugin entry
now passes the server an observation built from the root fiber it already
holds, the helper lives in the internal process-events module, and the new
tests complete the handshake instead of casting the server.

Refs #8737

* fix(sdk): keep the process-event record from throwing and state the unload origin as an observation

A rejection value without a string form made the failure text throw inside a
prepended listener, which would end the dispatch before the listener that owns
the event. The text now falls back to a fixed marker. The plugin named for an
agent-loop unload is the first one unloading at that time, which overlapping
unloads can make unrelated, so the message and README say that.

Refs #8737

* feat(python-sdk): log the runtime's stderr lines as they arrive

The runtime writes its fatal report, including the stack of an unhandled
rejection that ends the process, to its own stderr. The SDK kept those lines
in memory and attached them only to initialization, timeout, and transport
failures, so a host saw none of it for an ordinary JSON-RPC error. Each line
now also goes to the Python logger deepseek_harness.runtime at INFO.

Refs #8737
2026-11-19 07:59:52 +00:00
yudshj 34897717d4 Limit sidebar preview changes to compaction summaries 2026-11-19 15:59:00 +08:00
LegGasai 9d11b1d89c Merge remote-tracking branch 'origin/master' into feat/forge-status-tiers 2026-11-19 13:54:38 +08:00
gengruilin 52adb67290 Merge remote-tracking branch 'origin/master' into feat/tencent-meeting-plugin 2026-11-19 13:53:38 +08:00
yudshj 45e873da0b Keep compaction summary previews in Chat 2026-11-19 13:37:41 +08:00
LegGasai 5b7aaab289 fix(forge): give each provider call of a status fetch its own deadline
One fetch of the registry called the provider once with every due change
request of a forge, under one fetchTimeoutMs deadline. forge-github read
that call in several queries, so a read of many pull requests could
outlive the deadline as a whole, and a query whose gh run hung ended the
read before its own timeout isolated it. Either way the results of the
queries already answered were discarded.

A provider may now name snapshotBatchSize and briefBatchSize. The
registry then calls it once per that many due change requests of a host,
one call after another, each within its own fetchTimeoutMs, and settles
the watches of a call when it returns. A call that fails or outlives its
deadline fails only its own change requests. A change request that lost
its watchers while it waited is not read, and one whose watchers changed
what its polls read is read by the fetch of that level.

forge-github names its two query sizes, so one polling call holds one
query. briefBatchSize now defaults to 25: a query of 50 took up to 6.8
seconds against GitHub's 10-second limit, and one of 25 up to 3.4.

The subsystem page and the Cordis catalog also take in the signatures
the three commits before this one added.
2026-11-19 13:27:44 +08:00
yudshj c435f12473 Open recorded summaries as content and show only available preview controls 2026-11-19 13:23:49 +08:00
LegGasai ac69d4b1a9 perf(forge-panel): keep viewed marks on the Host and keep threads across a saved mark
Every saved viewed mark announced a review change, which dropped the
review threads kept for the change request and made each open changes
view read all viewed marks and all threads from the code host again.

The Host now keeps the viewed marks it read for a change request by head
commit, under the bounds the kept threads have. A mark saved through
ctx.forge at that head replaces the kept state of its file, and the kept
threads stay, since a viewed mark changes no thread. The read that
follows a save is answered from memory, so a save costs the provider's
write and no further read. The reader's refresh passes fresh and reads
the code host again, as it does for threads.

ReviewCache is generic over what it keeps and gains amend() for a write
whose effect on the kept read is known.
2026-11-19 13:12:47 +08:00
Ruilin Geng 87f4bc3001 Merge pull request #6251 from deepseek-harness/feat/wecom-plugin
feat(wecom): 新增企业微信插件并支持在插件页扫码授权
2026-11-19 13:10:23 +08:00
Yudong Han c68faa601f Merge pull request #8081 from deepseek-harness/feat/sdk-time-zone
feat(sdk): 普通 prompt 逐条上报用户时区,对齐 plan mode 措辞
2026-11-19 12:50:03 +08:00
LegGasai 072267c156 perf(forge): share status fetches, pause while hidden, and reopen panels from kept state
Change requests were read together only when they became due in the same
millisecond, so 14 list watches that drifted apart cost up to 415 brief
queries an hour in place of 30. A poll now also reads the change
requests past the midpoint of their wait, which brings them back into
one fetch. The default intervals become 15 seconds while checks run and
60 seconds otherwise. An unknown mergeability earns one poll at the
active interval; a change request that keeps reporting it waits the idle
interval. refresh() accepts maxAgeMs and then leaves a change request
alone whose poll is in flight or recent.

The panel, Session list, and review count streams close once the page
has been hidden for 30 seconds and reopen when it shows, so the Host
polls no code host for a page nobody sees.

A Session's panel keeps its last state, snapshots, and branch lookup
when its last follower leaves, and the next panel starts from them: it
publishes that state first and repeats neither the sign-in probe of a
ready host nor the branch lookup. Showing the panel and focusing the
window call the new revisit Remote, which reinspects the checkout and
polls only change requests whose latest poll is older than
statusMaxAgeMs; refresh stays the forced read a reader asks for. A
status read refused as unauthenticated on a host shown as ready probes
sign-in again, once per run of refusals. The changes view waits for the
first status of a panel stream before it reads a change request whose
entry shows a kept snapshot.
2026-11-19 12:47:29 +08:00
imccyu 7e5721d713 Merge pull request #8763 from deepseek-harness/worktree-archive-observe-session
refactor(session-query): remove inspectSession; worktree archive reads through observeSession
2026-11-19 12:45:31 +08:00
yudshj 0c5e9de2c4 fix(sdk): 固定 Python 快照时区并更新升级指南与错误说明 2026-11-19 12:22:06 +08:00
yudshj 0173308347 fix(sdk): 重新生成 module graph,更新 Python 单文件 SDK 快照的时区输出
sdk-server 新增对 dsh-util-time 的依赖,module graph 需要重新生成。
Python 单文件 smoke 不传 time_zone 时记录运行时进程时区;smoke 固定 TZ=UTC,
快照中普通 prompt 的来源带 clientTimeZone: UTC,时间行报告 UTC。
2026-11-19 11:58:07 +08:00
yudshj dca075e2a2 feat(sdk): 普通 prompt 逐条上报用户时区
session/prompt 与 session/query 接受可选 timeZone,TS/Python 客户端透传;省略时逐条采样进程时区,写入 sdk-user 来源的 clientTimeZone。time-context 读取不带 rpcId 的 user 来源时区。补持久化记录、Agent Note、升级指南、README,并刷新 SDK snapshot。
2026-11-19 11:58:00 +08:00
gengruilin 5d62fbdf71 Merge remote-tracking branch 'origin/master' into feat/wecom-plugin 2026-11-19 11:50:39 +08:00
LegGasai 0d3d2eabd3 Merge remote-tracking branch 'origin/master' into feat/forge-status-tiers
# Conflicts:
#	packages/experimental/client-ui-forge/README.i18n.yaml
2026-11-19 11:36:16 +08:00
yudshj ac11a30aed Unify sidebar navigation and restore compaction summaries by event address 2026-11-19 11:33:41 +08:00
Turtle 49b2403397 docs: tighten G.1 layout and G.2 event-handler exception wording 2026-11-19 11:13:16 +08:00
Turtle 1a42cb0e3f docs: split core guidelines into one file per section; merge G.2 handler exceptions 2026-11-19 11:09:04 +08:00
gengruilin e360b8f017 Merge remote-tracking branch 'origin/master' into feat/feishu-plugin 2026-11-19 11:02:44 +08:00
yudshj 77f13225e4 Merge remote-tracking branch 'origin/master' into rewrite/pr8461-master 2026-11-19 10:55:34 +08:00
Turtle 0daee08a35 docs: state the two reasons for G.2 directly 2026-11-19 10:47:26 +08:00
Turtle 423d26abf8 docs: separate core-guidelines and defensive-patterns placement criteria 2026-11-19 10:38:10 +08:00
Turtle 44165ccc3e docs: add DSH Core Guidelines with format and callback rules 2026-11-19 10:27:07 +08:00
imccyu 6544a7171e docs: regenerate event producer-consumer graph for the forge panel session/disposed listener 2026-11-19 00:08:54 +08:00
imccyu 16072178a9 fix(forge-panel): follow the panel after the Session opens and name cold Sessions by id
The panel follow resolved its Session argument by resuming the Agent while the
main view was still opening the same Session, so the Host read the Session log
twice. The follow stream now holds a forgePanel Session reference and waits for
the Session's history to open before following. refresh, reviewStage, and
worktreeCleanup only need the identity, so they take a SessionId and no longer
resume an Agent; worktrees.cleanupOf takes the id as well.
2026-11-18 23:06:35 +08:00
Ruilin Geng 51d084e0f6 Merge pull request #8727 from deepseek-harness/feat/upstream-skills-profile-cache
feat(upstream-skills): 上游技能按 profile 存放,新的固定提交替换旧的
2026-11-18 19:40:16 +08:00
yudshj d687acbe4f feat(client): preview plan and compaction content independently
Open caller-supplied content through the shared document renderer without depending on inline diagram visualization. Keep checkpoint reads tied to their optional preview-service activation and cover cancellation in both the service and the chat row.
2026-11-18 19:26:47 +08:00
LegGasai 1f9712ddf9 Merge remote-tracking branch 'origin/master' into feat/forge-status-tiers 2026-11-18 19:14:09 +08:00
LegGasai a6b1265275 Merge remote-tracking branch 'origin/fix/forge-github-status-batches' into feat/forge-status-tiers
Brings the snapshot query limit of #8323 together with the status briefs
so one pull request carries both.

The limit is named snapshotBatchSize beside briefBatchSize. A snapshot
read and a brief read now share GitHubProvider.statusQueries: each
builds every query before the first request, across hosts, sends them in
turn, and fails only the pull requests of a query whose gh run fails or
that GitHub refuses. fetchHost and fetchDocument become fetchSnapshots,
which reads one query through statusOutput.

Tests cover snapshotBatchSize 3 and 1, a reference on a later host that
cannot be inlined, and both levels through the plugin's configuration
and a gh script. The README states the deadline that a read's queries
share instead of measured numbers, which move to the Agent Note.
2026-11-18 19:13:45 +08:00
gengruilin bb41d5e1e0 Merge remote-tracking branch 'origin/master' into feat/tencent-docs-plugin 2026-11-18 18:52:55 +08:00
LegGasai 55c95447b5 feat(forge): read list badges from status briefs and refresh on open
The Session list read the full snapshot of every change request a listed
Session binds: up to 100 check contexts, reviewers, review threads, and
linked issues each, all in one GraphQL document per host. GitHub ends a
request after 10 seconds of processing, so about 30 bound pull requests
made every list read fail. Opening a Session whose change request the
list already watched read nothing until the next regular poll.

The forge registry now watches a change request at two levels. A brief
holds the title, state, draft flag, mergeability, review decision, and
combined check outcome. A watched change request is polled for its
snapshot while it has a snapshot watcher and for its brief otherwise,
with one fetch in flight per forge and level. Providers read briefs
through the optional fetchBriefs; forge-github reads them from scalars
and statusCheckRollup.state, briefBatchSize (50) pull requests per
query.

The Session list watches briefs and names the state it already holds,
so a merged change request is not read again and a list that reopens in
the same process waits for the interval. The Session panel and the
review page ask for a status no older than statusMaxAgeMs (10 seconds)
when they start to show a change request.
2026-11-18 18:46:25 +08:00
Ruilin Geng 35f1614ba0 Merge pull request #5933 from deepseek-harness/feat/notion-plugin
feat(notion): 新增 Notion 插件并支持在插件页连接账号
2026-11-18 18:28:12 +08:00
gengruilin 5de4257956 fix(upstream-skills): delete the other pins once per registration
Processes of one profile can run different versions of a plugin at the same time, and they share
the profile's pin directory. A registration that deleted the other pins after every download made
two such processes delete each other's pin and download their own again at every check. Each
registration now deletes the other pins once, the first time its own pin is in place; a process
whose pin another process deleted downloads it again and leaves that process's pin in place.

The README and the Agent Note no longer state that no other installation reads the directory, and
the README lists the remaining case as a known limitation.
2026-11-18 18:24:39 +08:00
LegGasai 3891a53527 Merge commit '6eeb115fd19' into worktree/forge-m7-review-page-ee17bf 2026-11-18 17:45:41 +08:00
imccyu e252633945 Merge pull request #8726 from deepseek-harness/worktree-sync-release-dsh-0.2.2-0.2.2-rc.5-to-master
chore(release): sync release/dsh-0.2.2 0.2.2-rc.5 to master
2026-11-18 17:43:02 +08:00
gengruilin 918e5c0531 Merge remote-tracking branch 'origin/master' into feat/notion-plugin 2026-11-18 17:42:57 +08:00