Commit Graph
5684 Commits
Author SHA1 Message Date
EricMoin 1d6bec2575 fix(remote-connection): support Preview credential encoding 2026-11-19 21:24:42 +08:00
EricMoin 3059225fd9 feat(remote-connection): own browser authentication through providers 2026-11-19 21:24:42 +08:00
EricMoin 608960ebfc fix(web): add install icon for PWA (#8248)
* fix(web): round PWA install icons

Closes #8247

* fix(web): harden install icon generation

Reject missing SVG definitions and bind clipping to the tile.
Cover rounded geometry and keep the existing icon notes current.
2026-11-19 21:13:37 +08:00
涂轶翔 101f26de4e fix(system-prompt): 保留 section API 的增量系统指令 (#6941)
* feat(system-prompt): admit section updates incrementally

* docs(system-prompt): accept retirement restart gap

* test(system-prompt): cover retirement and reentry before admission

* test(system-prompt): align rebase fixtures and persistence history

* fix: align section prompt consumers and CI fixtures

* test: pin credentials for section snapshot fixtures

* test: align remaining snapshots with section admission

* test: preserve section metadata in Web and PowerShell replays

* refactor(system-prompt): retire sections through Cordis cleanup

* chore: refresh section admission history after rebase

* fix(system-prompt): advance admission head after compaction

* fix(system-prompt): trim sections before admission hashing

* docs: move system upgrade guides to current version

* docs: add system message contribution cookbook

* perf(system-prompt): avoid indexing history for admission

* refactor(system-prompt): derive admission from logged sections

* test(system-prompt): update lifecycle and compaction consumers

* test(system-prompt): refresh CLI section event expectations

* test(system-prompt): refresh question composer section metadata

* feat(system-prompt): resolve same-name sections by scope

* refactor(persona): use ordinary section registrations

* refactor(system-prompt): clarify assembly and related control flow

* test(system-prompt): reconcile rebased section snapshots

* test(python): use current system text helper after rebase

* test(system-prompt): refresh CLI expected section blocks

* test(system-prompt): reconcile latest master integration

* test(agent-loop): seed tools before deferred addition assertion

* refactor(compaction): replace system heads when compacting prefixes

* refactor(system-prompt): separate source text and notice attribution

* fix(system-prompt): preserve legacy instructions in compaction snapshots

* refactor(compaction): build system snapshots while reading the summary prefix

* refactor(compaction): rebuild current system instructions

* refactor(system-prompt): defer compaction rebuild to admission

* refactor(system-prompt): remove redundant fixtures and setup

* fix(plan-mode): announce committed user transitions

* docs(system-prompt): reconcile section lifecycle and compaction design

* refactor(system-prompt): consolidate projection version increments

* fix(system-prompt): reconcile master integration and replay fixtures

* docs(system-prompt): align upgrade guide with current release

* refactor(system-prompt): make admission operations explicit

* fix(system-prompt): reconcile master API and release changes

* docs(system-prompt): regenerate catalogs after master refresh

* refactor(llm-pi-ai): delegate text rendering to pi-ai

* fix(llm-pi-ai): preserve blank lines between system text parts

* refactor(system-prompt): remove redundant retirement metadata

* refactor(system-prompt): own admission and use canonical surface targets

* refactor(system-prompt): compare captured sections at commitment

Assembly fixes section text and lifecycle; PromptAssembly.systemUpdates() compares them with the committed projection when the loop commits. This replaces SystemPrompt.admit(), needsRebuild() and isCurrent(), the SystemAdmission export, the loop's reassembly after compaction, and SessionSurface.systemHeadResetSeq. The projection records a pending rebuild as a boolean that an attributed reset clears.

After a compaction inside a step, the rebuilt head uses the sections captured for that step; later source changes arrive as ordinary updates at the next step.

* test: await the session read fixture and type a matcher for lint

* test(tool-executor-ptc): describe same-name section override on executor replacement

Duplicate section names no longer reject a scoped executor; the earlier registration is overridden and returns as an ordinary update when the executor leaves.

* docs(upgrade-guide): move system-prompt integrations to v0.2.2-rc.3

The root version on master is 0.2.2-rc.3; verify-upgrade-guides rejects a guide added under an earlier version directory.

* refactor(system-prompt): rebuild over system messages without sections

A system message without source.sections now marks rebuilding pending, like a compaction summary. The next model attempt replaces the head with current sections and clears later system messages. This removes the separate legacy flag and its appended whole-prompt replacement and notice.

Sessions written by earlier releases, migrated logs, and imported DeepSeek conversations take the same path, so the importer and its tests return to their master versions.

* test(web): refresh the imported-conversation recording and drop a stray bytecode file

The Web recording for a resumed DeepSeek import was recorded while the prompt was appended after the imported history; the head is replaced again, as on master. The .pyc under the macOS signing skill was staged by accident in an earlier merge.

* refactor(session): scan system nodes on read

surface.systemNodes is read only when a system rebuild is written. Scanning the current surface nodes on each read restores the surface fold's plan types and state to their master definitions, which no longer carry the system message.

* refactor(session): rename SystemSurfaceNode.hasContent to isEmpty

The flag reports that the logged content array has no blocks. isEmpty matches the documented "empty head" wording and covers a head that was written empty without ever being cleared.

* refactor(llm): join system text through extractTextContent

extractTextContent gains a trim option that trims each text block and omits blocks left empty. The DeepSeek serializer, the pi-ai converter, and the prompt inspector use it with a blank-line separator in place of three hand-written joins.

The pi-ai converter now trims system and developer text like the other two, so whitespace-only blocks are omitted there as well.

* test(snapshots): refresh the PowerShell and cordis-inspect recordings

The two PowerShell scenarios still held the initial system message as one unattributed block; replay now writes one block per section with its attribution. The cordis-inspect-jsdoc recording embeds the API catalog, which names SystemSurfaceNode.isEmpty since the rename.

* test(plan-mode,harness-dev-context): cover a rejected pre-step and a repeated legacy prompt

A rejected pre-step must leave a queued plan-mode switch pending and unannounced until the next accepted step. A second unattributed system message with the same legacy paragraphs must keep the admitted paragraphs.

* test(web): refresh Web recordings for section-attributed system messages

Twenty-seven Web recordings still held the initial system message as one unattributed block. Replay now writes one text block per section with its attribution; twenty-six recordings differ only in that line.

plan-review also records the plan-mode switch notice before the first prompt and appends a plan:status update on exit in place of a head replacement and a series header, so its expanded golden gains the notice row.

The Creator persona test joins the system text blocks with blank lines, as the adapters do, before matching the persona line.

* refactor(system-prompt): require the retry argument of systemUpdates

The agent loop passes it on every attempt. A custom loop that omitted it on a retry received a full comparison in place of the pending rebuild, with no diagnostic; the type now makes each caller state which attempt it is.

* docs(upgrade-guide): move the system prompt integrations guide to v0.2.2-rc.5

The root version is 0.2.2-rc.5 after the master merge, and verify-upgrade-guides rejects a guide added under an earlier version directory.

* test(web): refresh the mention path presence recording for section-attributed system messages

* test: align two specs that master left failing

The DeepSeek settings spec waited for a saved notice carrying the provider label from before the rename to DeepSeek API. The Windows packaging workflow spec seeded one of the two helpers that the Stage workflow helpers step copies.

* chore: remove a Python cache file committed by mistake
2026-11-19 21:11:38 +08:00
LegGasaiandimccyu 0a37a1b89a fix(web): keep conversation file references on the same file after a directory move (#8830)
* fix(workspace-path): address opened files by absolute path

`fileAddressFor` rewrote an absolute path inside the Session's directory
into a relative address. A Sidebar tab opened that way named another file,
or none, once the Session's directory moved and the page reloaded.

The address now carries the absolute path whenever one is known: an
absolute path is kept and a relative path is joined to the directory the
caller supplies. A relative path stays relative only while that directory
is unknown.

* fix(ui-chat): resolve relative images from the Session's current directory

A relative Markdown image used the Session header directory, so an image
written while the Session worked in a worktree did not load. It now uses
the directory the Session works in, the base relative file links already
use.

* fix(ui-reference): write picked and dropped files as absolute mentions

A file or folder picked from the `@` list was sent as a path relative to
the Session's directory, and a Desktop drop inside that directory was
rewritten to a relative path. After the directory moved, the sent message
named another file or none.

A settled pick now joins the listed path to the Session's current
directory, and a dropped or pasted file keeps the path the shell reports.
Drill text stays relative. Hand-typed relative mentions are unchanged.

* fix(deliverables): ask for absolute Markdown link and image targets

The file-reference guidance allowed targets relative to the working
directory. A relative target in an earlier reply named another file once
the Session's directory moved, and a model working in a worktree sometimes
wrote targets relative to the original project.

The guidance now asks for absolute targets. The expected system prompts
that assemble this section carry the new wording.

* docs(notes): record how conversation file references survive directory moves

* docs(notes): cite the earlier per-message implementation and its revert

* test(snapshots): carry the absolute-target guidance into the session-send-message prompt

* test(snapshots): add the subagent concurrency sentence to the timeline-follow-chat prompt

The scenario's expected system prompt on master predates the subagent
guidance sentence that states the shared concurrency limit, so its replay
fails on master and on every branch that merges it.

* docs(ui-conversation): remove the stale sentence on relative dropped paths

---------

Co-authored-by: imccyu <[email protected]>
2026-11-19 18:30:41 +08:00
Dudu-0223 bd77229a9c Merge pull request #8241 from deepseek-harness/feat/session-control-message
feat(session): 支持跨 Session 消息
2026-11-19 18:02:58 +08:00
Yudong Han 90c0f1aa4c Merge pull request #8490 from deepseek-harness/turtle/rename-deepseek-api-ca2c0fb1df3e
feat(llm): label the API-key DeepSeek provider as DeepSeek API
2026-11-19 17:53:40 +08:00
acehinnnqru ad27c9e245 feat(client): add workspace picker search (#8394)
* feat(client): add workspace picker search

* fix(client): preserve searchable menu keyboard ownership

* test(client): cover searchable menu behavior

* test(web): fix workspace picker search locator

* fix(client): restore collapsed sidebar search styles

* fix(client): simplify workspace picker search field

* fix(client): keep workspace picker search scoped to the menu

* fix(client): preserve touch focus when opening workspace picker

* test(web): stabilize workspace picker layout assertions

* test: isolate workspace picker coverage and exercise submenu navigation

* docs(client): clarify searchable menu autofocus precedence

* fix(client): match workspace picker searches by path

* fix(client): align workspace picker empty-state row height

* fix(client): refine workspace picker search and keyboard navigation

* fix(client): unify menu navigation and defer workspace search indexing

* fix(client): center menu search header vertically

* fix(client): balance workspace picker search styling
2026-11-19 17:35:28 +08:00
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
Dudu-0223 29a3607a78 Merge master into feat/session-control-message 2026-11-19 17:13:59 +08:00
Dudu-0223 7324b27419 fix(session): clarify explicit message requests and delivery limits 2026-11-19 17:07:08 +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
yudshj ce5bc3df56 Retain transient content across sessions and close its tabs on reload 2026-11-19 16:38:47 +08:00
LegGasai 5a3e2ccb57 Merge remote-tracking branch 'origin/master' into worktree/session-panel-stay-pinned-128657 2026-11-19 16:05:24 +08:00
yudshj 34897717d4 Limit sidebar preview changes to compaction summaries 2026-11-19 15:59:00 +08:00
LegGasai 4f611e1cfa test(forge-panel): measure drag positions after the collapsed-lines strip left
The hover plus case measured where to drag in notes.txt while README.md
above it still drew the strip for the unchanged lines after its last
hunk. The strip leaves once the file's text was read for highlighting,
which moves the rows below it up by 26 pixels. When it left between the
press and the release, the drag crossed one more row and opened a
comment on L3-5 in place of L3-4. The case now waits for the strip to
leave before it measures.

The race is in the test on master too: with master's forge sources the
case failed 1 of 15 runs alone, and the strip left 60 to 357 ms before
the drag began.
2026-11-19 15:26:38 +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
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
Chinesezjc 9643605bc5 Merge pull request #8762 from deepseek-harness/fix/ci-ec10fb1-e2e-cleared-key-scope
test(web): scope the cleared-key close check to the edited provider's card
2026-11-19 13:02:12 +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
yudshj 5dc1009c8d Synchronize history paging and Node cancellation tests 2026-11-19 12:43:54 +08:00
yudshj 07015a777d Share the document viewer header across plan and compaction previews 2026-11-19 12:14:36 +08:00
gengruilin 5d62fbdf71 Merge remote-tracking branch 'origin/master' into feat/wecom-plugin 2026-11-19 11:50:39 +08:00
yudshj ac11a30aed Unify sidebar navigation and restore compaction summaries by event address 2026-11-19 11:33:41 +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
dsh-ci-bot ca5eb1ce17 Merge master 92bee14e37 into fix/ci-ec10fb1-e2e-cleared-key-scope
Keep the row-scoped key locator and the saved-notice wait. The base already carries the 10 s poll timeouts on the same assertions (e21776d781), so the merged test file matches the branch's version.
2026-11-19 05:14:06 +08:00
dsh-ci-bot 5b56e9d511 test(web): wait for the save to reload before reopening the editor
The editor closes before the save's reload lands, and an Edit press while the settings snapshot is loading is dropped. Wait for the saved notice, which that reload publishes, before asserting the row's key field is gone and reopening the card.
2026-11-19 03:32:46 +08:00
dsh-ci-bot 64f7273a46 test(web): count only the edited provider's key field after a save
The save deletes the named credential before the profile write that restores native auth. Between the two writes google's row reports no usable provider, so ModelsSection mounts the DeepSeek first-run setup card, and its key field made the dialog-wide count 2. Scope the count to the edited provider's row and give the close a realistic poll timeout.
2026-11-19 03:02:46 +08:00
imccyu fbbf1acb03 test(web): read the drop target again until the pointer rests on a Session row
The drag-scroll case read elementFromPoint once after moving to the drop point;
on a loaded runner the point can still miss a row, and the non-null assertions
then threw. Poll the target until it names a row, and give the reorder Host
round trip 10 seconds.
2026-11-19 01:54:59 +08:00
imccyu f92b5de6c7 test(web): allow the provider key save to settle before checking the editor closed
The Save in the provider editor writes settings and the credential on the Host
before the editor closes; the 1-second expect.poll default timed out on a loaded
CI runner. Wait up to 10 seconds, as other web e2e cases do for Host round trips.
2026-11-19 01:28:20 +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
gengruilin fd7e341978 Merge remote-tracking branch 'origin/master' into feat/tencent-docs-plugin 2026-11-18 19:14:57 +08:00
gengruilin bb41d5e1e0 Merge remote-tracking branch 'origin/master' into feat/tencent-docs-plugin 2026-11-18 18:52:55 +08:00
imccyu a3d319bdac chore(release): sync latest master for 0.2.2-rc.5 2026-11-18 18:33:54 +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
imccyu 30b668495d chore(release): sync release/dsh-0.2.2 0.2.2-rc.5 to master
# Conflicts:
#	packages/client/hmr/package.json
#	packages/client/script-realm-iframe/package.json
#	packages/client/ui-jobs/package.json
#	packages/client/ui-session-panel/package.json
#	packages/experimental/action-cards/package.json
#	packages/experimental/client-ui-forge/package.json
#	packages/experimental/cua-bundle/package.json
#	packages/experimental/forge-gitlab/package.json
#	packages/ptc-runtime/ptc-runtime-node/package.json
#	packages/session/tool-working-directory/package.json
#	packages/util/atomic-write/package.json
2026-11-18 18:26:56 +08:00
imccyu 9bf478edde release(dsh): 0.2.2-rc.5 2026-11-18 17:43:56 +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
Ruilin Geng d826f38c92 Merge pull request #7683 from deepseek-harness/feat/linear-plugin
feat(linear): 新增 Linear 插件并支持在插件页连接账号
2026-11-18 17:26:05 +08:00
imccyu 5d3f7b5063 chore(release): sync release/dsh-0.2.2 0.2.2-rc.5 to master
# Conflicts:
#	.agents/notes/implemented/feature/2026-10-15-deepseek-search-fetch-api.i18n.yaml
#	packages/web/tool-web/tests/integration.spec.ts
#	packages/web/tool-web/tests/tool-web.spec.ts
#	packages/web/web-deepseek-api/README.i18n.yaml
#	packages/web/web-deepseek-api/README.md
#	packages/web/web-deepseek-api/README.zh.md
#	packages/web/web-search-deepseek/README.i18n.yaml
#	packages/web/web-search-deepseek/README.md
#	packages/web/web-search-deepseek/README.zh.md
#	packages/web/web/README.i18n.yaml
2026-11-18 16:22:08 +08:00
LegGasai f47a0a2b52 Merge pull request #8707 from deepseek-harness/feat/web-search-deepseek-model-default
feat(web): default DeepSeek model conversations to Messages search
2026-11-18 15:41:59 +08:00
LegGasai 8b7c308c04 Merge remote-tracking branch 'origin/master' into worktree/session-panel-stay-pinned-128657
# Conflicts:
#	packages/client/ui-chat/README.i18n.yaml
#	packages/client/ui-conversation/README.i18n.yaml
2026-11-18 15:29:22 +08:00
Dudu-0223 77d8f1998c Merge origin/master into feat/session-control-message 2026-11-18 14:02:25 +08:00
LegGasai 803f1e0d90 Merge pull request #8697 from deepseek-harness/worktree/restore-agent-terminal-plugin
feat(web): restore persistent terminal plugin controls
2026-11-18 13:21:19 +08:00