@michengai/dsh-codex-ui 1.1.30 → 1.1.32

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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ This changelog records recent releases of DSH Codex UI. Earlier changes remain a
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.1.32 - 2026-10-08
10
+
11
+ - Creating a session from the sidebar returns to the Tasks tab first. This covers a new task, search, and adding a workspace, so Channels and Schedule no longer stay selected.
12
+
13
+ ## 1.1.31 - 2026-10-08
14
+
15
+ - On macOS, the main sidebar stays below the traffic lights in a normal window, including the brand, search, collapse controls, and the compact rail (#38). Fullscreen, Windows, and the browser are unchanged.
16
+
9
17
  ## 1.1.30 - 2026-10-07
10
18
 
11
19
  - On macOS, the settings Back button and search stay below the traffic lights in a normal window (#37). Fullscreen, Windows, and the browser are unchanged.
@@ -6,6 +6,14 @@
6
6
 
7
7
  ## 未发布
8
8
 
9
+ ## 1.1.32 - 2026-10-08
10
+
11
+ - 从侧栏新建会话时会先回到任务页签,包括新建任务、搜索和添加工作区。新建后不再停留在频道或日程页。
12
+
13
+ ## 1.1.31 - 2026-10-08
14
+
15
+ - macOS 普通窗口里,主侧栏不再被红绿灯挡住,包括品牌、搜索、收起按钮和窄轨(#38)。全屏、Windows 和浏览器不受影响。
16
+
9
17
  ## 1.1.30 - 2026-10-07
10
18
 
11
19
  - macOS 普通窗口里,设置页的返回和搜索不再被红绿灯挡住(#37)。全屏、Windows 和浏览器不受影响。
package/lib/client.js CHANGED
@@ -7116,6 +7116,14 @@ html[data-windows-titlebar][data-fullscreen] .dcu-desktop-navigation{display:non
7116
7116
  });
7117
7117
  }
7118
7118
  //#endregion
7119
+ //#region src/client/sidebar-session.ts
7120
+ /** 先切回任务页签再创建,避免新建后仍停在频道或日程。 */
7121
+ function beginSidebarSession(setTab, startSession, workspaceId) {
7122
+ setTab("tasks");
7123
+ if (workspaceId === void 0) startSession();
7124
+ else startSession(workspaceId);
7125
+ }
7126
+ //#endregion
7119
7127
  //#region src/client/WorkspaceShortcutBridge.tsx
7120
7128
  function WorkspaceShortcutBridge({ source, openSearch, startSession, renderDirectoryFlow, t }) {
7121
7129
  const { searchRequest, addRequested, bindings } = (0, react.useSyncExternalStore)(source.subscribe, source.getSnapshot, source.getSnapshot);
@@ -7421,10 +7429,14 @@ body[data-we-sidebar-glass] .dcu-expanded-shell,body[data-we-sidebar-glass] .dcu
7421
7429
  .dcu-expanded-shell,.dcu-root:not(.dcu-compact)>.dcu-foot{width:var(--dcu-sidebar-expanded-width,240px);flex-shrink:0}
7422
7430
  /* 对齐 Codex 的半秒布局节奏;显式声明避免依赖宿主主题的动画 token。 */
7423
7431
  .dcu-root{position:relative}
7424
- .dcu-root.dcu-collapsing .dcu-compact-shell{position:absolute;left:0;top:calc((var(--dcu-header-height,34px) - 28px)/2);bottom:8px;display:flex;flex-direction:column;align-items:center;animation:dcu-sidebar-compact-in 500ms cubic-bezier(.16,1,.3,1)}
7432
+ .dcu-root.dcu-collapsing .dcu-compact-shell{position:absolute;left:0;top:calc(var(--dcu-sidebar-top-clearance,0px) + (var(--dcu-header-height,34px) - 28px)/2);bottom:8px;display:flex;flex-direction:column;align-items:center;animation:dcu-sidebar-compact-in 500ms cubic-bezier(.16,1,.3,1)}
7425
7433
  .dcu-root.dcu-collapsing .dcu-compact-shell .dcu-icon{width:36px;height:36px;flex:none}.dcu-root .dcu-compact-shell>.dcu-icon,.dcu-root.dcu-collapsing .dcu-compact-shell>.dcu-icon{width:28px;height:28px;flex:none;margin:0;padding:0;border-radius:50%}
7426
7434
  /* 收尾仅移除宽态层,窄轨不重复淡入,否则会在半秒处闪烁。 */
7427
7435
  .dcu-root.dcu-compact .dcu-compact-shell{animation:none}
7436
+ /* 原生交通灯覆盖网页顶部;宽态、窄轨和动画层共用宿主安全区,保持页脚在窗口内。 */
7437
+ .dcu-root{--dcu-sidebar-top-clearance:0px}
7438
+ html[data-platform=darwin]:not([data-fullscreen]) .dcu-root{--dcu-sidebar-top-clearance:var(--dsh-frame-top-clearance,48px);padding-top:var(--dcu-sidebar-top-clearance)}
7439
+ html[data-platform=darwin]:not([data-fullscreen]) .dcu-root.dcu-compact{padding-top:calc(var(--dcu-sidebar-top-clearance) + (var(--dcu-header-height,34px) - 28px)/2)}
7428
7440
  [data-dcu-codex-sidebar-initialized]{transition:grid-template-columns 500ms cubic-bezier(.16,1,.3,1)}
7429
7441
  /* dsh-better-sidebar 的 #root 布局规则会覆盖 transition 简写;合并两侧过渡而非只争抢左栏。 */
7430
7442
  #root [data-dcu-codex-sidebar-initialized]:not([data-dragging]){transition:grid-template-columns 500ms cubic-bezier(.16,1,.3,1),padding-right var(--ds-transition-duration-slow,.3s) var(--ds-ease-in-out,cubic-bezier(.4,0,.2,1))}
@@ -7810,6 +7822,9 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
7810
7822
  }, []);
7811
7823
  const [extensionsOpen, setExtensionsOpen] = (0, react.useState)(readExtensionsOpen);
7812
7824
  const [imTab, setImTab] = (0, react.useState)("tasks");
7825
+ const beginSession = (0, react.useCallback)((workspaceId) => {
7826
+ beginSidebarSession(setImTab, startSession, workspaceId);
7827
+ }, [startSession]);
7813
7828
  const companionTabs = (0, react.useSyncExternalStore)(companionSlots?.subscribe ?? subscribeEmptyCompanionTabs, companionSlots?.getSnapshot ?? getEmptyCompanionTabs, companionSlots?.getSnapshot ?? getEmptyCompanionTabs);
7814
7829
  const showChannels = companionTabs.channels;
7815
7830
  const showSchedule = companionTabs.schedule;
@@ -8002,7 +8017,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8002
8017
  className: "dcu-brand",
8003
8018
  "aria-label": t("sidebar.newTask"),
8004
8019
  onClick: () => {
8005
- startSession();
8020
+ beginSession();
8006
8021
  },
8007
8022
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.BrandWordmark, { size: 24 })
8008
8023
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -8030,7 +8045,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8030
8045
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
8031
8046
  type: "button",
8032
8047
  onClick: () => {
8033
- startSession();
8048
+ beginSession();
8034
8049
  },
8035
8050
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconNewChatOutlineMedium, { size: 16 }) }), t("sidebar.newTask")]
8036
8051
  }),
@@ -8217,7 +8232,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8217
8232
  className: "dcu-icon",
8218
8233
  "aria-label": t("sidebar.newTask"),
8219
8234
  onClick: () => {
8220
- startSession();
8235
+ beginSession();
8221
8236
  },
8222
8237
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconNewChatOutlineMedium, { size: 16 })
8223
8238
  }),
@@ -8300,7 +8315,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8300
8315
  openPlugins,
8301
8316
  settingsSeat,
8302
8317
  openSession,
8303
- startSession,
8318
+ startSession: beginSession,
8304
8319
  t,
8305
8320
  useSessions,
8306
8321
  useWorkspaces
@@ -8309,7 +8324,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8309
8324
  source: workspaceShortcuts,
8310
8325
  openSearch,
8311
8326
  startSession: (id) => {
8312
- startSession(id);
8327
+ beginSession(id);
8313
8328
  },
8314
8329
  renderDirectoryFlow: (owner) => renderSlot("sidebar.codex.directoryFlow", owner),
8315
8330
  t
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "1.1.30",
3
+ "version": "1.1.32",
4
4
  "description": "DSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH Web",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -72,7 +72,7 @@
72
72
  "test": "pnpm run typecheck && vitest run && tsdown && node tests/run-assertions.mjs && pnpm run test:layout",
73
73
  "test:host": "node scripts/verify-settings-exit.mjs",
74
74
  "test:settings-backdrop": "node scripts/verify-settings-backdrop.mjs",
75
- "test:layout": "node scripts/verify-workspace-drop-layout.mjs --run && node scripts/verify-sidebar-transition.mjs && node scripts/verify-sidebar-expand-control.mjs && node scripts/verify-composer-style.mjs && node scripts/verify-new-conversation.mjs && node scripts/verify-composer-tools.mjs && node scripts/verify-hero-width.mjs && node scripts/verify-settings-backdrop.mjs && node scripts/verify-settings-geometry.mjs && node scripts/verify-upstream-style-regressions.mjs",
75
+ "test:layout": "node scripts/verify-workspace-drop-layout.mjs --run && node scripts/verify-sidebar-transition.mjs && node scripts/verify-sidebar-expand-control.mjs && node scripts/verify-sidebar-titlebar.mjs && node scripts/verify-composer-style.mjs && node scripts/verify-new-conversation.mjs && node scripts/verify-composer-tools.mjs && node scripts/verify-hero-width.mjs && node scripts/verify-settings-backdrop.mjs && node scripts/verify-settings-geometry.mjs && node scripts/verify-upstream-style-regressions.mjs",
76
76
  "test:compat": "node scripts/run-compat-host.mjs"
77
77
  },
78
78
  "peerDependencies": {