Commit Graph
18711 Commits
Author SHA1 Message Date
Yichen Jiang 884f7b9c41 fix(llm-pi-ai): expose the pi-ai wire-compat surface
pi-ai infers a request's shape from the provider id and baseURL, and for
an endpoint it does not recognize it answers as though it were OpenAI
itself. A hand-declared route is by construction such an endpoint, so a
model declaring reasoningEfforts sent its system prompt as the developer
role with no configuration able to say otherwise — a gateway rejecting
that role could not be connected at all. Writing the switch anyway
validated, persisted, and was then dropped, so the misconfiguration
looked applied.

Three drift gates classify all thirty upstream compat fields as offered
or withheld, keyed by `keyof` so a pi-ai upgrade fails the build until
the new field is classified. Twenty are offered: what a private URL
cannot imply. The rest stay withheld because pi-ai's installed catalog
sets them for a named vendor.

Protocol applicability is now per field rather than per block, so
supportsDeveloperRole reaches an openai-responses route and the
anthropic-messages switches reach theirs. A compat key no protocol
declares, or one a gate withholds, is refused where it is written.

Fixes #2646
Refs #1976
2026-08-18 11:24:33 +08:00
Yichen Jiang 950fcf9df6 Merge remote-tracking branch 'origin/master' into feat/web-settings-describe-mirror
# Conflicts:
#	packages/client/locale/tests/apply.client.spec.ts
#	packages/client/ui-permission-presets/src/client/index.ts
#	packages/client/ui-permission-presets/src/client/settings-store.ts
#	packages/client/ui-permission-presets/tests/permission-presets-row.client.spec.tsx
#	packages/client/ui-permission-presets/tests/settings-store.client.spec.ts
#	packages/client/ui-settings-general/src/client/index.ts
#	packages/client/ui-settings-models/src/client/index.ts
#	packages/client/ui-settings-models/src/client/store.ts
#	packages/client/ui-settings-models/tests/apply.client.spec.ts
#	packages/client/ui-settings-models/tests/components.client.spec.tsx
#	packages/client/ui-settings-models/tests/onboarding-dialog.client.spec.tsx
#	packages/client/ui-settings-models/tests/provider-form.client.spec.tsx
#	packages/client/ui-settings-models/tests/store.client.spec.ts
#	packages/client/ui-settings-models/tests/welcome-notice.client.spec.tsx
#	packages/client/ui-settings-plugins/tests/apply.client.spec.ts
#	packages/client/ui-settings/README.i18n.yaml
#	packages/client/ui-settings/README.md
#	packages/client/ui-settings/README.zh.md
#	packages/client/ui-settings/src/client/index.ts
#	packages/client/ui-settings/src/client/settings-scope.ts
#	packages/client/ui-settings/tests/plugin.client.spec.ts
#	packages/client/ui-settings/tests/settings-scope.client.spec.ts
#	packages/client/ui-theme/tests/apply.client.spec.ts
2026-08-18 11:23:25 +08:00
creatixchu 0b4a322003 fix(llm-pi-ai): bound request image payload by offloading oldest images
Every image in history is base64-inlined into every request, so a long
session's request body grows until a gateway request-size cap rejects it
with 413 and every retry resends the same oversized body, permanently
wedging the session. Each provider route now carries maxRequestImageBytes
(default 24MiB): when the accumulated base64 image payload exceeds it,
the oldest images are replaced by a fixed model-facing placeholder until
the request fits, so the newest images survive and the session keeps
completing requests. 413 and request-body-cap wording now classify as
INVALID_REQUEST instead of the generic PI_AI_ERROR.

Fixes #2644
2026-08-18 11:18:51 +08:00
Dudu-0223 20cd777753 Cover next-step report delivery in subagent runtime 2026-08-18 11:14:10 +08:00
Dudu-0223 d91df8cbd5 Deliver subagent reports at next step 2026-08-18 11:14:10 +08:00
creatixchu 609ee2facf Merge remote-tracking branch 'origin/master' into worktree/image-dimension-limit 2026-08-18 11:12:56 +08:00
Tianyi Cui 58e1aa8183 Merge pull request #2642 from deepseek-harness/fix/code-runtime-python-release-version
fix(code-runtime-python): match the rc.7 root version
2026-08-18 11:05:44 +08:00
Chinesezjc acc9359a53 Merge remote-tracking branch 'origin/master' into fix/locale-default-english
# Conflicts:
#	packages/client/ui-settings-models/tests/apply.client.spec.ts
#	packages/client/ui-settings-plugins/tests/apply.client.spec.ts
#	packages/client/ui-theme/tests/apply.client.spec.ts
2026-08-18 10:53:18 +08:00
Chinesezjc b940dca18d fix(code-runtime-python): match the rc.7 root version
The 0.1.0-rc.7 release commit bumped every release member except
code-runtime-python, which had landed on master between rc.6 and that
release. check-workspace-constraints requires each non-private workspace
package to carry the root version, so the constraints gate inside
`node 24 / static` fails for every pull request built against master.
2026-08-18 10:10:30 +08:00
pku-xht c7dce0e784 Merge final Claude review evidence into Codex layer 2026-08-18 05:45:09 +08:00
pku-xht 3621716704 test(subagent): type Claude failure cause assertions 2026-08-18 05:37:14 +08:00
pku-xht dfa1ff84ac Merge final Claude failure facts into Codex layer 2026-08-18 05:33:13 +08:00
pku-xht 9b83852dcc docs(subagent): align named instance evidence notes 2026-08-18 05:23:40 +08:00
pku-xht 4c6ff93535 fix(subagent): preserve Claude failure provenance 2026-08-18 05:17:47 +08:00
pku-xht f0b2d7c762 refactor(subagent): avoid duplicate process diagnostics 2026-08-18 05:01:37 +08:00
pku-xht 75cece4b92 docs(subagent): finalize named instance guidance 2026-08-18 04:48:07 +08:00
pku-xht 8ff5b7d54f Merge PR1 layer-scoped guidance fix 2026-08-18 04:45:27 +08:00
pku-xht 7dd6436d52 docs(subagent): scope named guidance to Claude layer 2026-08-18 04:44:42 +08:00
pku-xht cf16ee41bf test(subagent): narrow named instance evidence 2026-08-18 04:34:24 +08:00
pku-xht a89f72841a Merge PR1 named-instance review fixes 2026-08-18 04:30:30 +08:00
pku-xht cde7ffe6e3 fix(subagent): align named instance guidance and evidence 2026-08-18 04:29:48 +08:00
pku-xht 1feb33a0ec Merge PR1 named-instance documentation fix 2026-08-18 04:13:46 +08:00
pku-xht b795e90329 Merge Claude failure facts into Codex layer 2026-08-18 04:13:32 +08:00
pku-xht b85cb981ef docs(subagent): allow multiple product provider instances 2026-08-18 04:13:14 +08:00
pku-xht a5ea2c46a7 test(acp): isolate product diagnostic header pin 2026-08-18 04:08:58 +08:00
pku-xht efd2999aec test(subagent): correlate Claude process failure facts 2026-08-18 04:03:56 +08:00
pku-xht 6bae03dd69 fix(subagent): preserve Codex failure facts 2026-08-18 03:40:11 +08:00
pku-xht fded16f688 refactor(subagent): use parent abort as startup authority 2026-08-18 03:33:58 +08:00
pku-xht 77211b1c26 fix(subagent): expose startup cleanup failure facts 2026-08-18 03:06:34 +08:00
pku-xht 62e3788fed Merge PR1 named Claude instance fixes 2026-08-18 02:57:10 +08:00
pku-xht db52686a96 feat(subagent): support named Codex provider instances 2026-08-18 02:56:44 +08:00
pku-xht a3a9f86d89 refactor(subagent): derive Claude exit projections 2026-08-18 02:54:20 +08:00
pku-xht 044f65e46b fix(subagent): tighten named Claude instance evidence 2026-08-18 02:50:42 +08:00
pku-xht 605b399a8f refactor(subagent): simplify Claude failure fact ownership 2026-08-18 02:45:42 +08:00
imccyu dedb730a68 Merge pull request #2592 from deepseek-harness/worktree-reducepkg2
refactor(client): separate shell and dynamic package boundaries
2026-08-18 02:17:04 +08:00
imccyu d9ea5da2ff fix(ci): satisfy client script quality gates 2026-08-18 02:07:09 +08:00
imccyu 3c2d2d3cc9 test(web): hold the theme bundle during boot 2026-08-18 01:50:23 +08:00
pku-xht cd4f8b7f46 fix(subagent): preserve Claude Code failure facts 2026-08-18 01:46:30 +08:00
imccyu e0e529547b docs(client): refresh module catalog source link 2026-08-18 01:34:56 +08:00
imccyu d419b722bb test(web): derive assembled graph from bundle config 2026-08-18 01:34:55 +08:00
imccyu c60f132b9c refactor(client): close module loader bootstrap loop 2026-08-18 01:34:55 +08:00
imccyu 8088d2a6a0 fix(client): harden bootstrap invariants 2026-08-18 01:34:55 +08:00
imccyu 1c94446a56 fix(client): preserve dependency boundary cleanup 2026-08-18 01:34:54 +08:00
imccyu 885df835a1 docs: refresh module dependency graph 2026-08-18 01:34:54 +08:00
imccyu 4ad6e28663 fix(client): consume bootstrap handoff queue 2026-08-18 01:34:54 +08:00
imccyu 85bfc7bb22 chore(ci): refresh checks after stack link 2026-08-18 01:34:54 +08:00
imccyu cf603b847f fix(client): complete dynamic module bootstrap 2026-08-18 01:34:53 +08:00
imccyu aa03eff500 build(client): enforce client package boundaries 2026-08-18 01:34:53 +08:00
imccyu ed35d11dde fix: keep test runtime declarations on public types 2026-08-18 01:34:25 +08:00
imccyu 23c11e6ec8 test: stabilize Cordis replay and Windows paths 2026-08-18 01:34:25 +08:00