pinokiod 3.166.0 → 3.167.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/kernel/shell.js CHANGED
@@ -1139,7 +1139,11 @@ class Shell {
1139
1139
  // console.log("KILL PTY", this.id)
1140
1140
  if (this.ptyProcess) {
1141
1141
  if (cb) {
1142
- kill(this.ptyProcess.pid, "SIGKILL", true)
1142
+ try {
1143
+ kill(this.ptyProcess.pid, "SIGKILL", true)
1144
+ } catch (e) {
1145
+ console.log("Kill Error", e)
1146
+ }
1143
1147
  this.ptyProcess.kill()
1144
1148
  this.ptyProcess = undefined
1145
1149
  // automatically remove the shell from this.kernel.shells
@@ -1150,7 +1154,11 @@ class Shell {
1150
1154
  }
1151
1155
  cb()
1152
1156
  } else {
1153
- kill(this.ptyProcess.pid, "SIGKILL", true)
1157
+ try {
1158
+ kill(this.ptyProcess.pid, "SIGKILL", true)
1159
+ } catch (e) {
1160
+ console.log("Kill Error", e)
1161
+ }
1154
1162
  this.ptyProcess.kill()
1155
1163
  this.ptyProcess = undefined
1156
1164
  // automatically remove the shell from this.kernel.shells
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.166.0",
3
+ "version": "3.167.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -6290,7 +6290,10 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
6290
6290
  }
6291
6291
  let default_selection = document.querySelector(".dynamic .submenu [data-default]")
6292
6292
  if (default_selection) {
6293
- console.log("CLICK default")
6293
+ const targetAttr = default_selection.getAttribute('target') || ''
6294
+ if (typeof targetAttr === 'string' && targetAttr.startsWith('@http')) {
6295
+ ignorePersistedSelection = true
6296
+ }
6294
6297
  default_selection.click()
6295
6298
  }
6296
6299
  rendered = true
@@ -6449,13 +6452,6 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
6449
6452
  refresh_du()
6450
6453
  refresh_du("logs")
6451
6454
  } else {
6452
- if (event.data.type === 'start') {
6453
- const frameCandidate = (typeof event.data.frame === 'string' ? event.data.frame : null)
6454
- const frameName = frameCandidate || resolveFrameName(frameCandidate, event.source) || resolveFrameName(null, event.source)
6455
- if (typeof frameName === 'string' && frameName.startsWith('@http')) {
6456
- ignorePersistedSelection = true
6457
- }
6458
- }
6459
6455
  refresh()
6460
6456
  }
6461
6457
  }