From 2f42f1cd55610e94565bf924f6c3035477d2d311 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Tue, 10 Nov 2026 15:07:53 +0000 Subject: [PATCH 1/7] chore: pull sponsor logos from the docs site --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3aba472..11bac70 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,10 @@ For a paid sponsor spot, email [mail@termix.site](mailto:mail@termix.site). Hetzner +    + + Ember Swan + From e26564083151b739e7d9bbe933b15c5f458f16c6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:34:26 +0000 Subject: [PATCH 2/7] chore: update the demo video link --- README.md | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 11bac70..f359e21 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ -Watch the demo on YouTube +Watch the demo on YouTube diff --git a/manifest.json b/manifest.json index 00f4ef2..07b8845 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "license": "Apache-2.0", "repository": "https://github.com/Termix-SSH/Plugin-SSH-Terminal", "docs": "https://docs.termix.site/plugins/ssh-terminal", - "video": "https://www.youtube.com/watch?v=htdU7pw1fiw", + "video": "https://www.youtube.com/watch?v=A8mSVayxS7o", "category": "Terminal", "icon": "SquareTerminal", "features": [ From 387cbb2089c8b5a8787944c788a07412043e525e Mon Sep 17 00:00:00 2001 From: LukeGus Date: Wed, 11 Nov 2026 22:29:20 -0600 Subject: [PATCH 3/7] chore: harden workflows and add Dependabot for actions --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/ci.yml | 5 +++-- .github/workflows/release.yml | 12 ++++++------ 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..42322b4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +updates: + # Keeps the SHA pinned actions current. The cooldown skips releases younger + # than a week. + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + actions: + patterns: + - "*" + commit-message: + prefix: chore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcddc29..819dfef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,10 @@ on: branches: [main] pull_request: -permissions: - contents: read +permissions: {} jobs: check: + permissions: + contents: read uses: Termix-SSH/Termix-Registry/.github/workflows/plugin-ci.yml@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 117bfd6..516932d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ name: Release -# Run by hand from a dev-X.Y.Z branch. stable releases X.Y.Z and merges the -# branch into main; beta publishes X.Y.Z-beta.N for plugins on the beta -# channel. overwrite releases the manifest version again from this commit. +# Official plugins release from Termix-SSH/Termix-Registry with the Release +# Plugin workflow. This one refuses Termix-SSH repos right away, so it needs +# no secrets and only read access. on: workflow_dispatch: @@ -25,13 +25,13 @@ on: - overwrite - dry-run -permissions: - contents: write +permissions: {} jobs: release: + permissions: + contents: read uses: Termix-SSH/Termix-Registry/.github/workflows/plugin-release.yml@main with: channel: ${{ inputs.channel }} mode: ${{ inputs.mode }} - secrets: inherit From 60101423e4f3e2b16592fb9c12b1a968b6960c68 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Thu, 12 Nov 2026 00:41:55 -0600 Subject: [PATCH 4/7] chore: update dependencies with security fixes and add npm to Dependabot --- .github/dependabot.yml | 22 +++++ package-lock.json | 202 +++++++---------------------------------- package.json | 4 +- 3 files changed, 60 insertions(+), 168 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 42322b4..5296fb1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,27 @@ version: 2 updates: + # npm waits 3 days after a release. Minor and patch updates come as one + # weekly PR, each major as its own PR. Security updates skip the wait. + - package-ecosystem: npm + directories: + - "/" + schedule: + interval: weekly + cooldown: + default-days: 3 + groups: + npm-minor-patch: + applies-to: version-updates + update-types: + - minor + - patch + open-pull-requests-limit: 10 + # SDK bumps go with engine.termix changes, so they are made by hand. + ignore: + - dependency-name: "@termix-ssh/plugin-sdk" + commit-message: + prefix: chore + # Keeps the SHA pinned actions current. The cooldown skips releases younger # than a week. - package-ecosystem: github-actions diff --git a/package-lock.json b/package-lock.json index 4b17e90..5da1e86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1653,16 +1653,6 @@ "url": "https://opencollective.com/libvips" } }, - "node_modules/@isaacs/cliui": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz", - "integrity": "sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, "node_modules/@isaacs/fs-minipass": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", @@ -1676,6 +1666,13 @@ "node": ">=18.0.0" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -2987,19 +2984,19 @@ } }, "node_modules/body-parser": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", - "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", + "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", "license": "MIT", "peer": true, "dependencies": { "bytes": "^3.1.2", - "content-type": "^2.0.0", + "content-type": "^2.1.0", "debug": "^4.4.3", "http-errors": "^2.0.1", - "iconv-lite": "^0.7.2", + "iconv-lite": "^0.7.3", "on-finished": "^2.4.1", - "qs": "^6.15.2", + "qs": "^6.16.1", "raw-body": "^3.0.2", "type-is": "^2.1.0" }, @@ -3319,21 +3316,6 @@ "node": ">=0.8" } }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/css-tree": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", @@ -3847,9 +3829,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz", - "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", "dev": true, "funding": [ { @@ -3903,23 +3885,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -4028,24 +3993,18 @@ } }, "node_modules/glob": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-12.0.0.tgz", - "integrity": "sha512-5Qcll1z7IKgHr5g485ePDdHcNQY0k2dtv/bjYy0iuyGxQw2qSOiiXUXJ+AYQpg3HNoUMHqAruX478Jeev7UULw==", + "version": "14.0.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-14.0.4.tgz", + "integrity": "sha512-mMiwNKoJZ4HAIRVJxotO6LsNRReA30gQwP9E2/p94tfLv+jygCNpKDjhhSL6OLY6LE371EZm5EAf7RpYuUqlsw==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "foreground-child": "^3.3.1", - "jackspeak": "^4.1.1", - "minimatch": "^10.1.1", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" + "minimatch": "^11.0.5", + "minipass": "^7.1.3", + "path-scurry": "^3.0.0" }, "engines": { - "node": "20 || >=22" + "node": "18 || 20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -4317,29 +4276,6 @@ "license": "MIT", "peer": true }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/jackspeak": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.2.3.tgz", - "integrity": "sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^9.0.0" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/jiti": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", @@ -4859,16 +4795,17 @@ } }, "node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.5.tgz", + "integrity": "sha512-snPlVppFcYWfLLFQGhDxUyBcHNtMlWmn3jtj7pEaO+DP8pqL0IvAzXhMYmn1z9ASNtgmwLBdFxSf4tMUB0OTKA==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.8" + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -4905,9 +4842,9 @@ "peer": true }, "node_modules/multer": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/multer/-/multer-2.4.0.tgz", - "integrity": "sha512-7dqa0ZcFfzbefdTuIkzOSMvZWC0J7FLqBOjJUZvDCXShIURWKxAyTT1wHhnE5q19c7jOJf43IYYKjBmZVZmvhg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.5.0.tgz", + "integrity": "sha512-BsqOzYGVq49JcW2IzoSAxeKYRevb+dGGPPWleOR8Lrlk4igwxu1/9pwSXlByhCb7MVZDrNJFC0IBP5/O5nLYRw==", "license": "MIT", "peer": true, "dependencies": { @@ -5082,13 +5019,6 @@ "license": "MIT", "peer": true }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "license": "BlueOak-1.0.0" - }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -5144,20 +5074,10 @@ "node": ">= 0.8" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/path-scurry": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", - "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.0.tgz", + "integrity": "sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { @@ -5639,29 +5559,6 @@ } } }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/side-channel": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", @@ -5745,19 +5642,6 @@ "dev": true, "license": "ISC" }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/sonner": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.8.tgz", @@ -6655,22 +6539,6 @@ "node": "^22.14.0 || >=24.0.0" } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/why-is-node-running": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", diff --git a/package.json b/package.json index 6863a52..4536072 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,9 @@ "overrides": { "react-xtermjs": { "@xterm/xterm": "$@xterm/xterm" - } + }, + "glob@12": "^14.0.4", + "minimatch@10": "^11.0.5" }, "lint-staged": { "*.{ts,tsx,js,jsx,mjs,cjs,json,css,md}": [ From 79f1d4ebc6d9cbbbee2b35270076c8bdfbded6d0 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Thu, 12 Nov 2026 16:19:01 -0600 Subject: [PATCH 5/7] chore: add authorization table --- authz.json | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 authz.json diff --git a/authz.json b/authz.json new file mode 100644 index 0000000..715bbbb --- /dev/null +++ b/authz.json @@ -0,0 +1,91 @@ +{ + "$schema": "https://raw.githubusercontent.com/Termix-SSH/Termix/main/scripts/authz/authz.schema.json", + "seed": [], + "routes": { + "GET /plugin-api/ssh-terminal/client-settings": { + "access": "user" + }, + "POST /plugin-api/ssh-terminal/command-history": { + "access": "user" + }, + "DELETE /plugin-api/ssh-terminal/command-history/:hostId": { + "access": "user", + "resource": { + "kind": "host", + "min": "connect" + }, + "destructive": true, + "filtered": true, + "note": "History is per user, so this reaches only the caller own rows" + }, + "GET /plugin-api/ssh-terminal/command-history/:hostId": { + "access": "user", + "resource": { + "kind": "host", + "min": "connect" + }, + "filtered": true, + "note": "History is per user, so this reaches only the caller own rows" + }, + "GET /plugin-api/ssh-terminal/command-history/:hostId/recent": { + "access": "user", + "resource": { + "kind": "host", + "min": "connect" + }, + "filtered": true, + "note": "History is per user, so this reaches only the caller own rows" + }, + "POST /plugin-api/ssh-terminal/command-history/delete": { + "access": "user", + "destructive": true + }, + "GET /plugin-api/ssh-terminal/default-appearance": { + "access": "user" + }, + "PUT /plugin-api/ssh-terminal/hosts/:hostId/auto-tmux": { + "access": "user", + "resource": { + "kind": "host", + "min": "connect" + }, + "body": { + "enabled": true + } + }, + "POST /plugin-api/ssh-terminal/image-storage/test": { + "access": "user" + }, + "POST /plugin-api/ssh-terminal/image-upload": { + "access": "user" + }, + "GET /plugin-api/ssh-terminal/sessions": { + "access": "user" + }, + "PUT /plugin-api/ssh-terminal/user-settings": { + "access": "user" + }, + "POST /plugin-api/ssh-terminal/watch-alert": { + "access": "user", + "resource": { + "kind": "host", + "min": "connect", + "key": "hostId" + }, + "body": { + "hostId": "{{host}}", + "rule": "authz-rule" + } + }, + "WS /plugin-ws/ssh-terminal/local-terminal": { + "access": "user", + "allowed": "any", + "note": "Desktop app only" + }, + "WS /plugin-ws/ssh-terminal/terminal": { + "access": "user", + "note": "Share link guests arrive with a shareToken instead of a session; the run also checks a read only guest cannot type", + "allow": ["guest"] + } + } +} From de139aed26b0b9fa18b4fc7c2cf79d82d534e7b6 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Sun, 15 Nov 2026 15:34:17 -0600 Subject: [PATCH 6/7] chore: skip majors of the packages core shares with plugins --- .github/dependabot.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5296fb1..31fe4c4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -19,6 +19,22 @@ updates: # SDK bumps go with engine.termix changes, so they are made by hand. ignore: - dependency-name: "@termix-ssh/plugin-sdk" + # Core shares one copy of these with every plugin, so their majors + # follow core and the SDK. + - dependency-name: "react" + update-types: ["version-update:semver-major"] + - dependency-name: "react-dom" + update-types: ["version-update:semver-major"] + - dependency-name: "@types/react" + update-types: ["version-update:semver-major"] + - dependency-name: "@types/react-dom" + update-types: ["version-update:semver-major"] + - dependency-name: "i18next" + update-types: ["version-update:semver-major"] + - dependency-name: "react-i18next" + update-types: ["version-update:semver-major"] + - dependency-name: "sonner" + update-types: ["version-update:semver-major"] commit-message: prefix: chore From ca0f4041cd1780c050590dac09e84b7c6c6f8a57 Mon Sep 17 00:00:00 2001 From: Giovanny Aranda Date: Mon, 16 Nov 2026 12:41:22 +0100 Subject: [PATCH 7/7] fix: close the local terminal tab when its shell exits Match SSH sessions: when the local shell exits, close the tab instead of leaving it open with a "Process exited" message. --- src/frontend/index.tsx | 9 ++++++++- src/frontend/local-terminal/LocalTerminal.tsx | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/frontend/index.tsx b/src/frontend/index.tsx index 8be129d..8dce0ed 100644 --- a/src/frontend/index.tsx +++ b/src/frontend/index.tsx @@ -109,7 +109,13 @@ function TerminalStandalone({ hostId, params }: StandaloneViewProps) { } /** The desktop app's own shell, one tab per open. */ -function LocalTerminalTab({ tab, isVisible, isFocusedPane, label }: TabProps) { +function LocalTerminalTab({ + tab, + isVisible, + isFocusedPane, + label, + shell, +}: TabProps) { return ( shell.closeTab(tab.id)} /> ); diff --git a/src/frontend/local-terminal/LocalTerminal.tsx b/src/frontend/local-terminal/LocalTerminal.tsx index 61c9a8c..4d519a3 100644 --- a/src/frontend/local-terminal/LocalTerminal.tsx +++ b/src/frontend/local-terminal/LocalTerminal.tsx @@ -42,12 +42,14 @@ export function LocalTerminal({ sessionId = instanceId, isFocusedPane = false, label, + onClose, }: { instanceId: string; isVisible: boolean; sessionId?: string; isFocusedPane?: boolean; label?: string; + onClose?: () => void; }) { const { t } = useTranslation(); // Read via a ref inside the session-lifecycle effect below so a language @@ -55,6 +57,9 @@ export function LocalTerminal({ // the running local shell and spawn a new session. const tRef = useRef(t); tRef.current = t; + // Kept in a ref so a new callback identity doesn't restart the shell. + const onCloseRef = useRef(onClose); + onCloseRef.current = onClose; const { theme: appTheme } = useTheme(); const api = usePluginApi(); // The same look as SSH terminals get from the user's host defaults. @@ -288,6 +293,11 @@ export function LocalTerminal({ } else if (frame.type === "exit") { sessionReadyRef.current = false; emitSessionMessage({ type: "session_closed" }); + // Close the tab when the shell ends, like SSH sessions do. + if (onCloseRef.current) { + onCloseRef.current(); + return; + } terminal.write( `