Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Releases before 1.4.5 are described on the
[Releases](https://github.com/Dhiva-Labs/SecureShellGo/releases) page.

## 1.6.0 - 2026-11-15
## 1.6.0 - 2026-11-16

The AI Bridge: let an AI assistant read from the servers you choose, read-only, without ever giving it a password or key.

Expand All @@ -23,6 +23,7 @@ The AI Bridge: let an AI assistant read from the servers you choose, read-only,
- A change to a paired assistant or to a server's AI access that cannot be written to disk is undone and reported, so what the app shows always matches what is stored. A revoke that cannot be saved says the pairing still works.
- The manual route puts the token in your shell's history file when you paste its third command, and the screen says so under the commands; "Connect Claude Code" does not. Delete that history line afterwards, or revoke the assistant and pair again if the history is shared.
- The activity log file is created so that only your user account can read it.
- An AI Bridge read on a server whose login shell is fish cannot be made to run text the app did not intend through a file name, folder or pattern that contains a backslash. Commands are quoted so that no login shell (fish included) reads a backslash as anything but a backslash.

### Added
- AI Bridge, on Linux and Windows: let an MCP-compatible AI assistant on your computer read from your servers, by name, without ever being given a password or key. It is off by default. Switch on "AI Bridge" in Settings (the app explains what it does each time you switch it on), pair an assistant under "Connect an assistant" to get a token and a ready-made config snippet, then switch on "AI access (read-only)" for each server you want it to see.
Expand All @@ -39,6 +40,11 @@ The AI Bridge: let an AI assistant read from the servers you choose, read-only,
### Changed
- The AI Bridge is not available on Android or macOS.

### Fixed
- A backup no longer resets "Copy on select" to off when you restore it.
- Importing a backup no longer resets the app's language to the system default.
- An assistant that disconnects before the app has answered it no longer leaves an error behind in the app.

## 1.5.1 - 2026-11-03

Smoother copy and paste in the terminal, less in the way across the app, and trusted server keys that are no longer lost or flagged without cause.
Expand Down
6 changes: 4 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ secureshellgo (1.6.0~noble1) noble; urgency=medium
time), "Shared hosts" and an Activity list of every call made; "Connect
Claude Code" sets it up in one step where the claude program is found.
* A secureshellgo-mcp launcher in every package; one-click connect is not
available in the snap or the Flatpak. The full list is in CHANGELOG.md.
available in the snap or the Flatpak.
* A backup keeps "Copy on select" and the app's language.
The full list is in CHANGELOG.md.

-- Dhiva Labs <dhivakar1010@gmail.com> Sun, 15 Nov 2026 12:00:00 +0530
-- Dhiva Labs <dhivakar1010@gmail.com> Mon, 16 Nov 2026 22:00:00 +0530

secureshellgo (1.5.1~noble1) noble; urgency=medium

Expand Down
1 change: 0 additions & 1 deletion docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ One file per piece of work, named for it:
| `remote-ops.md` | Commands on many servers, archive and search actions |
| `mosh.md` | Mosh |
| `localization.md` | Translations |
| `backup-settings.md` | Backups no longer reset "Copy on select" |

Write for the people using the app, in the sections `CHANGELOG.md` uses:
`### Added`, `### Changed`, `### Fixed`, `### Security`. One line per change,
Expand Down
4 changes: 0 additions & 4 deletions docs/changes/backup-settings.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/privacy-policy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Privacy Policy — SecureShell Go

**Effective date:** 14 November 2026
**Effective date:** 16 November 2026
**Applies to:** SecureShell Go 1.5 and later, published by Dhiva Labs, on
Android (Google Play, `com.dhivalabs.secure_shell_go`), Windows (Microsoft
Store and the `.zip` builds on GitHub) and Linux (Snap Store, the Launchpad
Expand Down
2 changes: 1 addition & 1 deletion docs/privacy-policy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<h1>Privacy Policy — SecureShell Go</h1>

<p class="meta">
<strong>Effective date:</strong> 14 November 2026<br>
<strong>Effective date:</strong> 16 November 2026<br>
<strong>Applies to:</strong> SecureShell Go 1.5 and later, published by Dhiva Labs, on Android (Google Play, <code>com.dhivalabs.secure_shell_go</code>), Windows (Microsoft Store and the <code>.zip</code> builds on GitHub) and Linux (Snap Store, the Launchpad PPA and the <code>.tar.gz</code> builds on GitHub), and to the unsigned macOS build on GitHub.
</p>

Expand Down
46 changes: 40 additions & 6 deletions lib/services/bridge/bridge_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ import 'bridge_tool_types.dart';

/// The commands the read tools run, separate from execution so the quoting
/// can be asserted character for character. Every value that comes from an
/// assistant reaches the shell only through [posixSingleQuote]; numbers are
/// validated ints before they get here.
/// assistant reaches a shell only through a quoting function: values inside
/// a template (parsed by `/bin/sh`) through [posixSingleQuote], and the
/// whole template on the login shell's command line through
/// [BridgeCommands.loginShellQuote]; numbers are validated ints before they
/// get here.
class BridgeCommands {
const BridgeCommands._();

Expand Down Expand Up @@ -64,9 +67,15 @@ class BridgeCommands {
/// does not reliably stop a remote process that has no terminal. A TERM
/// or HUP sent to the wrapper itself is passed on in the same way.
///
/// The outer command is one `sh -c` with single-quoted arguments, which
/// every login shell parses the same way; the template reaches the inner
/// shell as `$1`, quoted once.
/// Two layers, two parsers. The OUTER command line returned here is parsed
/// by the account's LOGIN shell (sh, bash, zsh, fish, ...), so the template
/// reaches it through [loginShellQuote]. The wrapper script is fixed text
/// with no backslash, and runs under `sh -c`. The template itself (built
/// by [journal], [tailFile], [findByName] and the other command classes)
/// reaches `/bin/sh -c "$1"` as plain data and is parsed by `/bin/sh`
/// alone, so the values quoted INSIDE a template use [posixSingleQuote],
/// which is exact for `/bin/sh`. Never let a login shell parse a
/// [posixSingleQuote]d value: under fish a backslash is special there.
static String supervised(String command) {
const wrapper = r'''exec 3<&0
t=
Expand All @@ -91,7 +100,32 @@ s=$?
kill $w 2>/dev/null
exit $s''';
return 'sh -c ${posixSingleQuote(wrapper)} ssg-bridge '
'${posixSingleQuote(command)}';
'${loginShellQuote(command)}';
}

/// [value] as one word for any login shell's command line, not only the
/// POSIX ones. [posixSingleQuote] is exact for sh, bash and zsh, but fish
/// reads `\\` and `\'` inside single quotes as escapes, so a value with a
/// backslash comes out changed, and one ending in a backslash escapes its
/// closing quote. Here no backslash is ever inside single quotes: a quote
/// is `'\''` (a backslash outside any quotes) and a backslash is `'"\\"'`
/// (double quotes, where `\\` is one backslash in sh, bash, zsh and fish
/// alike). For a value with no backslash the result is exactly
/// [posixSingleQuote]'s.
static String loginShellQuote(String value) {
final out = StringBuffer("'");
for (final unit in value.runes) {
final c = String.fromCharCode(unit);
if (c == "'") {
out.write(r"'\''");
} else if (c == r'\') {
out.write(r"""'"\\"'""");
} else {
out.write(c);
}
}
out.write("'");
return out.toString();
}

/// Seconds `search_files` gives `find` when the server has `timeout`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</developer>
<content_rating type="oars-1.1"/>
<releases>
<release version="1.6.0" date="2026-11-15"/>
<release version="1.6.0" date="2026-11-16"/>
<release version="1.5.1" date="2026-11-03"/>
<release version="1.5.0" date="2026-10-28"/>
<release version="1.4.4" date="2026-08-07"/>
Expand Down
2 changes: 1 addition & 1 deletion store/play-data-safety.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Answers for Play Console → App content → Data safety, question by question,
with the reasoning and the code behind each one. They match
`docs/privacy-policy.md` (effective 14 November 2026), so the form and the
`docs/privacy-policy.md` (effective 16 November 2026), so the form and the
policy say the same thing. Definitions are Google's, from the Play Console
Help article "Provide information for Google Play's Data safety section":

Expand Down
Loading
Loading