Commit Graph
26539 Commits
Author SHA1 Message Date
LegGasai b5c048eea8 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	docs/persistence-catalog.i18n.yaml
#	docs/persistence-catalog.md
#	docs/persistence-catalog.zh.md
#	docs/persistence-schema.json
#	packages/experimental/worktree/README.i18n.yaml
#	packages/extensions/tool-cordis/src/api-catalog.ts
#	packages/session/working-directory/README.i18n.yaml
#	packages/session/working-directory/README.md
#	packages/session/working-directory/README.zh.md
#	packages/session/working-directory/src/index.ts
2026-11-09 15:20:13 +08:00
Yichen Jiang c49ffe9808 Merge pull request #8112 from deepseek-harness/feat/forge-review-threads
feat(forge): overlay GitHub review threads on the changes view
2026-11-09 15:05:48 +08:00
Yichen Jiang 2479e6ddab Merge remote-tracking branch 'origin/master' into feat/forge-review-threads
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
2026-11-09 14:43:20 +08:00
Yichen Jiang dacbc37209 Merge remote-tracking branch 'origin/master' into feat/forge-review-threads
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	packages/experimental/client-ui-forge/README.i18n.yaml
#	packages/experimental/client-ui-forge/README.md
#	packages/experimental/client-ui-forge/README.zh.md
#	packages/experimental/client-ui-forge/src/client/ChangesTab.tsx
#	packages/experimental/client-ui-forge/src/client/DiffFile.tsx
#	packages/experimental/forge-github/README.i18n.yaml
#	packages/experimental/forge-github/README.md
#	packages/experimental/forge-github/README.zh.md
#	packages/experimental/forge/README.i18n.yaml
#	packages/experimental/forge/src/index.ts
#	packages/extensions/tool-cordis/src/api-catalog.ts
2026-11-09 14:28:39 +08:00
Yichen Jiang e29a8f57c5 Merge pull request #8157 from deepseek-harness/fix/app-boot-home-env-deepseek-endpoints
fix(app-boot): accept DeepSeek endpoints from the Harness-home .env
2026-11-09 14:00:02 +08:00
Jiawei Song b43fcce60e Merge pull request #8006 from deepseek-harness/refactor/tool-errors-fs
feat(fs,lsp,present): give file, search, LSP, and present tool failures error codes
2026-11-09 13:59:49 +08:00
Jiawei Song 74ae5f0da9 Merge pull request #8053 from deepseek-harness/refactor/tool-errors-shell
feat(shell,sandbox,jobs,terminal): give shell, sandbox, job, and terminal tool failures error codes
2026-11-09 13:56:40 +08:00
CreatixChu e5359d9a49 Merge pull request #8107 from deepseek-harness/feat/session-mouse-consent
feat(cua): 按会话授权 macOS 悬停移动系统鼠标
2026-11-09 13:51:42 +08:00
Yichen Jiang 544fdb0b9c Merge pull request #8126 from deepseek-harness/perf/forge-changes-view
perf(forge): keep the changes view responsive on large diffs
2026-11-09 13:34:23 +08:00
Yichen Jiang 9b6e551054 fix(app-boot): accept DeepSeek endpoints from the home .env only as spelled
The Harness-home exemption matched every name case-insensitively, so a
home `.env` line such as `deepseek_base_url=...` passed the check and
landed in `process.env` under that spelling. The launch snapshot looks
names up exactly on POSIX, so llm-deepseek, web-search-deepseek, and
web-deepseek-api never saw it: the launch succeeded with the official
endpoint, where it used to fail. Proxy names keep matching in any letter
case because proxy clients read both spellings; the two endpoint names
now match only as `DEEPSEEK_BASE_URL` and `DEEPSEEK_SEARCH_BASE_URL`, and
another spelling fails the launch with the exact name to use.

The home-layer refusal case now covers `SSL_CERT_FILE`,
`NODE_TLS_REJECT_UNAUTHORIZED`, and `DSH_HOME`. The web-deepseek-api
README states where `DEEPSEEK_BASE_URL` may come from; the
launch-environment README, the development guide, and the configuration
source Agent Note no longer overstate which file is refused, which
Vitest configurations load the root `.env`, or what a checkout may carry.

Refs #8138
2026-11-09 13:15:10 +08:00
Yichen Jiang 29541194cc fix(forge-panel): keep thread avatars round and rebind the scrollbar on resolved cards
The repository's stylesheet gates require a full-round radius to pair `corner-shape: round`, so the avatar and its
image stay circles where corners are smoothed, and a scrolling surface on an elevated background to rebind the
scrollbar thumb to the l2 pair. A resolved thread card paints `--dsw-alias-bg-layer-2` and holds the hunk excerpt and
the file at that commit, which scroll, so it now sets `--dsh-scrollbar-thumb` and `--dsh-scrollbar-thumb-hover`.
2026-11-09 13:10:00 +08:00
Yichen Jiang 1ba5977691 fix(forge-panel): address the review thread findings
- A jump to a thread centered its card on every later jump to the same file, since the jump target outlived the jump.
  The scroll target now carries the card to center and is cleared when the jump ends; unfolding still follows the
  latest thread jump.
- In a commit range view, a thread on a file the chosen commits do not change opened on the host instead of choosing
  all commits; a thread the chosen commits do not hold now always chooses all commits first.
- A quote of an old-side thread named the head as the commit its lines number. It now says the lines number the file
  before the change and names the head only as where the diff ends, and ForgeAnchor documents the same.
- Refresh reads review threads from the host past the panel's cache (`changeRequestReview` takes `fresh`), so a thread
  resolved since shows without waiting for `reviewRefreshMs`; `maxCachedReviewBytes` defaults to 16 MiB, at least
  one read under forge-github's default `maxOutputBytes`.
- Picking a thread from a list that covers the files moves the focus to the thread's card.
- `ForgeReviewData.viewer`, its GraphQL field, `ThreadActions.viewer`, and `ThreadReadState.unsupported` had no
  consumer and are removed.
- A quoted outdated thread is named by the lines it was written on; a missing pull request or repository makes a
  review read `not-found`; a truncated read that kept no thread still offers the thread list.
2026-11-09 12:50:33 +08:00
Yichen Jiang 2284e3e714 fix(app-boot): accept DeepSeek endpoints from the Harness-home .env
`loadLayeredEnv` refused `DEEPSEEK_BASE_URL` and
`DEEPSEEK_SEARCH_BASE_URL` from every discovered `.env`, including the
user's own `$DSH_HOME/.env`, so a machine-level endpoint written there
made both the CLI and Desktop fail at startup.

The refusal exists for the invoking directory's file: it arrives with a
clone, and a repository must not choose where requests carrying the
user's DeepSeek credential go. The home file is the user's own, and the
profile patches in the same directory can already set these endpoints as
plugin `baseURL` fields, so refusing it there protected nothing.
`HOME_LAYER_PROXY_NAMES` becomes `HOME_LAYER_ROUTE_NAMES` and adds the
two endpoint names; a project `.env` that sets either still fails the
launch, and its message now names the home file as the second way out.
`DSH_HOME` stays bootstrap-only, and the CA and TLS names stay refused
everywhere.

Tests cover the project layer refusing both names, the home layer
accepting both below an exported value, and the project-layer message.
The app-boot, launch-environment, llm-deepseek, and web-search-deepseek
READMEs, the development guide, and the two Agent Notes that stated the
old rule now state this one.

Refs #8138
2026-11-09 12:33:59 +08:00
Yichen Jiang 1a6268ed52 Merge pull request #8152 from deepseek-harness/fix/worktree-archive-cleanup
fix(worktree): reclaim archived checkouts in large repositories
2026-11-09 12:31:05 +08:00
Yichen Jiang 088cd5dfba test(forge-panel): read the end position after scroll anchoring settles 2026-11-09 12:20:08 +08:00
Yichen Jiang 2d44c4ecc9 fix(forge-panel): let scroll anchoring keep a jumped-to file in place
The per-frame alignment after a jump pulled back scrolls it did not start,
such as a script or find in page setting the scroll position. Measured on
#7985, the browser's scroll anchoring already keeps an early, middle, or
late jump target at the top while the sections above it draw.
2026-11-09 12:07:17 +08:00
Yichen Jiang fcc33725d9 fix(worktree): keep an early streamed answer and document cleanup limits
- Return the early answer from scanCommand without awaiting a successful
  outcome: the SSH provider rejects done when termination cancels a
  launch it has not yet acknowledged, which turned a retained dirty
  checkout into a failed cleanup.
- Test that a never-initialized submodule is removed and that Git
  refuses a committed embedded repository, which inspection leaves to
  Git by design.
- Record the git-status-only trade-off and its sparse-checkout rationale
  in the worktree Agent Note, and align the README, upgrade guide,
  maxOutputBytes description, and comments with what is streamed.

Refs #8151
2026-11-09 12:00:23 +08:00
Yichen Jiang ce1e1f2681 Merge remote-tracking branch 'origin/master' into perf/forge-changes-view 2026-11-09 11:47:49 +08:00
Yichen Jiang cfee330356 fix(forge-panel): highlight lines in the render that draws them
Deferred idle-time highlighting drew token text, so a file whose content
changed at the same path kept showing its previous text until the next
pass, and replacing the plain text collapsed a selection made meanwhile.
Sections highlight in their drawing render again, as before.

File sections now take the tab's visibility as a prop and the reach
tracker through their handlers, so no business component reads a React
context.
2026-11-09 11:47:05 +08:00
Yichen Jiang e7e5ed638d Merge remote-tracking branch 'origin/master' into feat/forge-review-threads
# Conflicts:
#	apps/web/tests/forge-panel.e2e.ts
#	packages/experimental/client-ui-forge/README.i18n.yaml
#	packages/experimental/client-ui-forge/src/client/DiffFile.tsx
#	scripts/type-equiv.manifest.json
2026-11-09 11:38:53 +08:00
Yichen Jiang bafc363d78 fix(worktree): reclaim archived checkouts in large repositories
Archive cleanup read whole Git listings into the 64 KiB maxOutputBytes
buffer, so every clean checkout in a repository with more than about a
thousand tracked files settled as failed.

- Drop the skip-worktree/assume-unchanged and gitlink listings; removal
  follows what `git status` reports, as peer agent products do.
- Stream `git status` and stop at its first entry, and stream the
  worktree listing, so neither is bounded by maxOutputBytes; restoring a
  worktree shares the streamed lookup.
- Retain a checkout whose administrative directory holds submodule
  repositories instead of letting Git refuse the removal.

Refs #8151
2026-11-09 10:59:09 +08:00
Chinesezjc e47ab865a4 Merge pull request #7994 from deepseek-harness/fix/master-ci-flaky
test(ci): remove two flaky-test causes in gh fixture and Web e2e
2026-11-09 02:02:29 +08:00
dsh-ci-bot 8590ed6d92 Merge remote-tracking branch 'origin/master' into fix/master-ci-flaky
# Conflicts:
#	packages/experimental/forge-github/tests/gh.spec.ts
2026-11-09 01:09:22 +08:00
Yichen Jiang 2c253a6ecf Merge pull request #8145 from deepseek-harness/fix/commit-menu-time-fixture
test(forge): pin the commit menu clock
2026-11-08 23:28:06 +08:00
liukx0205 a62156c1ed test(forge): pin the commit menu clock
The rows name each commit's age, so the fixed 2026-10-09 fixture began reading '1 mo ago' once the wall clock crossed 30 days and the ' d ago' assertion failed on every lane. Pin Date to the suite's 2026-10-09T12:00:00Z now and date the fixture two days earlier, matching the formatAgo cases.
2026-11-08 22:58:56 +08:00
Kexin Liu 6a20990684 Merge pull request #7933 from deepseek-harness/feat/session-append-events
feat(session): accept multiple events through append
2026-11-08 21:52:12 +08:00
Kexin Liu 2c37d513ed Merge pull request #8085 from deepseek-harness/agent/answer-concurrent-tools-2-fda34beac313
feat(tools): declare read-only tools concurrency-safe
2026-11-08 17:13:38 +08:00
imccyu c22c633a25 Merge pull request #8118 from deepseek-harness/fix/loading-spinner-thinking-gap
fix(web): keep the boot spinner circular and multi-thinking rows on the 4px rhythm
2026-11-07 19:15:37 +08:00
imccyu fc92cdf7ef fix(chat): keep multi-reasoning rows on the process-row rhythm
Several reasoning blocks of one Assistant message rendered 16px apart inside the response body, while process rows of different steps sit 4px apart. A signature-only reasoning block renders no row but left its empty wrapper in the flex body, adding a full block gap.

Styles only: inside a step-group reasoning part, whose body holds only reasoning rows, the block gap is 4px, and an empty reasoning wrapper cancels its gap like a hidden one. A keyless web e2e pins the rendered gaps.
2026-11-07 18:58:57 +08:00
Yichen Jiang d6208abfca docs(forge-github): state how review reads bound the first page and which pages re-check the head
A first review thread page whose output alone passes maxOutputBytes fails the read as too-large through gh's output
limit, rather than ending it as truncated as the README and the ReviewLimits documentation said; only a later page
that would pass the limit truncates the read. Thread pages after the first re-check the head, while a thread's comment
pages do not. A test pins the first-page failure.
2026-11-07 18:21:08 +08:00
creatixchu cbba0c66a9 test(cua): verify pointer capabilities and portable option forwarding 2026-11-07 18:20:34 +08:00
creatixchu ac53809d66 refactor(cua): own system-pointer consent in the shared host 2026-11-07 18:18:03 +08:00
Yichen Jiang c5054b5fff docs(forge): record why the changes view measures pixels and how hosts mark the navigator row 2026-11-07 18:09:09 +08:00
Yichen Jiang 1f0eb449a3 fix(forge-panel): end a jump's alignment when the tab hides
Also explains why the alignment measures every frame and why the section
handlers read values assigned during render.
2026-11-07 18:09:09 +08:00
Yichen Jiang 508b078373 fix(forge-github): keep the status when GitHub reports no full base commit
The base commit only gives the diff read a head start, so a missing or
malformed baseRefOid now leaves baseSha out instead of failing the status.
2026-11-07 18:09:08 +08:00
Yichen Jiang 040c93f9b9 fix(forge-panel): report a refused patch before a failed .gitattributes read
Both reads still run in parallel, and a failed patch read still cancels the
attributes read, but the result now waits for both: the patch's failure
passes on first, so a too-large or stale patch is never hidden by an
attributes failure that happened to end earlier.

Also documents the estimated height of undrawn files.
2026-11-07 18:09:06 +08:00
Yichen Jiang 4a6e0e3c52 feat(forge-panel): step through a file's unresolved threads from its header count
The unresolved count on a file header opened the whole thread list scrolled to that file, which covered the code in
a narrow view and did not tell the file's threads apart. Each click now goes to the file's next unresolved thread in
the order its section shows them: threads on the whole file, threads on lines by the row of their last line,
outdated threads, then threads the chosen commits do not hold; after the last it starts again from the first. The
thread list orders each file's threads the same way, and the Threads toolbar button alone opens it.
2026-11-07 17:46:31 +08:00
creatixchu bd2b902cc4 test(cua): record pointer-free hover after an approved physical move 2026-11-07 17:41:48 +08:00
creatixchu bfa829a648 fix(cua-macos): require an explicit request for every system-pointer move 2026-11-07 17:40:42 +08:00
Yichen Jiang 0682926512 test(forge-panel): wait for the last file to draw before reading the end position 2026-11-07 17:23:30 +08:00
creatixchu e9e265b48f fix(cua): publish session permissions outside the plugin entry 2026-11-07 17:17:00 +08:00
creatixchu 0a586fc45f fix(cua): preserve the typed provider request variants 2026-11-07 17:09:35 +08:00
creatixchu 0356074ec5 refactor(cua): let providers own hover options and request named permissions 2026-11-07 17:07:35 +08:00
imccyu 7b051ecee5 fix(web): keep the boot spinner arc circular
ui-theme applies a superellipse corner-shape to every element and its ::before/::after once its global sheets load, while the boot page is still shown. The progress arc inherited only the radius, so it rendered as a rounded square until React took over. State the circular corner on the arc as the track already does; the literal 50% radius puts it under the repository-wide full-round pairing gate.
2026-11-07 17:04:41 +08:00
liukx0205 7f6b7ba4b6 refactor(session): narrow batch publication metadata and validation 2026-11-07 17:02:19 +08:00
liukx0205 e767bef144 test(session): type the canonical batch append adapter 2026-11-07 17:02:19 +08:00
liukx0205 1e7f265cfd fix(session): complete batch API review coverage and declarations 2026-11-07 17:02:19 +08:00
liukx0205 e00af4f994 test(session): cover lazy surface reads before a batch 2026-11-07 17:02:19 +08:00
liukx0205 143fabbc34 fix(session): share live append validation and expose batch publication 2026-11-07 17:02:19 +08:00
liukx0205 876c4a4f78 test(session): bind the append overload wrapper 2026-11-07 17:02:19 +08:00