opencode-session-bar 1.1.4 → 1.1.5

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 (2) hide show
  1. package/index.tsx +1 -0
  2. package/package.json +1 -1
package/index.tsx CHANGED
@@ -14,6 +14,7 @@ function View(props: { api: TuiPluginApi; sessionID: string }) {
14
14
  const sorted = () => (sessions() ?? [])
15
15
  .slice()
16
16
  .sort((a, b) => b.time.updated - a.time.updated)
17
+ .slice(0, 5)
17
18
 
18
19
  async function handleSwitch(id: string) {
19
20
  props.api.route.navigate("session", { sessionID: id })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-session-bar",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "OpenCode TUI sidebar plugin — list all sessions with quick switch and delete",
5
5
  "type": "module",
6
6
  "exports": {