mux-sesh 1.1.0 → 1.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mux-sesh",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A beautiful tmux session manager built with OpenTUI - fuzzy search sessions, manage projects, clone from GitHub",
5
5
  "type": "module",
6
6
  "bin": {
@@ -178,7 +178,7 @@ export function handleOpencodeManageMode(
178
178
  if (key.name === 'down' || (!isStandard && key.name === 'j')) {
179
179
  ctx.setOpencodeCursor(c => {
180
180
  const newCursor = Math.min(c + 1, ctx.opencodeSessions.length - 1)
181
- if (newCursor !== c) {
181
+ if (newCursor !== c && ctx.opencodeSessions[newCursor]) {
182
182
  ctx.loadOpencodeStatsForSession(ctx.opencodeSessions[newCursor].title)
183
183
  }
184
184
  return newCursor
@@ -190,7 +190,7 @@ export function handleOpencodeManageMode(
190
190
  if (key.name === 'up' || (!isStandard && key.name === 'k')) {
191
191
  ctx.setOpencodeCursor(c => {
192
192
  const newCursor = Math.max(c - 1, 0)
193
- if (newCursor !== c) {
193
+ if (newCursor !== c && ctx.opencodeSessions[newCursor]) {
194
194
  ctx.loadOpencodeStatsForSession(ctx.opencodeSessions[newCursor].title)
195
195
  }
196
196
  return newCursor