Turtle
3e3aa697ca
fix(ptc): fall back safely when program image substitution fails
...
Contain any substitution failure, including deep values, in the ordered
commit lane, state the all-or-nothing contract and text delivery in the
docs, and describe the raw-block fallback in the MCP declaration.
Refs #8468
2026-11-14 17:14:41 +08:00
Turtle
d74405a2c8
fix(ptc): return MCP screenshots to programs as Image values
...
Admitted MCP image blocks now carry their attachment reference. PTC
turns value entries that reference finalized result images into
program Images, as native CUA screenshots are, so inspect shows the
picture instead of base64 and the picture is not attached twice.
Refs #8468
2026-11-14 16:57:28 +08:00
turtle1999
500dcf94be
feat(ptc): inspect tool results with their rendered text
2026-11-13 17:21:11 +08:00
_Kerman
c1e490b7b5
fix(ptc): reject unsupported providers without native fallback
2026-11-12 17:46:53 +08:00
_Kerman
656533bde1
refactor(ptc)!: remove all Python PTC support
2026-11-12 17:09:15 +08:00
sjw1231
efc62d7b06
fix(bash,pwsh,fs,ptc): reject unadvertised arguments before pairing and approval
...
Without a sandboxing backend, a lone sandbox_permissions or justification
failed the pairing check and asked the model to add the other field, and
bash/pwsh checked a disabled run_in_background only after an escalation
approval. Reject unadvertised escalation fields and a disabled background
request during argument validation in bash, pwsh, write/edit/apply_patch,
and run_code, and name both escalation fields in the message. Update the
upgrade guide to identify rc.2 shell records by message.
Refs #7869
2026-11-12 15:29:38 +08:00
sjw1231
75f5b13132
Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887
...
# Conflicts:
# docs/persistence-schema.json
2026-11-11 17:06:13 +08:00
imccyu
5e7206f6c6
refactor(exports): retire obsolete subpaths with compatible brand APIs ( #8215 )
...
* refactor(exports): consolidate type entries and remove obsolete subpaths
* fix(exports): preserve constructors while retiring brand subpaths
* fix(exports): retain guide relocation after parent squash
2026-11-11 08:39:14 +00:00
sjw1231
32bbcb9997
Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887
...
# Conflicts:
# docs/module-graph.md
# docs/module-graph.zh.md
# packages/core/tool-executor-ptc/README.i18n.yaml
# packages/core/tool-executor-ptc/src/errors.ts
# packages/core/tool-executor-ptc/src/ptc.ts
# packages/ptc-runtime/ptc-runtime-node/src/bindings.ts
# packages/ptc-runtime/ptc-runtime-node/src/execution.ts
# packages/ptc-runtime/ptc-runtime-node/src/index.ts
# packages/ptc-runtime/ptc-runtime/package.json
# packages/ptc-runtime/ptc-runtime/tsconfig.json
# packages/util/atomic-write/package.json
# pnpm-lock.yaml
2026-11-11 11:48:52 +08:00
_Kerman
f775b74795
fix(ptc): preserve line breaks before sandbox diagnostics
2026-11-10 17:02:36 +08:00
_Kerman
5fd443618f
fix(ptc): preserve raw text and cross-realm image inspection
2026-11-10 16:07:14 +08:00
_Kerman
86984d8358
Merge branch 'feat/cua-run-code-standard' into xtr/ptc-inspect-output
2026-11-10 14:24:26 +08:00
_Kerman
dad69a4636
docs(ptc): mark tool-specific output type adaptation
2026-11-10 12:17:50 +08:00
_Kerman
93ecacdb42
refactor(ptc): simplify inspect output instructions
2026-11-10 12:07:25 +08:00
_Kerman
b877eb6118
fix(ptc): render inspected values as lossless JSON
2026-11-09 23:45:27 +08:00
turtle1999
26427a26e1
refactor(ptc): initialize each environment through a registered hook
2026-11-09 22:19:35 +08:00
_Kerman
5bcee95efe
fix(ptc): preserve automatic images for unadapted tools
2026-11-09 21:46:06 +08:00
_Kerman
fc251c7b4a
fix(ptc): explain image omissions and align program guidance
2026-11-09 21:42:30 +08:00
_Kerman
69528e4e88
fix(ptc): preserve outer failure replacements when projecting images
2026-11-09 20:04:17 +08:00
_Kerman
069ba921dc
docs(ptc): mark tool-owned image adaptation follow-up
2026-11-09 20:03:58 +08:00
_Kerman
9f8fd9d800
test(ptc): cover image output policies and explicit recovery
2026-11-09 19:17:05 +08:00
_Kerman
a2ea3970fd
refactor(ptc): return ordered text and image output
2026-11-09 17:44:12 +08:00
_Kerman
4f6ccd772d
docs(ptc): shorten explicit output guidance
2026-11-09 17:19:55 +08:00
_Kerman
1fed265b3b
fix(ptc): bound binary inspection and preserve failure output
2026-11-09 17:19:48 +08:00
sjw1231
688e7243e2
fix(ptc,extensions): keep distinct failures that settle after cancellation
...
run_code and host inspect queries no longer replace a runtime or
provider rejection with the cancellation reason: the cancellation itself
passes through for the registry to classify as ABORTED, a HarnessError
keeps its code, and any other rejection is still wrapped. Dynamic plugin
tools apply the same rule, survive Proxy values whose traps throw, and
read clone failure messages with toolErrorMessage. tool-executor-ptc
exports CodeRunErrorCode.
Refs #7869
2026-11-09 16:30:37 +08:00
_Kerman
b98e3d070b
feat(ptc): expose attachment IDs on program images
2026-11-09 15:58:33 +08:00
_Kerman
3dbe1c126f
refactor(ptc): simplify image references and CUA bridge
2026-11-09 15:57:42 +08:00
turtle1999
b9966a12a6
feat(cua): expose persistent code tool outside PTC mode
2026-11-09 15:53:22 +08:00
sjw1231
6b3023d888
feat(ptc): give run_code and PTC runtime failures error codes
...
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
2026-11-09 15:14:31 +08:00
_Kerman
724e56b286
feat(ptc): unify explicit text and image inspection
2026-11-09 15:06:09 +08:00
_Kerman
c1783e9dff
feat(ptc): select program output with Harness.inspect
2026-11-09 12:00:07 +08:00
_Kerman
9314e2de16
Merge remote-tracking branch 'origin/master' into xtr/ptc-timeout-step-1
2026-11-03 20:45:34 +08:00
_Kerman
31f783bb90
fix(ptc): word the call-limit diagnostic in plain language
...
Pass the per-minute budget as a third value and describe it as
"per minute of its timeout" instead of naming the configuration field.
2026-11-03 20:22:30 +08:00
_Kerman
cea324f719
fix(ptc): report the per-minute call budget with the limit
...
The model-visible limit diagnostic only stated the timeout-derived total,
so the number could not be traced back to maxSubCallsPerMinute.
2026-11-03 20:17:01 +08:00
_Kerman
4f790c874d
fix(ptc): address call allowance review feedback
2026-11-03 12:45:28 +08:00
_Kerman
21aa215092
fix(ptc): terminate programs that exhaust the tool call allowance
2026-11-03 12:19:55 +08:00
_Kerman
9ac3ef2ca7
fix(ptc): derive tool call allowance from runtime timeout
2026-11-03 12:06:58 +08:00
_Kerman
d3e3a2bce9
fix(ptc): cap nested tool calls per run_code invocation
2026-11-03 11:49:38 +08:00
_Kerman
e3c9703eca
refactor(tool-executor-ptc): limit reset coordination to owned resources
2026-10-30 20:49:13 +08:00
_Kerman
16d1566313
refactor(tool-executor-ptc): inline host environment reset
2026-10-30 20:27:10 +08:00
_Kerman
718f28ee9a
refactor(ptc): simplify model-visible state and recovery messages
2026-10-30 11:30:37 +08:00
_Kerman
afde188c6f
fix(tool-executor-ptc): report blocked resets and queue notices before reuse
2026-10-29 21:58:51 +08:00
_Kerman
33492246a5
feat(tool-executor-ptc): add host reset for retained environments
2026-10-29 21:22:26 +08:00
_Kerman
9e979a71e6
fix(ptc): align caller cancellation with native tools
2026-10-26 15:43:05 +08:00
_Kerman
dc3754d252
Merge remote-tracking branch 'origin/master' into xtr/ptc-vm-script
...
# Conflicts:
# docs/module-graph.md
# docs/module-graph.zh.md
# packages/ptc-runtime/ptc-runtime-node/package.json
2026-10-23 17:09:31 +08:00
Yichen Jiang
207b30d299
Merge remote-tracking branch 'origin/master' into worktree/dynamic-tool-activation-pr-64796e
...
# 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/core/agent-loop/src/agent.ts
# packages/core/agent-loop/src/tool-calls.ts
# packages/core/agent-loop/tests/tool-updates.spec.ts
# packages/core/system-prompt/README.i18n.yaml
# packages/core/system-prompt/README.md
# packages/core/system-prompt/README.zh.md
# packages/core/tool-executor-ptc/src/ptc.ts
# packages/core/tool-executor-ptc/tests/ptc.spec.ts
# packages/core/tools/README.i18n.yaml
# packages/core/tools/README.md
# packages/core/tools/README.zh.md
# packages/core/tools/src/index.ts
# packages/extensions/tool-cordis/src/api-catalog.ts
# packages/plan/plan-mode/tests/plan-mode.spec.ts
# snapshots/session/cordis-inspect-jsdoc/session.v4.jsonl
2026-10-21 23:32:15 +08:00
_Kerman
7c86126642
Merge latest master into xtr/ptc-vm-script
2026-10-21 18:25:41 +08:00
_Kerman
6c1ae74d16
refactor(ptc): separate client declarations from host policy types
2026-10-21 12:13:50 +08:00
_Kerman
fa8e928e4f
fix(tools): require PTC runtime before activating executor
2026-10-19 17:18:08 +08:00
_Kerman
e9784c073b
fix(tools): settle executor calls after unload and validate configuration
2026-10-19 16:32:29 +08:00