mux-sesh 1.9.1 → 1.9.3

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "mux-sesh",
4
- "version": "1.9.1",
4
+ "version": "1.9.3",
5
5
  "description": "A beautiful tmux session manager built with OpenTUI - fuzzy search sessions, manage projects, clone from GitHub",
6
6
  "type": "module",
7
7
  "packageManager": "bun@1.3.5",
@@ -1,9 +1,10 @@
1
1
  import type { Item } from '../types'
2
2
 
3
3
  const OPENCODE_SESSION_PREFIX = 'opencode-'
4
+ const SIDE_SESSION_NAMES = new Set(['tui_chat'])
4
5
 
5
6
  export function isOpencodeSessionName(sessionName: string): boolean {
6
- return sessionName.startsWith(OPENCODE_SESSION_PREFIX)
7
+ return sessionName.startsWith(OPENCODE_SESSION_PREFIX) || SIDE_SESSION_NAMES.has(sessionName)
7
8
  }
8
9
 
9
10
  export function isOpencodeSessionItem(item: Pick<Item, 'isSession' | 'title'>): boolean {
@@ -14,7 +14,7 @@ const TERMINAL_RESET_SEQUENCE = [
14
14
 
15
15
  const state: {
16
16
  renderer?: CliRenderer
17
- exiting?: Promise<void>
17
+ exiting?: Promise<never>
18
18
  listenersInstalled?: boolean
19
19
  } = {}
20
20
 
@@ -60,15 +60,15 @@ export function initializeShutdown(renderer: CliRenderer): void {
60
60
  state.listenersInstalled = true
61
61
  }
62
62
 
63
- export function requestShutdown(code = 0): Promise<void> {
63
+ export function requestShutdown(code = 0): Promise<never> {
64
64
  if (state.exiting) {
65
65
  return state.exiting
66
66
  }
67
67
 
68
68
  state.exiting = (async () => {
69
- process.exitCode = code
70
69
  destroyRenderer()
71
70
  resetTerminalModes()
71
+ process.exit(code)
72
72
  })()
73
73
 
74
74
  return state.exiting