opencode-sesh 2.0.4 → 2.1.0

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/AGENTS.md CHANGED
@@ -159,7 +159,8 @@ when opencode exits, the picker reopens with the query preserved.
159
159
  ## TUI panel (`tui-plugins/sesh-panel/tui.tsx`)
160
160
 
161
161
  - **Sidebar & Home list:** `api.slots.register` on `sidebar_content` (`sidebar.content`
162
- prepend mode — native sidebar content stays) and `home_bottom` (`home.footer`
162
+ append mode by default — native sidebar content stays above Sessions;
163
+ `sidebarPlacement: "prepend"` puts Sessions first) and `home_bottom` (`home.footer`
163
164
  prepend mode). In the sidebar, pinned directories sort first, then directory groups
164
165
  by recency; sessions within each group sort by last update regardless of pins.
165
166
  In the home list, pinned sessions sort first.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.1.0] - 2026-10-20
9
+
10
+ ### Added
11
+
12
+ - **tui:** Configure sessions sidebar placement
13
+
8
14
  ## [2.0.4] - 2026-10-20
9
15
 
10
16
  ### Added
@@ -506,6 +512,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
506
512
  - Fixture-database regression suite, TypeScript typechecking, and ShellCheck in
507
513
  CI.
508
514
 
515
+ [2.1.0]: https://github.com/ozandogrultan/opencode-sesh/compare/v2.0.4...v2.1.0
509
516
  [2.0.4]: https://github.com/ozandogrultan/opencode-sesh/compare/v2.0.3...v2.0.4
510
517
  [2.0.3]: https://github.com/ozandogrultan/opencode-sesh/compare/v2.0.2...v2.0.3
511
518
  [2.0.2]: https://github.com/ozandogrultan/opencode-sesh/compare/v2.0.1...v2.0.2
package/README.md CHANGED
@@ -226,6 +226,10 @@ workspace at its directory; outside cmux it shows a toast instead.
226
226
 
227
227
  ### TUI sidebar and home list
228
228
 
229
+ `sidebarPlacement` (`"append"` or `"prepend"`, default: `"append"`) places the
230
+ **Sessions** section below or above OpenCode's native sidebar sections. With
231
+ `"append"`, native todos appear above Sessions when available.
232
+
229
233
  `showSidebar` (boolean, default: `true`) controls whether the **Sessions** section
230
234
  appears in the sidebar. Set it to `false` to hide the section while keeping the
231
235
  home list, session picker, and other commands available. OpenCode's native sidebar
@@ -238,7 +242,7 @@ the `opencode.json` entry unchanged:
238
242
  "plugins": [
239
243
  {
240
244
  "package": "opencode-sesh",
241
- "options": { "showSidebar": false }
245
+ "options": { "showSidebar": true, "sidebarPlacement": "append" }
242
246
  }
243
247
  ]
244
248
  }
package/dist/tui.js CHANGED
@@ -4236,7 +4236,11 @@ function createApi(ctx) {
4236
4236
  register(cfg) {
4237
4237
  if (cfg.slots.sidebar_content && ctx.options?.showSidebar !== false) {
4238
4238
  ctx.ui.slot({
4239
- prepend: "sidebar.content",
4239
+ ...(ctx.options?.sidebarPlacement === "prepend" ? {
4240
+ prepend: "sidebar.content"
4241
+ } : {
4242
+ append: "sidebar.content"
4243
+ }),
4240
4244
  render: cfg.slots.sidebar_content
4241
4245
  });
4242
4246
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sesh",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "description": "OpenCode session browser: search, preview, and resume every session across every project from the terminal or TUI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -3334,7 +3334,9 @@ function createApi(ctx: Plugin.Context) {
3334
3334
  register(cfg: { order?: number; slots: Record<string, () => any> }) {
3335
3335
  if (cfg.slots.sidebar_content && ctx.options?.showSidebar !== false) {
3336
3336
  ctx.ui.slot({
3337
- prepend: "sidebar.content",
3337
+ ...(ctx.options?.sidebarPlacement === "prepend"
3338
+ ? { prepend: "sidebar.content" as const }
3339
+ : { append: "sidebar.content" as const }),
3338
3340
  render: cfg.slots.sidebar_content as any,
3339
3341
  })
3340
3342
  }