McpLocalError, McpToolError, SkillError, WorkspaceDependencyError,
InspectError, PluginToolError, PluginManagerError, PluginMarketError,
PtcRuntimeError, and the atomic-write FileLockError extend HarnessError
from dsh-error, so their owning packages now depend on it.
Refs #7869
run_code argument checks now throw ToolArgsError (INVALID_ARGS),
including timeoutMs or sandbox_permissions passed to a runtime whose
schema does not expose them; a missing runtime, workingDirectory, or
sandboxPolicy throws ToolContextUnavailableError. CodeRunFailedError
gains CODE_RUN_UNAVAILABLE after executor disposal, keeping
CODE_RUN_FAILED as the default. A runtime
rejection without its own code becomes CODE_RUN_FAILED with the
rejection as cause; caller cancellation keeps the signal's reason.
The PTC runtime Service Definition adds PtcRuntimeError for contract
misuse: PTC_RUNTIME_INVALID_ARGUMENT, PTC_RUNTIME_UNAVAILABLE, and
PTC_RUNTIME_CONFLICT. The Node runtime throws it for invalid specs and
bindings, use after disposal, incomplete retained cleanup, concurrent
runs for one owner, and a retained environment under another sandbox
policy. dsh-ptc-runtime now declares @deepseek-ai/dsh-error.
Refs #7869
plugin_manager argument checks now throw ToolArgsError (INVALID_ARGS).
Failures thrown outside a change result carry PluginManagerError:
PLUGIN_MANAGER_PROFILE_READ_FAILED when listPlugins or listBundles
cannot read the profile manifest, patches, version exemptions, or
installation manifest, and PLUGIN_MANAGER_UNAVAILABLE after disposal.
atomic-write now throws FileLockError (FILE_LOCK_TIMEOUT, naming
lockPath) when another writer holds the lock past the deadline, so
every withFileLock caller, including plugin_manager, reports a
structured lock timeout. Both packages depend on @deepseek-ai/dsh-error
for HarnessError.
Refs #7869
cordis_inspect_query failures now carry InspectError codes for unknown
providers and methods, invalid input or output, a missing Client page or
registry disposal, the Client deadline, and Host provider failures
without their own HarnessError (INSPECT_FAILED, original error as
cause). Cancellation rethrows the signal's reason instead of a plain
cancellation message. tool-cordis reports a missing Agent or Loader as
ToolContextUnavailableError, malformed Config paging as ToolArgsError,
and an unknown entry id as INSPECT_TARGET_NOT_FOUND.
Tools a dynamic plugin defines through harness.defineTool now fail with
PluginToolError: PLUGIN_TOOL_FAILED for a thrown value, keeping its
message and any string code in the message, and
PLUGIN_TOOL_INVALID_RESULT for a non-JSON result. HarnessErrors and
failures after cancellation keep their identity.
Refs #7869
The skill tool now reports invalid names, unknown skills, and skills
excluded from model invocation as SkillError with SKILL_INVALID_NAME,
SKILL_NOT_FOUND, and SKILL_NOT_MODEL_INVOCABLE. Registry validation of
provider catalogs, candidates, loaded definitions, and runtime
registrations throws SKILL_INVALID_DEFINITION, and a host-filesystem
SKILL.md read that fails for a reason other than absence throws
SKILL_READ_FAILED with the system error as cause. Messages are unchanged.
Refs #7869
MCP tool and resource calls now fail with structured identity instead of
plain Error text. An upstream isError result throws McpToolError with
MCP_TOOL_ERROR; task-required tools and invalid results use
MCP_UNSUPPORTED_TASK_EXECUTION and MCP_INVALID_RESULT. SDK and JSON-RPC
request failures map to MCP_CONNECTION_CLOSED, MCP_TIMEOUT,
MCP_SERVER_UNAVAILABLE, MCP_INVALID_RESULT, or MCP_REQUEST_FAILED, with
the JSON-RPC or SDK code in the message. Redaction replaces only the
message and keeps name and code.
The SDK reports an aborted request as REQUEST_TIMEOUT, so the bridge
rethrows caller cancellation and connection-generation closure as their
own reasons before classifying. McpLocalError now extends HarnessError
with closed codes for closure, deadlines, credentials, instruction size,
and registration conflicts. An out-of-scope resource server fails as
ToolArgsError because mcp-resources cannot depend on mcp-client.
Refs #7869
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
- 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.
`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
- 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
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
An expanded file now draws its lines once the reader approaches it, and a
jump to the last file settles at the end of the list after it draws.
Regenerates the config catalog line reference.
Status snapshots carry the base commit the host recorded with the head
(baseSha). ForgeService.diff passes it to the provider when the latest
status names the requested head, and forge-github starts the compare read
from it while its GraphQL read confirms the head; a stale head or another
base cancels and joins the early read.
The forge subsystem page documents ctx.forge.readReview, its thread
types, and the panel's changeRequestReview cache; the package READMEs
describe the GitHub thread mapping, the overlay and thread list, and the
new panel Config fields. An upgrade guide covers the unsupported
ForgeFailure code. The Web e2e overlays scripted threads, opens them from
the thread list, and sends a quoted thread through a replayed turn.