Commit Graph
26298 Commits
Author SHA1 Message Date
sjw1231 d5a2bd2b8b fix(command-goal): report corrupt goal state from /goal
The command mapped every GoalError to the generic invalid-command text,
so GOAL_STATE_CORRUPT lost its replay diagnostic. It now rethrows that
code so the command runtime reports the cause.

Refs #7869
2026-11-09 13:25:30 +08:00
sjw1231 5a8dc54372 fix(tool-ask-user,tool-workflow): classify argument and context failures uniformly
A timed ask_user_question timeout outside the range or a repeated
question id is a ToolArgsError, matching the schema's own rejection of a
fractional timeout, and a missing caller is a ToolContextUnavailableError.
A disabled run_in_background, which the schema omits, is a ToolArgsError
instead of reusing UNSUPPORTED_OPTION, whose meaning is an unsupported
agent() option.

Refs #7869
2026-11-09 13:25:29 +08:00
sjw1231 82c195c0f4 fix(plan-mode): report an unready plan reader as PlanModeError
planState() serves the /plan command, prompt assembly, the tool
admission predicate, and the service methods, so its readiness failure
is PlanModeError PLAN_STATE_UNAVAILABLE instead of the tool-only
ToolContextUnavailableError. The code set is a literal union documented
in place rather than a link to a module-local array.

Refs #7869
2026-11-09 13:25:28 +08:00
sjw1231 632f5b5b48 fix(subagent): stop reclassifying preset join failures
The registry's composeFrom failures are composition invariants, such as
a child joining twice, not an unavailable preset; wrapping them as
PRESET_UNAVAILABLE invited retries of a program error and hid the
original message. They now propagate unchanged. A child depth beyond the
safe-integer range is INVALID_DEPTH, so DEPTH_EXCEEDED keeps one name,
SubagentDepthError.

Refs #7869
2026-11-09 13:25:27 +08:00
sjw1231 de273ffe2d feat(typert): make RemoteError a HarnessError
RemoteError extended plain Error because dsh-llm, which owned
HarnessError, depends on dsh-typert-protocol. With HarnessError in the
dependency-free dsh-error package, RemoteError now extends it and keeps
its name, Remote code, details, and constructor, so a tool body that
throws one records name RemoteError and its code on tool/result.

An unknown or unloadable delegation preset therefore keeps the
registry's agent-preset/not-found or agent-preset/invalid identity, and
the subagent runtime no longer rewraps it as PRESET_UNAVAILABLE. Client
bundles inline dsh-error with the protocol layer; no client code
depends on HarnessError identity.

Refs #7869
2026-11-06 18:02:11 +08:00
sjw1231 1440cf2fb9 test(subagent-dsh-sdk): expect ToolArgsError for effort-only delegation
An effort-only route request now fails as ToolArgsError, whose message
carries the "invalid arguments:" prefix; the production-profile e2e
asserts that text and the recorded INVALID_ARGS identity.

Refs #7869
2026-11-06 18:02:10 +08:00
sjw1231 fda29f726d fix(user-questions): keep the answerer's message in PROVIDER_ERROR
Wrapping a non-HarnessError answerer failure replaced its message with a
generic sentence, so callers and the model lost the concrete reason,
such as a closed connection. The PROVIDER_ERROR wrapper now keeps the
original message and falls back to the generic sentence only for a
value that is not an Error.

Refs #7869
2026-11-06 18:02:08 +08:00
sjw1231 d212c0629a refactor(plan-mode,user-questions): import HarnessError from dsh-error
PlanModeError is the only base-class use this stack adds to plan-mode,
so the package depends on the dependency-free dsh-error instead of
reaching the base through dsh-llm; the user-questions test that builds
a foreign HarnessError imports it from dsh-error as a dev dependency.

Refs #7869
2026-11-06 16:46:33 +08:00
sjw1231 80c3a3fe09 refactor(plan-mode): keep the code list off the plugin entry
The plugin entry exports only the PlanModeError class and its code type;
the code list stays module-local in src/error.ts, so the entry adds no
value export that verify-plugin-entry-exports would reject.

Refs #7869
2026-11-06 16:46:32 +08:00
sjw1231 a528a6d33c feat(subagent): classify unavailable delegation presets
A fresh delegation whose selected preset is unknown or cannot load
received the registry's RemoteError, which is not a HarnessError, so
the tool result had no error.code. applyChildComposition now converts
that RemoteError into SubagentError PRESET_UNAVAILABLE, keeping its
message and the original as cause. Restoration still propagates it so
the manager reports NOT_RESUMABLE, and other mount failures are
unchanged.

Refs #7869
2026-11-06 16:46:32 +08:00
sjw1231 a2e31ad6f9 docs: regenerate catalogs for shifted source lines
The config, persistence, and event producer-consumer catalogs record
source line numbers that moved in the preceding error-code changes; no
persisted type digest changed.

Refs #7869
2026-11-06 16:46:32 +08:00
sjw1231 5157e3205a feat(user-questions): classify answerer failures and timed ask checks
An answerer failure that is not a HarnessError now rejects with
UserQuestionError PROVIDER_ERROR and keeps the original as cause, while
a coded HarnessError keeps its name and code. The timed
ask_user_question tool reports an invalid timeout as BAD_TIMEOUT, a
repeated question id as the new DUPLICATE_QUESTION_ID, and a missing
caller as CALLER_NOT_LIVE.

Refs #7869
2026-11-06 16:46:32 +08:00
sjw1231 5fe691f6e5 feat(team,goal,todo): code projection and argument failures
A failed Team or goal projection now rejects with TeamError
TEAM_STATE_CORRUPT or GoalError GOAL_STATE_CORRUPT, and GoalError
assigns its name literally. team_task_list cursor, limit, and filter
violations and todo_write content checks throw ToolArgsError; missing
callers throw ToolContextUnavailableError. todo_write violation
messages now name the offending item path.

Refs #7869
2026-11-06 16:46:32 +08:00
sjw1231 551e5ce51a feat(workflow): code workflow runs that end cancelled or failed
The workflow tool threw a plain Error when a foreground run settled as
cancelled or error, the most frequent uncoded workflow failure. It now
throws WorkflowError CANCELLED or the new RUN_FAILED code, and rethrows
the caller's abort reason when the calling step was aborted so the
registry records AbortError ABORTED. A disabled run_in_background is
UNSUPPORTED_OPTION, and a missing caller or jobs service is a
ToolContextUnavailableError.

Refs #7869
2026-11-06 16:46:32 +08:00
sjw1231 fdd2dcc7e8 feat(plan-mode): add PlanModeError for exit_plan_mode failures
exit_plan_mode threw plain Errors, so its most common failure, the user
choosing to keep planning, reached tool/result without an error.code.
PlanModeError carries PLAN_NOT_ACTIVE, PLAN_REVIEW_INTERRUPTED, and
PLAN_REVISION_REQUESTED. A plan without a leading heading is a
ToolArgsError, and a missing caller, user-questions channel, or
projection reader is a ToolContextUnavailableError.

Refs #7869
2026-11-06 16:46:32 +08:00
sjw1231 aa90f0be56 feat(subagent): attach SubagentError codes to delegation tool failures
Delegation, discovery, and control tools threw plain Errors for missing
caller context, invalid selections, depth limits, and corrupt or
unavailable child state, so tool/result records carried no error.code.
SubagentDepthError now extends SubagentError with DEPTH_EXCEEDED; new
SubagentError codes cover disabled or disallowed preset and model
selection, invalid depth and cwd, a missing working-directory service,
a failed join of the parent preset revision, and structured output
submitted with pending input. Missing callers and services use
ToolContextUnavailableError, and hand-checked route fields use
ToolArgsError. A corrupt cold-restore descriptor becomes NOT_RESUMABLE,
and the schedule tools read the delegation depth inside their error
mapping.

Refs #7869
2026-11-06 16:46:32 +08:00
imccyu 7e00f186e2 Merge pull request #8022 from deepseek-harness/turtle/fix-ungrouped-new-session-8d376327b451
fix(ui-workspace): drop the inert New Session button from the Ungrouped header
2026-11-06 16:07:56 +08:00
winewill 04188f67e7 Merge pull request #7951 from deepseek-harness/fix/desktop-update-progress-width
fix(desktop): 稳定下载进度宽度并补充检查更新反馈
2026-11-06 15:23:44 +08:00
Turtle ea7c3c11c6 Merge pull request #7976 from deepseek-harness/feat/creator-persona-intent
feat(preset): state Creator's DSH customization purpose
2026-11-06 15:12:46 +08:00
Turtle ce1bb48a12 docs(ui-workspace): state why the Ungrouped header has no New Session 2026-11-06 15:12:04 +08:00
Chinesezjc e643811b4d Merge pull request #7995 from deepseek-harness/fix/ci-8600dbc-gh-exec-sleep
test(forge-github): exec the fake gh sleep so deadline cases settle
2026-11-06 15:01:46 +08:00
Turtle 1d4aaa8bf9 fix(ui-workspace): drop the inert New Session button from the Ungrouped header
Ungrouped Sessions share no directory, so the header's + never started a Session.

Fixes #8018
2026-11-06 14:57:19 +08:00
Dudu-0223 4fc5f5838f Merge pull request #7989 from deepseek-harness/refactor/deduplicate-snapshot-sidecars
test: 复用重复的 snapshot schema 和 system prompt
2026-11-06 14:52:04 +08:00
winewill e69ab4fcc5 Merge pull request #7925 from deepseek-harness/turtle/fix-windows-cursor-schedule-07061c1d6f38
fix(ui-schedule): keep Pause/Resume enabled-looking while the Host answers
2026-11-06 14:37:22 +08:00
winewill 9da22c1c3d test(desktop): align update status interaction coverage 2026-11-06 14:37:17 +08:00
Yichen Jiang 6a315e6aea Merge pull request #8008 from deepseek-harness/fix/forge-file-menu-and-comment-echo
fix(forge): center the selected file in the file menu and shorten comment quotes
2026-11-06 14:22:57 +08:00
winewill 610ed96855 fix(desktop): preserve update status in native fallback 2026-11-06 14:17:06 +08:00
_Kerman b1fa53b978 Merge pull request #8014 from deepseek-harness/luanlai/ptc-embedded-persistent
feat(ptc): 支持 embedded 模式启用 persistent PTC
2026-11-06 14:15:27 +08:00
winewill 63c63997cb fix(desktop): clarify update status and dialog failure feedback 2026-11-06 14:05:00 +08:00
winewill f823dac5c7 fix(desktop): open download status from progress indicator 2026-11-06 13:54:41 +08:00
Anlai Lu 41ef0fcaa9 refactor(ptc): 复用 embedded 载体的既有 process.js 启动 2026-11-06 13:51:24 +08:00
Turtle fef8334682 Merge pull request #7957 from deepseek-harness/docs/creator-plugin-detail
docs(skills): 补充单图插件详情的编写指引
2026-11-06 05:34:12 +00:00
Turtle ac006780c0 Merge pull request #7405 from deepseek-harness/fix/plugin-not-running-status
fix(plugins): mark selected bundles DSH skipped as not running
2026-11-06 13:29:58 +08:00
turtle1999 969eee66b0 merge: integrate standard documentation review fixes 2026-11-06 13:29:08 +08:00
std4453 80e3e61577 Merge pull request #7713 from deepseek-harness/feat/window-level-attachment-paste
feat(web): route unfocused pastes to one composer
2026-11-06 13:27:04 +08:00
turtle1999 b9b02f324c fix(preset): address dsh-doc review guidance and checks 2026-11-06 13:15:04 +08:00
CreatixChu ad3ca91623 Merge pull request #6746 from deepseek-harness/feat/cua-shared-native-api
处理 Windows 实现过程中发现的 CUA 包接口变更
2026-11-06 13:14:30 +08:00
Jiawei Song 7f98d178d1 Merge pull request #7966 from deepseek-harness/refactor/tool-errors-foundation
feat(tools): structured error identity for registry-owned tool failures
2026-11-06 13:11:06 +08:00
Yichen Jiang 3c839748bd fix(forge): address review on file menu reveal and comment quote summaries
- Reveal the selected file again when files arrive or reorder around it,
  so a navigation that selects a file before the diff loads still scrolls
  the wide pane; a changed filter shows its results from the top.
- Compare quote summaries in draft change detection, so restoring a draft
  that only adds or changes a summary updates the snapshot and storage.
- Read the full path and range instead of the short label to assistive
  technology; the Web snapshot now records src/<file>.
- Type the stored summary schema against QuoteSummary, test the stored
  round trip, and document why revealRow does not use scrollIntoView.
2026-11-06 13:10:37 +08:00
Yudong Han 281b96264f Merge pull request #7999 from deepseek-harness/fix/desktop-office-skill-smoke
fix(desktop): 打包冒烟检查不再要求 Office 技能提供 path
2026-11-06 13:01:30 +08:00
Turtle 652dc65597 fix(plugins): report invalid listedByDefault as a metadata diagnostic
The launcher ignores dsh.bundle.listedByDefault, so a non-boolean value now
goes to meta.error instead of error. error again means the layer was skipped,
which the plugin page relies on to mark a selected bundle as not running.
Card head geometry moves to custom properties shared with the reason line.
2026-11-06 12:57:05 +08:00
Anlai Lu 4ac6a28e68 feat(ptc): 支持 embedded 模式启用 persistent PTC 2026-11-06 12:55:15 +08:00
Yichen Jiang 7a22c11866 test(web): expect the shortened review comment quotes in the composer
The forge-panel Web snapshot recorded the composer showing the whole
model-facing User Comment reference. The composer now shows the file name,
side and lines, and comment; review-message.expected.md, the text the model
receives, stays unchanged.
2026-11-06 12:53:01 +08:00
Turtle 7427ebe33d Merge pull request #8005 from deepseek-harness/turtle/locate-docs-environments
docs(skills): locate DSH resources by runtime environment
2026-11-06 12:33:00 +08:00
creatixchu 4995b0e87a Check activation results and narrow validated runner descriptors 2026-11-06 12:31:15 +08:00
creatixchu 92c73f12e4 Refresh CUA replay for activation and tree guidance 2026-11-06 12:29:59 +08:00
Yichen Jiang b81e8c823b fix(forge): center the selected file when the file menu opens
Scrolling by the least distance left a selected file below the fold
flush against the menu's bottom edge with none of its neighbors visible.
Mounting now centers a selected row that is out of view; later selection
steps in the wide pane still scroll by the least distance.
2026-11-06 12:26:41 +08:00
creatixchu 98698bf5f7 Check optional pipe ownership in runner launch tests 2026-11-06 12:17:24 +08:00
creatixchu 96a6b779fe Validate CUA response targets and stabilize platform permission loading 2026-11-06 12:15:41 +08:00
creatixchu f5c1a31125 Change Linux status flags only on child-owned pipes 2026-11-06 12:15:38 +08:00