@sparkelf/dsh-plus 0.2.9-alpha.79 → 0.2.9-alpha.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/package.json +35 -56
  2. package/patches/approval-allow-policy.patch +3 -3
  3. package/patches/atomic-write-zombie-lock-holder.patch +1 -1
  4. package/patches/bootstrap-exempt-names.patch +6 -6
  5. package/patches/browser-auth-mode.patch +3 -3
  6. package/patches/composer-popover-boundaries.patch +33 -69
  7. package/patches/diagram-preview.patch +3 -3
  8. package/patches/image-offload-hoist-replay.patch +6 -6
  9. package/patches/input-trigger-source-label.patch +4 -4
  10. package/patches/legacy-code-preset.patch +5 -5
  11. package/patches/llm-pi-ai-transport-truncation.patch +4 -4
  12. package/patches/mobile-journal-generation.patch +2 -2
  13. package/patches/office-preview-stable-load.patch +1 -1
  14. package/patches/officecli-deliverables.patch +2 -2
  15. package/patches/ptc-mcp-schema-types.patch +3 -3
  16. package/patches/resource-ref-chip-mentions.patch +34 -32
  17. package/patches/responses-reasoning-status.patch +42 -41
  18. package/patches/session-controller-image-downgrade-and-tool-visibility.patch +16 -14
  19. package/patches/session-envelope-ignorable.patch +57 -28
  20. package/patches/session-export-chinese.patch +11 -11
  21. package/patches/session-format-legacy-restart.patch +1 -1
  22. package/patches/sidebar-right-tab-menu.patch +10 -8
  23. package/patches/state-dot-brand-blue.patch +2 -2
  24. package/patches/ui-schedule-plaza-tab.patch +1 -1
  25. package/patches/ui-settings-compact-phone.patch +2 -9
  26. package/patches/ui-sidebar-right-global-panel.patch +3 -3
  27. package/patches/visibility-filters.patch +10 -10
  28. package/patches/web-runtime-compat.patch +1 -1
  29. package/patches/workspace-hide-group-rooms.patch +2 -2
  30. package/patches/workspace-storage-restore.patch +5 -5
  31. package/patches/wsl-native-open.patch +8 -8
  32. package/patches/session-log-trajectory-toolbar.patch +0 -352
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sparkelf/dsh-plus",
3
3
  "description": "DeepSeek Harness Plus official-base Web distribution profile and ranged compatibility patchset",
4
- "version": "0.2.9-alpha.79",
4
+ "version": "0.2.9-alpha.81",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -43,10 +43,10 @@
43
43
  "dshPlus": {
44
44
  "formatVersion": 1,
45
45
  "compatibility": {
46
- "dsh": ">=0.2.2-rc.1"
46
+ "dsh": ">=0.2.2-rc.2"
47
47
  },
48
48
  "runtime": {
49
- "version": "0.2.2-rc.1"
49
+ "version": "0.2.2-rc.2"
50
50
  },
51
51
  "omission": {
52
52
  "package": "@sparkelf/dsh-omitted",
@@ -55,7 +55,6 @@
55
55
  "profile": {
56
56
  "bundles": [
57
57
  "@deepseek-ai/dsh-base",
58
- "@deepseek-ai/dsh-experimental-agent-team-profile",
59
58
  "@deepseek-ai/dsh-web-app",
60
59
  "@deepseek-ai/dsh-experimental-auto-review",
61
60
  "@sparkelf/dsh-mineru",
@@ -87,50 +86,49 @@
87
86
  "@sparkelf/dsh-office-viewer-fonts": "0.1.7",
88
87
  "dsh-video-preview": "0.1.4",
89
88
  "dsh-right-bg-anim": "1.1.0",
90
- "@deepseek-ai/dsh-experimental-agent-team-profile": "0.2.2-rc.1",
91
89
  "@sparkelf/dsh-mobile-bridge": "0.2.18",
92
90
  "@sparkelf/dsh-quant": "0.91.0-sparkelf.13",
93
91
  "@sparkelf/dsh-task-bus": "0.2.0",
94
- "@deepseek-ai/dsh-experimental-auto-review": "0.2.2-rc.1",
92
+ "@deepseek-ai/dsh-experimental-auto-review": "0.2.2-rc.2",
95
93
  "@sparkelf/dsh-genui": "0.15.0-sparkelf.3",
96
- "@deepseek-ai/dsh-anonymous-user-id": "0.2.2-rc.1",
97
- "@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
98
- "@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
99
- "@deepseek-ai/dsh-deepseek-account": "0.2.2-rc.1",
100
- "@deepseek-ai/dsh-fs": "0.2.2-rc.1",
101
- "@deepseek-ai/dsh-jobs": "0.2.2-rc.1",
102
- "@deepseek-ai/dsh-llm-deepseek": "0.2.2-rc.1",
103
- "@deepseek-ai/dsh-ptc-runtime": "0.2.2-rc.1",
104
- "@deepseek-ai/dsh-sandbox": "0.2.2-rc.1",
105
- "@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
106
- "@deepseek-ai/dsh-session-telemetry": "0.2.2-rc.1",
107
- "@deepseek-ai/dsh-session-title-llm": "0.2.2-rc.1",
108
- "@deepseek-ai/dsh-shell": "0.2.2-rc.1",
109
- "@deepseek-ai/dsh-spill": "0.2.2-rc.1",
110
- "@deepseek-ai/dsh-workflow": "0.2.2-rc.1",
94
+ "@deepseek-ai/dsh-anonymous-user-id": "0.2.2-rc.2",
95
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.2",
96
+ "@deepseek-ai/dsh-compaction": "0.2.2-rc.2",
97
+ "@deepseek-ai/dsh-deepseek-account": "0.2.2-rc.2",
98
+ "@deepseek-ai/dsh-fs": "0.2.2-rc.2",
99
+ "@deepseek-ai/dsh-jobs": "0.2.2-rc.2",
100
+ "@deepseek-ai/dsh-llm-deepseek": "0.2.2-rc.2",
101
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.2-rc.2",
102
+ "@deepseek-ai/dsh-sandbox": "0.2.2-rc.2",
103
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-rc.2",
104
+ "@deepseek-ai/dsh-session-telemetry": "0.2.2-rc.2",
105
+ "@deepseek-ai/dsh-session-title-llm": "0.2.2-rc.2",
106
+ "@deepseek-ai/dsh-shell": "0.2.2-rc.2",
107
+ "@deepseek-ai/dsh-spill": "0.2.2-rc.2",
108
+ "@deepseek-ai/dsh-workflow": "0.2.2-rc.2",
111
109
  "@sparkelf/dsh-artifact-app": "0.1.1",
112
110
  "@sparkelf/dsh-dataops-managed": "0.3.51",
113
111
  "@sparkelf/dsh-sql-workbench": "0.6.0",
114
112
  "@sparkelf/dsh-query-result-analysis": "0.1.4",
115
- "@sparkelf/dsh-knowledge-base": "0.1.35",
113
+ "@sparkelf/dsh-knowledge-base": "0.4.2",
116
114
  "@sparkelf/dsh-credential-manager": "0.1.3",
117
115
  "@sparkelf/dsh-group-chat": "0.5.11",
118
- "@sparkelf/dsh-kb-citation": "0.1.5",
116
+ "@sparkelf/dsh-kb-citation": "0.1.6",
119
117
  "@sparkelf/dsh-dataops-account": "0.2.0",
120
118
  "@sparkelf/dsh-ocr": "0.1.0",
121
119
  "@sparkelf/dsh-client-ui-skill-center": "0.2.2-alpha.2.5",
122
120
  "@deepseek-ai/cordis-plugin-group": "1.0.6-alpha.2",
123
- "@deepseek-ai/dsh-home-paths": "0.2.2-rc.1",
124
- "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.1",
125
- "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
126
- "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
127
- "@deepseek-ai/dsh-scope": "0.2.2-rc.1",
128
- "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
129
- "@deepseek-ai/dsh-bash-local": "0.2.2-rc.1",
130
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
131
- "@deepseek-ai/dsh-sdk-protocol": "0.2.2-rc.1",
132
- "@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.1",
133
- "@deepseek-ai/dsh-tool-session-query": "0.2.2-rc.1"
121
+ "@deepseek-ai/dsh-home-paths": "0.2.2-rc.2",
122
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.2",
123
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.2",
124
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.2",
125
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.2",
126
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.2",
127
+ "@deepseek-ai/dsh-bash-local": "0.2.2-rc.2",
128
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.2",
129
+ "@deepseek-ai/dsh-sdk-protocol": "0.2.2-rc.2",
130
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.2",
131
+ "@deepseek-ai/dsh-tool-session-query": "0.2.2-rc.2"
134
132
  },
135
133
  "allowBuilds": {
136
134
  "@deepseek-ai/dsh-subprocess-local": true,
@@ -145,7 +143,7 @@
145
143
  }
146
144
  },
147
145
  "sourceBase": {
148
- "revision": "66491b05e3f05ad35bcdd4f6cd7ed26041d9e3db"
146
+ "revision": "eb89e050beb5460973a016f5a849a2e6cc5864b8"
149
147
  },
150
148
  "patchSet": {
151
149
  "formatVersion": 1,
@@ -476,23 +474,6 @@
476
474
  "file": "./patches/session-format-legacy-restart.patch",
477
475
  "retireWhen": "官方 session-format 默认接受已发布的 interrupted-turn restart 模式后退役"
478
476
  },
479
- {
480
- "id": "session-log-trajectory-toolbar",
481
- "dsh": ">=0.2.2-alpha.2",
482
- "target": {
483
- "kind": "dsh-source",
484
- "packages": [
485
- "@deepseek-ai/dsh-client-ui-trajectory",
486
- "@deepseek-ai/dsh-session-log-export"
487
- ],
488
- "paths": [
489
- "packages/client/ui-trajectory/",
490
- "packages/session-query/session-log-export/"
491
- ]
492
- },
493
- "file": "./patches/session-log-trajectory-toolbar.patch",
494
- "retireWhen": "官方把 Session 导出入口放进 Trajectory 工具栏后退役"
495
- },
496
477
  {
497
478
  "id": "sidebar-right-tab-menu",
498
479
  "dsh": ">=0.2.2-alpha.2",
@@ -753,7 +734,6 @@
753
734
  "profile": "dataops-web",
754
735
  "bundles": [
755
736
  "@deepseek-ai/dsh-base",
756
- "@deepseek-ai/dsh-experimental-agent-team-profile",
757
737
  "@deepseek-ai/dsh-web-app",
758
738
  "@deepseek-ai/dsh-experimental-auto-review",
759
739
  "@sparkelf/dsh-mineru",
@@ -789,7 +769,6 @@
789
769
  "dsh-better-sidebar",
790
770
  "@sparkelf/dsh-office-viewer-fonts",
791
771
  "dsh-right-bg-anim",
792
- "@deepseek-ai/dsh-experimental-agent-team-profile",
793
772
  "@sparkelf/dsh-task-bus",
794
773
  "@deepseek-ai/dsh-experimental-auto-review",
795
774
  "@sparkelf/dsh-genui",
@@ -832,8 +811,8 @@
832
811
  }
833
812
  },
834
813
  "dependencies": {
835
- "@deepseek-ai/dsh-computer-use": "0.2.2-rc.1",
836
- "@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp": "0.2.2-rc.1",
814
+ "@deepseek-ai/dsh-computer-use": "0.2.2-rc.2",
815
+ "@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp": "0.2.2-rc.2",
837
816
  "@deepseek-ai/dsh-web-search-exa": "0.1.6-alpha.1",
838
817
  "@sparkelf/dsh-image-hoist": ">=0.1.3",
839
818
  "@sparkelf/dsh-plugin-backup": "workspace:>=0.2.1-alpha.1",
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/bundle/base/cordis.patch.yml b/packages/bundle/base/cordis.patch.yml
2
- index 863d194bf5..2d1a7d4c40 100644
2
+ index 18286618..a70a0aec 100644
3
3
  --- a/packages/bundle/base/cordis.patch.yml
4
4
  +++ b/packages/bundle/base/cordis.patch.yml
5
5
  @@ -259,7 +259,7 @@
@@ -21,7 +21,7 @@ index 863d194bf5..2d1a7d4c40 100644
21
21
  - id: shell-env
22
22
  name: '@deepseek-ai/dsh-shell-env'
23
23
  diff --git a/packages/interaction/permission-presets/src/index.ts b/packages/interaction/permission-presets/src/index.ts
24
- index b071d0297a..628f8f42ea 100644
24
+ index b071d029..628f8f42 100644
25
25
  --- a/packages/interaction/permission-presets/src/index.ts
26
26
  +++ b/packages/interaction/permission-presets/src/index.ts
27
27
  @@ -111,7 +111,7 @@ const permissionStateSchema: zod.ZodType<PermissionProjectionState> = zod.object
@@ -34,7 +34,7 @@ index b071d0297a..628f8f42ea 100644
34
34
  }).strict()
35
35
 
36
36
  diff --git a/packages/interaction/user-approval/src/index.ts b/packages/interaction/user-approval/src/index.ts
37
- index df48aca514..82c3f39f19 100644
37
+ index df48aca5..82c3f39f 100644
38
38
  --- a/packages/interaction/user-approval/src/index.ts
39
39
  +++ b/packages/interaction/user-approval/src/index.ts
40
40
  @@ -64,20 +64,27 @@ const OUTCOMES: readonly ApprovalOutcome[] = ['allowed-once', 'rejected', 'cance
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/util/atomic-write/src/index.ts b/packages/util/atomic-write/src/index.ts
2
- index 60e2c67b8c..cfe7c7824f 100644
2
+ index 60e2c67b..cfe7c782 100644
3
3
  --- a/packages/util/atomic-write/src/index.ts
4
4
  +++ b/packages/util/atomic-write/src/index.ts
5
5
  @@ -12,6 +12,7 @@
@@ -1,8 +1,8 @@
1
1
  diff --git a/packages/boot/app-boot/src/index.ts b/packages/boot/app-boot/src/index.ts
2
- index 22332c3..ae00ae0 100644
2
+ index 40ff3068..e0e6f7c4 100644
3
3
  --- a/packages/boot/app-boot/src/index.ts
4
4
  +++ b/packages/boot/app-boot/src/index.ts
5
- @@ -156,6 +156,19 @@ const BOOTSTRAP_NAMES = new Set([
5
+ @@ -157,6 +157,19 @@ const BOOTSTRAP_NAMES = new Set([
6
6
  /** Name prefixes no discovered file may set. */
7
7
  const BOOTSTRAP_PREFIXES = ['DSH_', 'XDG_', 'DYLD_', 'BASH_FUNC_']
8
8
 
@@ -19,10 +19,10 @@ index 22332c3..ae00ae0 100644
19
19
  + */
20
20
  +const BOOTSTRAP_EXEMPT_NAMES = new Set(['DSH_OFFICE_FONT_DIR'])
21
21
  +
22
- /**
23
- * The bootstrap names the Harness-home `.env` alone may set. A proxy chooses the route every
24
- * request takes, so the invoking directory's file — which arrives with a clone — keeps refusing
25
- @@ -174,6 +187,7 @@ const HOME_LAYER_PROXY_NAMES = new Set(['HTTP_PROXY', 'HTTPS_PROXY', 'ALL_PROXY'
22
+ /** Proxy names the Harness-home `.env` may set in any letter case: proxy clients read both spellings. */
23
+ const HOME_LAYER_PROXY_NAMES = new Set(['HTTP_PROXY', 'HTTPS_PROXY', 'ALL_PROXY', 'NO_PROXY'])
24
+
25
+ @@ -190,6 +203,7 @@ function isHomeLayerRouteName(name: string): boolean {
26
26
  */
27
27
  function isBootstrapOnly(name: string): boolean {
28
28
  const upper = name.toUpperCase()
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/client/connection/src/browser-auth.ts b/packages/client/connection/src/browser-auth.ts
2
- index 5c8594df6f..e5f5fa9f44 100644
2
+ index 5c8594df..e5f5fa9f 100644
3
3
  --- a/packages/client/connection/src/browser-auth.ts
4
4
  +++ b/packages/client/connection/src/browser-auth.ts
5
5
  @@ -198,12 +198,40 @@ async function initializeSecret(credentials: CredentialProvider): Promise<Buffer
@@ -45,7 +45,7 @@ index 5c8594df6f..e5f5fa9f44 100644
45
45
  private readonly maxAgeMilliseconds: number
46
46
 
47
47
  diff --git a/packages/client/connection/src/index.ts b/packages/client/connection/src/index.ts
48
- index d563cd40e8..0c0d2279f8 100644
48
+ index d563cd40..0c0d2279 100644
49
49
  --- a/packages/client/connection/src/index.ts
50
50
  +++ b/packages/client/connection/src/index.ts
51
51
  @@ -10,7 +10,7 @@ import { API_PATH } from './api-path.ts'
@@ -98,7 +98,7 @@ index d563cd40e8..0c0d2279f8 100644
98
98
  ctx.inject(['webServer'], (webCtx) => {
99
99
  assertImageBodyCapacity(webCtx, maxRequestBodyBytes)
100
100
  diff --git a/packages/client/connection/src/rpc-host.ts b/packages/client/connection/src/rpc-host.ts
101
- index 88e7b48baa..43a3feb74c 100644
101
+ index 88e7b48b..43a3feb7 100644
102
102
  --- a/packages/client/connection/src/rpc-host.ts
103
103
  +++ b/packages/client/connection/src/rpc-host.ts
104
104
  @@ -13,7 +13,7 @@ import { clientRequestSchema } from './rpc-schema.ts'
@@ -1,5 +1,5 @@
1
1
  diff --git a/apps/web/tests/access-confirmation.e2e.ts b/apps/web/tests/access-confirmation.e2e.ts
2
- index f97978d3..edab518b 100644
2
+ index bb9b3d20..450a69d2 100644
3
3
  --- a/apps/web/tests/access-confirmation.e2e.ts
4
4
  +++ b/apps/web/tests/access-confirmation.e2e.ts
5
5
  @@ -151,6 +151,12 @@ describe('web e2e: experimental Auto and Full access confirmation', () => {
@@ -16,10 +16,10 @@ index f97978d3..edab518b 100644
16
16
  const dialog = page.getByRole('dialog', { name: '确认启用完全权限?' })
17
17
  await dialog.waitFor({ timeout: 10_000 })
18
18
  diff --git a/apps/web/tests/default-model.e2e.ts b/apps/web/tests/default-model.e2e.ts
19
- index 03a22e3c..d9cd04b8 100644
19
+ index afd89b3c..5a568f38 100644
20
20
  --- a/apps/web/tests/default-model.e2e.ts
21
21
  +++ b/apps/web/tests/default-model.e2e.ts
22
- @@ -481,6 +481,13 @@ describe('web e2e: the composer model switch is the default for later sessions',
22
+ @@ -482,6 +482,13 @@ describe('web e2e: the composer model switch is the default for later sessions',
23
23
  await trigger.waitFor({ timeout: 15_000 })
24
24
  expect(await trigger.evaluate(element => getComputedStyle(element).fontWeight)).toBe('400')
25
25
  await trigger.click()
@@ -60,73 +60,37 @@ index 23e71c9c..50e1d3a9 100644
60
60
 
61
61
  /** Subscribe to the main key without subscribing the column frame to each panel id. */
62
62
  diff --git a/packages/client/ui-model-selection/src/client/ModelSelect.tsx b/packages/client/ui-model-selection/src/client/ModelSelect.tsx
63
- index ecc984ca..ab32c21e 100644
63
+ index 3eea3e37..df98d1a4 100644
64
64
  --- a/packages/client/ui-model-selection/src/client/ModelSelect.tsx
65
65
  +++ b/packages/client/ui-model-selection/src/client/ModelSelect.tsx
66
- @@ -98,6 +98,10 @@ export function ModelSelect(
67
- gap: 8,
68
- margin: 12,
69
- layoutKey: pane,
70
- + // The composer's center column, when this trigger sits in one, is narrower than the viewport;
71
- + // without it the card could spill under the neighbouring panes.
72
- + boundary: () => triggerRef.current?.closest<HTMLElement>('[data-dsh-center-col]')
73
- + ?.getBoundingClientRect() ?? null,
74
- })
66
+ @@ -81,11 +81,19 @@ export function ModelSelect(
67
+ const lastActionRef = useRef<'load' | 'select'>('load')
68
+ const [toast, setToast] = useState<{ seq: number; text: string } | null>(null)
69
+ const toastSeq = useRef(0)
70
+ + // The composer's center column is narrower than the viewport, so the card's
71
+ + // viewport-derived width limit is clamped to the column while it is open.
72
+ + const [columnWidth, setColumnWidth] = useState<number | null>(null)
73
+ const rootRef = useRef<HTMLDivElement | null>(null)
74
+ const triggerRef = useRef<HTMLButtonElement | null>(null)
75
+ const searchRef = useRef<HTMLInputElement | null>(null)
76
+ const menuRef = useRef<HTMLDivElement | null>(null)
77
+ const groupsRef = useRef<HTMLDivElement | null>(null)
78
+ + useLayoutEffect(() => {
79
+ + if (!open) return
80
+ + const column = triggerRef.current?.closest<HTMLElement>('[data-dsh-center-col]')
81
+ + setColumnWidth(column?.getBoundingClientRect().width ?? null)
82
+ + }, [open])
75
83
  const itemRefs = useRef<(HTMLButtonElement | null)[]>([])
76
84
  const id = useId()
77
- diff --git a/packages/client/ui-primitives/src/useAnchoredPosition.ts b/packages/client/ui-primitives/src/useAnchoredPosition.ts
78
- index 61a891e5..617bb643 100644
79
- --- a/packages/client/ui-primitives/src/useAnchoredPosition.ts
80
- +++ b/packages/client/ui-primitives/src/useAnchoredPosition.ts
81
- @@ -26,6 +26,15 @@ export interface AnchoredPositionOptions {
82
- layoutKey?: string | number
83
- /** Minimum panel width follows the anchor, bounded by the visible viewport. */
84
- minWidthFromAnchor?: boolean
85
- + /**
86
- + * Region the panel must stay inside, in viewport coordinates.
87
- + *
88
- + * A panel portaled to the body is constrained by the visible viewport by default, which is
89
- + * wider than the column an anchored control may live in (the composer's center column, for
90
- + * one). Supplying the region narrows both the size limits and the horizontal clamp, so the
91
- + * panel cannot spill outside the column it belongs to. Absent keeps the viewport behaviour.
92
- + */
93
- + boundary?: () => DOMRect | null
94
- }
95
-
96
- /**
97
- @@ -37,7 +46,7 @@ export interface AnchoredPositionOptions {
98
- */
99
- export function useAnchoredPosition(options: AnchoredPositionOptions): CSSProperties | null {
100
- const { open, anchorRef, panelRef, side = 'bottom', align = 'start', gap, margin,
101
- - getAnchorRect, layoutKey, minWidthFromAnchor = false, frameClearance = true } = options
102
- + getAnchorRect, layoutKey, minWidthFromAnchor = false, frameClearance = true, boundary } = options
103
- const [position, setPosition] = useState<CSSProperties | null>(null)
104
- useLayoutEffect(() => {
105
- if (!open) {
106
- @@ -66,7 +75,9 @@ export function useAnchoredPosition(options: AnchoredPositionOptions): CSSProper
107
- const width = viewport?.width ?? (anchor.ownerDocument.documentElement.clientWidth || win.innerWidth)
108
- const height = viewport?.height ?? (anchor.ownerDocument.documentElement.clientHeight || win.innerHeight)
109
- const topMargin = frameClearance ? overlayTopMargin(margin, rect, gap) : margin
110
- - const maxWidth = Math.max(0, width - margin * 2)
111
- + const region = boundary?.() ?? null
112
- + const maxWidth = Math.max(0, Math.min(width - margin * 2,
113
- + region === null ? Number.POSITIVE_INFINITY : region.width - margin * 2))
114
- panel.style.setProperty('--dsh-anchored-max-width', `${maxWidth}px`)
115
- panel.style.setProperty('--dsh-anchored-max-height', `${Math.max(0, height - topMargin - margin)}px`)
116
- if (minWidthFromAnchor) panel.style.minWidth = `${Math.min(rect.width, maxWidth)}px`
117
- @@ -76,8 +87,14 @@ export function useAnchoredPosition(options: AnchoredPositionOptions): CSSProper
118
- const offsetY = visualOrigin ? y : 0
119
- const left = offsetX + (side === 'right' ? rect.right + gap : align === 'end' ? rect.right - panelWidth : rect.left)
120
- const top = offsetY + (side === 'right' ? rect.top : side === 'top' ? rect.top - gap - panelHeight : rect.bottom + gap)
121
- + // The region narrows the horizontal clamp the same way it narrows the size limit:
122
- + // an anchored panel inside a column must not slide under its neighbours.
123
- + const minLeft = region === null ? x + margin : Math.max(x + margin, region.left + margin)
124
- + const maxLeft = region === null
125
- + ? x + width - margin - panelWidth
126
- + : Math.min(x + width - margin - panelWidth, region.right - margin - panelWidth)
127
- next = {
128
- - left: Math.max(x + margin, Math.min(left, x + width - margin - panelWidth)),
129
- + left: Math.max(minLeft, Math.min(left, maxLeft)),
130
- top: Math.max(y + topMargin, Math.min(top, y + height - margin - panelHeight)),
131
- }
132
- }
85
+ const anchorStyle: CSSProperties & Record<'--dsh-model-anchor', string> = {
86
+ @@ -481,7 +489,9 @@ export function ModelSelect(
87
+ ref={menuRef}
88
+ id={`${id}-menu`}
89
+ className={css.menu}
90
+ - style={anchorStyle}
91
+ + style={{ ...anchorStyle, ...(columnWidth === null
92
+ + ? {}
93
+ + : { maxWidth: Math.max(0, columnWidth - 24) }) }}
94
+ role={pane === 'model' ? 'group' : 'menu'}
95
+ aria-label={t('menu.aria')}
96
+ aria-busy={state.status === 'loading' || busy}
@@ -543,10 +543,10 @@ index 00000000..768b9a16
543
543
  + return { nodes, edges }
544
544
  +}
545
545
  diff --git a/packages/client/ui-sidebar-documentpreview/src/client/index.ts b/packages/client/ui-sidebar-documentpreview/src/client/index.ts
546
- index 72a26771..94c11c51 100644
546
+ index be88ecf0..9b34061e 100644
547
547
  --- a/packages/client/ui-sidebar-documentpreview/src/client/index.ts
548
548
  +++ b/packages/client/ui-sidebar-documentpreview/src/client/index.ts
549
- @@ -36,6 +36,7 @@ import { apply as registerHtml } from './html/index.ts'
549
+ @@ -37,6 +37,7 @@ import { apply as registerHtml } from './html/index.ts'
550
550
  import { apply as registerImage } from './image/index.ts'
551
551
  import { apply as registerPdf } from './pdf/index.ts'
552
552
  import { apply as registerCode } from './code/index.ts'
@@ -554,7 +554,7 @@ index 72a26771..94c11c51 100644
554
554
  import { apply as registerOffice } from './office/index.ts'
555
555
  import { apply as registerExcel } from './excel/index.ts'
556
556
  import { Config } from '../config.ts'
557
- @@ -127,4 +128,5 @@ export function apply(ctx: ClientContext): void {
557
+ @@ -129,4 +130,5 @@ export function apply(ctx: ClientContext): void {
558
558
  registerOffice(ctx, config.office)
559
559
  registerExcel(ctx, config.excel)
560
560
  registerCode(ctx)
@@ -365,7 +365,7 @@ index 8788c8ea..d191b9cc 100644
365
365
  throw new SessionQueryError(
366
366
  /* v8 ignore next -- foldSurface throws Error instances */
367
367
  diff --git a/packages/session-query/session-query/src/index.ts b/packages/session-query/session-query/src/index.ts
368
- index 838ce4c7..83b105fe 100644
368
+ index dfb11fec..2d1f095a 100644
369
369
  --- a/packages/session-query/session-query/src/index.ts
370
370
  +++ b/packages/session-query/session-query/src/index.ts
371
371
  @@ -11,6 +11,7 @@ import {
@@ -404,7 +404,7 @@ index 838ce4c7..83b105fe 100644
404
404
  /**
405
405
  * Observe one exact live or prepared Session without a persistence listing preflight.
406
406
  * @param sessionId - logical Session identity.
407
- @@ -188,7 +210,7 @@ export abstract class SessionQueryEngine extends Service {
407
+ @@ -200,7 +222,7 @@ export abstract class SessionQueryEngine extends Service {
408
408
  loaded.events,
409
409
  loaded.header,
410
410
  loaded.inheritedEventCount,
@@ -413,7 +413,7 @@ index 838ce4c7..83b105fe 100644
413
413
  )
414
414
  return {
415
415
  session: structuredClone(loaded.header),
416
- @@ -268,7 +290,7 @@ export abstract class SessionQueryEngine extends Service {
416
+ @@ -280,7 +302,7 @@ export abstract class SessionQueryEngine extends Service {
417
417
  */
418
418
  async listEvents(sessionId: SessionId): Promise<SessionEventRecord[]> {
419
419
  const loaded = await this._corpus.load(sessionId)
@@ -422,7 +422,7 @@ index 838ce4c7..83b105fe 100644
422
422
  }
423
423
 
424
424
  /**
425
- @@ -297,7 +319,7 @@ export abstract class SessionQueryEngine extends Service {
425
+ @@ -309,7 +331,7 @@ export abstract class SessionQueryEngine extends Service {
426
426
  filters: readonly SessionEventResultFilter[],
427
427
  ): Promise<SessionEventSearchDocument[]> {
428
428
  const loaded = await this._corpus.load(sessionId)
@@ -431,7 +431,7 @@ index 838ce4c7..83b105fe 100644
431
431
  return filterSessionEventDocuments(documents, filters)
432
432
  }
433
433
 
434
- @@ -313,7 +335,7 @@ export abstract class SessionQueryEngine extends Service {
434
+ @@ -325,7 +347,7 @@ export abstract class SessionQueryEngine extends Service {
435
435
  session: structuredClone(loaded.header),
436
436
  inheritedEventCount: loaded.inheritedEventCount,
437
437
  capturedThroughSeq: loaded.events.at(-1)?.seq ?? null,
@@ -440,7 +440,7 @@ index 838ce4c7..83b105fe 100644
440
440
  }
441
441
  }
442
442
 
443
- @@ -342,7 +364,7 @@ export abstract class SessionQueryEngine extends Service {
443
+ @@ -354,7 +376,7 @@ export abstract class SessionQueryEngine extends Service {
444
444
  signal?.throwIfAborted()
445
445
  return {
446
446
  session: loaded.header,
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/client/ui-input-trigger/src/client/MenuView.tsx b/packages/client/ui-input-trigger/src/client/MenuView.tsx
2
- index da6dccdbad..42a7726014 100644
2
+ index da6dccdb..42a77260 100644
3
3
  --- a/packages/client/ui-input-trigger/src/client/MenuView.tsx
4
4
  +++ b/packages/client/ui-input-trigger/src/client/MenuView.tsx
5
5
  @@ -143,7 +143,7 @@ export function MenuView({ menu, headers, onPick, onCrumb, onHover, onDismiss, t
@@ -12,7 +12,7 @@ index da6dccdbad..42a7726014 100644
12
12
  ? (
13
13
  <div role="status" aria-label={t('loading')} data-source={group.source}>
14
14
  diff --git a/packages/client/ui-input-trigger/src/core/contract.ts b/packages/client/ui-input-trigger/src/core/contract.ts
15
- index eab79f1066..856555ca0d 100644
15
+ index eab79f10..856555ca 100644
16
16
  --- a/packages/client/ui-input-trigger/src/core/contract.ts
17
17
  +++ b/packages/client/ui-input-trigger/src/core/contract.ts
18
18
  @@ -37,6 +37,8 @@ export interface MenuState {
@@ -25,7 +25,7 @@ index eab79f1066..856555ca0d 100644
25
25
  readonly showGroupTitle?: boolean
26
26
  readonly status: 'pending' | 'ready'
27
27
  diff --git a/packages/client/ui-input-trigger/src/core/menu.ts b/packages/client/ui-input-trigger/src/core/menu.ts
28
- index 85787266a5..b3e8476132 100644
28
+ index 85787266..b3e84761 100644
29
29
  --- a/packages/client/ui-input-trigger/src/core/menu.ts
30
30
  +++ b/packages/client/ui-input-trigger/src/core/menu.ts
31
31
  @@ -29,12 +29,13 @@ export const MENU_CLOSED: MenuState = { open: false, hit: null, generation: 0, g
@@ -44,7 +44,7 @@ index 85787266a5..b3e8476132 100644
44
44
  status: 'pending',
45
45
  items: [],
46
46
  diff --git a/packages/client/ui-input-trigger/src/types.ts b/packages/client/ui-input-trigger/src/types.ts
47
- index cd3f6bc54c..4b370b5127 100644
47
+ index cd3f6bc5..4b370b51 100644
48
48
  --- a/packages/client/ui-input-trigger/src/types.ts
49
49
  +++ b/packages/client/ui-input-trigger/src/types.ts
50
50
  @@ -161,6 +161,13 @@ export interface InputTriggerSource {
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/api/session-controller/src/agent.ts b/packages/api/session-controller/src/agent.ts
2
- index d16e041773..41b6b4a0d1 100644
2
+ index 343ad9ba..14b26b46 100644
3
3
  --- a/packages/api/session-controller/src/agent.ts
4
4
  +++ b/packages/api/session-controller/src/agent.ts
5
5
  @@ -13,6 +13,9 @@ import { SessionQueryError, type SessionObservation } from '@deepseek-ai/dsh-ses
@@ -12,7 +12,7 @@ index d16e041773..41b6b4a0d1 100644
12
12
  /** Cold Session identity absent from persistence. */
13
13
  export class ApiSessionNotFound extends Error {}
14
14
 
15
- @@ -273,7 +276,15 @@ export class ApiSessionAgentController {
15
+ @@ -263,7 +266,15 @@ export class ApiSessionAgentController {
16
16
  if (presets === undefined) {
17
17
  return { setup: (agentCtx) => { installModelSelection(agentCtx) } }
18
18
  }
@@ -30,7 +30,7 @@ index d16e041773..41b6b4a0d1 100644
30
30
  agentPreset: resolvedId,
31
31
  setup: async (agentCtx) => {
32
32
  diff --git a/packages/api/session-controller/tests/agent.host.spec.ts b/packages/api/session-controller/tests/agent.host.spec.ts
33
- index aea96d5e04..3a37fcbbc0 100644
33
+ index aea96d5e..3a37fcbb 100644
34
34
  --- a/packages/api/session-controller/tests/agent.host.spec.ts
35
35
  +++ b/packages/api/session-controller/tests/agent.host.spec.ts
36
36
  @@ -10,6 +10,7 @@ import SessionStore, { SESSION_FORMAT_VERSION, SessionId } from '@deepseek-ai/ds
@@ -104,7 +104,7 @@ index aea96d5e04..3a37fcbbc0 100644
104
104
  + })
105
105
  })
106
106
  diff --git a/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx b/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx
107
- index 26fdcfcbf6..25dd5a95bc 100644
107
+ index 26fdcfcb..25dd5a95 100644
108
108
  --- a/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx
109
109
  +++ b/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx
110
110
  @@ -19,6 +19,8 @@ import type { AgentPresetSettingsState } from './settings-store.ts'
@@ -130,7 +130,7 @@ index 26fdcfcbf6..25dd5a95bc 100644
130
130
  )
131
131
  }
132
132
  diff --git a/packages/client/ui-agent-preset/tests/components.client.spec.tsx b/packages/client/ui-agent-preset/tests/components.client.spec.tsx
133
- index 79cc930e01..1e9c5f25d2 100644
133
+ index 79cc930e..1e9c5f25 100644
134
134
  --- a/packages/client/ui-agent-preset/tests/components.client.spec.tsx
135
135
  +++ b/packages/client/ui-agent-preset/tests/components.client.spec.tsx
136
136
  @@ -400,6 +400,12 @@ describe('the session-header label', () => {
@@ -1,8 +1,8 @@
1
1
  diff --git a/packages/llm/llm-pi-ai/src/stream.ts b/packages/llm/llm-pi-ai/src/stream.ts
2
- index 30e9c79..0e4df53 100644
2
+ index c3bfc1cd..93fff726 100644
3
3
  --- a/packages/llm/llm-pi-ai/src/stream.ts
4
4
  +++ b/packages/llm/llm-pi-ai/src/stream.ts
5
- @@ -56,6 +56,12 @@ function classifyPiAiError(message: string): string {
5
+ @@ -64,6 +64,12 @@ function classifyPiAiError(message: string): BuiltinLlmFailureCode {
6
6
  // finish_reason`). The connection dropped mid-response, so this is a transport
7
7
  // truncation, not a model-level error.
8
8
  if (/stream ended (?:before|without)\b/i.test(message)) return 'TRANSPORT'
@@ -16,10 +16,10 @@ index 30e9c79..0e4df53 100644
16
16
  || /\b(?:other side closed|HTTP2 request did not get a response|WebSocket closed unexpectedly)\b/i.test(message)
17
17
  // undici renders a mid-stream socket drop as a bare `terminated` (its
18
18
  diff --git a/packages/llm/llm-pi-ai/tests/convert.spec.ts b/packages/llm/llm-pi-ai/tests/convert.spec.ts
19
- index d6c86ba..0e57a35 100644
19
+ index ff5a6587..15dd5b53 100644
20
20
  --- a/packages/llm/llm-pi-ai/tests/convert.spec.ts
21
21
  +++ b/packages/llm/llm-pi-ai/tests/convert.spec.ts
22
- @@ -951,6 +951,11 @@ describe('mapStopReason / mapUsage', () => {
22
+ @@ -965,6 +965,11 @@ describe('mapStopReason / mapUsage', () => {
23
23
  'OpenAI Responses stream ended before a terminal response event',
24
24
  'openrouter stream ended without a terminal event',
25
25
  'Stream ended without finish_reason',
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/api/gateway/src/client/journal-stream.ts b/packages/api/gateway/src/client/journal-stream.ts
2
- index ab013abdf3..35dcb86255 100644
2
+ index ab013abd..35dcb862 100644
3
3
  --- a/packages/api/gateway/src/client/journal-stream.ts
4
4
  +++ b/packages/api/gateway/src/client/journal-stream.ts
5
5
  @@ -241,6 +241,10 @@ export abstract class RemoteJournalStream<
@@ -14,7 +14,7 @@ index ab013abdf3..35dcb86255 100644
14
14
  continue
15
15
  }
16
16
  diff --git a/packages/api/gateway/tests/journal-stream.client.spec.ts b/packages/api/gateway/tests/journal-stream.client.spec.ts
17
- index 498f5a033b..e6f1b41f69 100644
17
+ index 498f5a03..e6f1b41f 100644
18
18
  --- a/packages/api/gateway/tests/journal-stream.client.spec.ts
19
19
  +++ b/packages/api/gateway/tests/journal-stream.client.spec.ts
20
20
  @@ -788,7 +788,7 @@ describe('RemoteJournalStream', () => {
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx b/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx
2
- index 5d74774e45..f3ef39a610 100644
2
+ index 3215f97a..a6d951b4 100644
3
3
  --- a/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx
4
4
  +++ b/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx
5
5
  @@ -1,5 +1,5 @@
@@ -1,8 +1,8 @@
1
1
  diff --git a/packages/client/ui-deliverables/src/client/turn-deliverables.ts b/packages/client/ui-deliverables/src/client/turn-deliverables.ts
2
- index 7eb765ec2b..806d9e4466 100644
2
+ index d51b54ed..df35a4da 100644
3
3
  --- a/packages/client/ui-deliverables/src/client/turn-deliverables.ts
4
4
  +++ b/packages/client/ui-deliverables/src/client/turn-deliverables.ts
5
- @@ -70,11 +70,37 @@ function mutationPath(name: string, argsRaw: string): string | null {
5
+ @@ -72,11 +72,37 @@ function mutationPath(name: string, argsRaw: string): string | null {
6
6
  return validEditArgs(args) ? pathValue(args.file_path) : null
7
7
  case 'str_replace_editor':
8
8
  return editorMutationPath(args)
@@ -1,5 +1,5 @@
1
1
  diff --git a/packages/core/tool-executor-ptc/src/ts-types.ts b/packages/core/tool-executor-ptc/src/ts-types.ts
2
- index 8026c847d2..4c0f622fc9 100644
2
+ index 8026c847..4c0f622f 100644
3
3
  --- a/packages/core/tool-executor-ptc/src/ts-types.ts
4
4
  +++ b/packages/core/tool-executor-ptc/src/ts-types.ts
5
5
  @@ -8,7 +8,7 @@
@@ -30,7 +30,7 @@ index 8026c847d2..4c0f622fc9 100644
30
30
  } catch {
31
31
  return 'unknown'
32
32
  diff --git a/packages/core/tool-executor-ptc/tests/ts-types.spec.ts b/packages/core/tool-executor-ptc/tests/ts-types.spec.ts
33
- index 2ec79e974c..a345818f06 100644
33
+ index 2ec79e97..a345818f 100644
34
34
  --- a/packages/core/tool-executor-ptc/tests/ts-types.spec.ts
35
35
  +++ b/packages/core/tool-executor-ptc/tests/ts-types.spec.ts
36
36
  @@ -1,6 +1,7 @@
@@ -90,7 +90,7 @@ index 2ec79e974c..a345818f06 100644
90
90
  const cases: unknown[] = [
91
91
  undefined,
92
92
  diff --git a/packages/core/tools/src/json-schema.ts b/packages/core/tools/src/json-schema.ts
93
- index c064fb294c..573cdd69c0 100644
93
+ index c064fb29..573cdd69 100644
94
94
  --- a/packages/core/tools/src/json-schema.ts
95
95
  +++ b/packages/core/tools/src/json-schema.ts
96
96
  @@ -84,6 +84,14 @@ const CONSTRAINT_KEYWORDS = new Set([