dsh-ask-from-text 0.1.21 → 0.1.22

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 (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/client.js +18 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to `dsh-ask-from-text` are documented here. The format is
4
4
  based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this
5
5
  project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.1.22] - 2026-11-13
8
+
9
+ ### Fixed
10
+
11
+ - Collapse the host's “show remaining conversations” / “show less” controls
12
+ together with the `追问分支` group, and label the group with the total number
13
+ of branch sessions rather than only the rendered rows.
14
+
7
15
  ## [0.1.21] - 2026-11-13
8
16
 
9
17
  ### Added
@@ -71,6 +79,14 @@ project follows [Semantic Versioning](https://semver.org/).
71
79
 
72
80
  - README screenshots now use absolute CDN URLs so they render on the npm package page.
73
81
 
82
+ ## [0.1.22] - 2026-11-13
83
+
84
+ ### Fixed
85
+
86
+ - Collapse the host's “show remaining conversations” / “show less” controls
87
+ together with the `追问分支` group, and label the group with the total number
88
+ of branch sessions rather than only the rendered rows.
89
+
74
90
  ## [0.1.21] - 2026-11-13
75
91
 
76
92
  ### Added
@@ -228,6 +244,7 @@ project follows [Semantic Versioning](https://semver.org/).
228
244
  [0.1.19]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.19
229
245
  [0.1.20]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.20
230
246
  [0.1.21]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.21
247
+ [0.1.22]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.22
231
248
  [0.1.13]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.13
232
249
  [0.1.14]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.14
233
250
  [0.1.15]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.15
@@ -237,3 +254,4 @@ project follows [Semantic Versioning](https://semver.org/).
237
254
  [0.1.19]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.19
238
255
  [0.1.20]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.20
239
256
  [0.1.21]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.21
257
+ [0.1.22]: https://github.com/gbn0219/dsh-ask-from-text/releases/tag/v0.1.22
package/client.js CHANGED
@@ -1656,10 +1656,27 @@ window.__ModuleLoader__.load({
1656
1656
  if (other !== header) other.remove()
1657
1657
  }
1658
1658
  if (header.nextSibling !== first) firstParent.insertBefore(header, first)
1659
- const label = `${state.sidebarCollapsed ? '▸' : '▾'} ${app.t('sidebarGroup')} · ${rows.length}`
1659
+ const label = `${state.sidebarCollapsed ? '▸' : '▾'} ${app.t('sidebarGroup')} · ${ids.size}`
1660
1660
  if (header.textContent !== label) header.textContent = label
1661
1661
  for (const row of rows) row.classList.toggle('ifu-sidebar-hidden', state.sidebarCollapsed)
1662
1662
 
1663
+ // The host's “show remaining n conversations” / “show less” controls
1664
+ // live inside the same Workspace section as these rows. Fold them with
1665
+ // the branch group instead of leaving an orphaned expansion control.
1666
+ const overflowControls = new Set()
1667
+ for (const row of rows) {
1668
+ let scope = row.parentElement
1669
+ while (scope && scope !== document.body && scope !== document.documentElement) {
1670
+ for (const control of scope.querySelectorAll(':scope > [data-row-key^="overflow:"]')) {
1671
+ overflowControls.add(control)
1672
+ }
1673
+ scope = scope.parentElement
1674
+ }
1675
+ }
1676
+ for (const control of overflowControls) {
1677
+ control.classList.toggle('ifu-sidebar-hidden', state.sidebarCollapsed)
1678
+ }
1679
+
1663
1680
  const branchSessionIds = ids
1664
1681
  const rootSessionIds = new Set(state.order
1665
1682
  .map(id => state.branches[id]?.rootSessionId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-ask-from-text",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "description": "Ask a follow-up from selected text in a DeepSeek Harness answer, in a real Session branch with a tree of context.",
6
6
  "exports": {