@michengai/dsh-codex-ui 1.1.31 → 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,10 @@ 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
+
9
13
  ## 1.1.31 - 2026-10-08
10
14
 
11
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.
@@ -6,6 +6,10 @@
6
6
 
7
7
  ## 未发布
8
8
 
9
+ ## 1.1.32 - 2026-10-08
10
+
11
+ - 从侧栏新建会话时会先回到任务页签,包括新建任务、搜索和添加工作区。新建后不再停留在频道或日程页。
12
+
9
13
  ## 1.1.31 - 2026-10-08
10
14
 
11
15
  - macOS 普通窗口里,主侧栏不再被红绿灯挡住,包括品牌、搜索、收起按钮和窄轨(#38)。全屏、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);
@@ -7814,6 +7822,9 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
7814
7822
  }, []);
7815
7823
  const [extensionsOpen, setExtensionsOpen] = (0, react.useState)(readExtensionsOpen);
7816
7824
  const [imTab, setImTab] = (0, react.useState)("tasks");
7825
+ const beginSession = (0, react.useCallback)((workspaceId) => {
7826
+ beginSidebarSession(setImTab, startSession, workspaceId);
7827
+ }, [startSession]);
7817
7828
  const companionTabs = (0, react.useSyncExternalStore)(companionSlots?.subscribe ?? subscribeEmptyCompanionTabs, companionSlots?.getSnapshot ?? getEmptyCompanionTabs, companionSlots?.getSnapshot ?? getEmptyCompanionTabs);
7818
7829
  const showChannels = companionTabs.channels;
7819
7830
  const showSchedule = companionTabs.schedule;
@@ -8006,7 +8017,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8006
8017
  className: "dcu-brand",
8007
8018
  "aria-label": t("sidebar.newTask"),
8008
8019
  onClick: () => {
8009
- startSession();
8020
+ beginSession();
8010
8021
  },
8011
8022
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.BrandWordmark, { size: 24 })
8012
8023
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -8034,7 +8045,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8034
8045
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
8035
8046
  type: "button",
8036
8047
  onClick: () => {
8037
- startSession();
8048
+ beginSession();
8038
8049
  },
8039
8050
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuIcon, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconNewChatOutlineMedium, { size: 16 }) }), t("sidebar.newTask")]
8040
8051
  }),
@@ -8221,7 +8232,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8221
8232
  className: "dcu-icon",
8222
8233
  "aria-label": t("sidebar.newTask"),
8223
8234
  onClick: () => {
8224
- startSession();
8235
+ beginSession();
8225
8236
  },
8226
8237
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconNewChatOutlineMedium, { size: 16 })
8227
8238
  }),
@@ -8304,7 +8315,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8304
8315
  openPlugins,
8305
8316
  settingsSeat,
8306
8317
  openSession,
8307
- startSession,
8318
+ startSession: beginSession,
8308
8319
  t,
8309
8320
  useSessions,
8310
8321
  useWorkspaces
@@ -8313,7 +8324,7 @@ html[data-dcu-official-turn-navigator-supported=true] .dcu-turn-navigator,html:h
8313
8324
  source: workspaceShortcuts,
8314
8325
  openSearch,
8315
8326
  startSession: (id) => {
8316
- startSession(id);
8327
+ beginSession(id);
8317
8328
  },
8318
8329
  renderDirectoryFlow: (owner) => renderSlot("sidebar.codex.directoryFlow", owner),
8319
8330
  t
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "1.1.31",
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": {