提交 Haven Android 仓库源码 v5.87.79

This commit is contained in:
ali
2026-09-10 13:45:36 +08:00
parent 87b452c4dc
commit 22f4ca5830
2524 changed files with 599455 additions and 1 deletions
@@ -0,0 +1,8 @@
- Unified build: RDP now available on F-Droid (IronRDP built from source)
- Fix Mosh blank screen in release builds (R8 protobuf fix)
- Fix Mosh character doubling (SSP diff base validation)
- Fix tmux scrollback corruption during rapid scroll region changes
- Per-connection "Disable alternate screen" toggle for GNU screen
- Mosh/ET/RDP verbose logging with share/copy in connection log
- Tab labels show session names; + button moved away from close x
- Terminal data recorder for debugging rendering issues
@@ -0,0 +1,4 @@
- Added biometric unlock for app access
- Added terminal font size setting (8-32sp)
- Added theme picker (system, light, dark)
- Added About dialog with version info and GitHub link
@@ -0,0 +1,5 @@
- Multiple terminal tabs per server — open several shells on the same host
- Tab bar with close buttons and "+" to add new tabs
- Session manager integration (tmux, zellij, screen, byobu)
- Auto-reconnect with exponential backoff on connection drop
- ANSI escape stripping for session manager output
@@ -0,0 +1,2 @@
- Fix paste dropping repeated characters (e.g. "ll" in "hello")
- Disable page swipe gesture during terminal text selection
@@ -0,0 +1,3 @@
- Selection toolbar with d-pad for precise text selection
- Independent start/end anchor control via Start/End toggle
- Copy button and selection mode toggle (block/line)
@@ -0,0 +1,6 @@
- Reticulum connection type alongside SSH (rnsh terminal sessions)
- Local Sideband and direct TCP gateway modes for Reticulum
- Announce-based destination discovery with speculative Sideband probe
- Session rename via pencil icon in connection/terminal session pickers
- Tab rename via long-press
- Per-connection Reticulum config, paste dedup fix, word-level selection
@@ -0,0 +1,10 @@
Major update since v3.17.0:
- Native Wayland desktop with GPU-accelerated compositor (labwc), waybar panel, app launcher
- Cloud storage: 60+ providers via rclone with sync, streaming, and DLNA
- RDP now available on F-Droid (IronRDP built from source)
- Mosh and Eternal Terminal for roaming connections
- FIDO2 hardware key support (NFC/USB)
- Tailscale peer auto-discovery
- Voice input and autocomplete mode
- Multi-desktop management
- SMB file share browsing
@@ -0,0 +1,4 @@
- Swipe-to-scroll in mouse mode (Zellij, vim, etc.)
- Fix terminal not resizing when keyboard opens/closes
- Sort Zellij sessions alphabetically
- LoRa discovery with active path requests and periodic refresh
@@ -0,0 +1,6 @@
- Set ndkVersion to r28c for F-Droid build compatibility
- Fix URL underline extending past wrapped URL on continuation rows
- Fix URL continuation cascade underlining entire screen
- Fix XWayland: clean stale X11 sockets before compositor starts
- Add missing translations for settings_standard_keyboard
- Update F-Droid fastlane metadata with 10 locale translations
@@ -0,0 +1,3 @@
- Add custom mosh-server command field per connection (#73)
- Lets you override the default mosh-server invocation for custom locale,
authbind for ports below 1024, port ranges, or other server options
@@ -0,0 +1,4 @@
- SSH agent forwarding (OpenSSH ForwardAgent) (#75)
- Per-profile "Forward SSH agent" toggle exposes non-encrypted stored
SSH keys to the remote session for git push etc.
- Encrypted keys are skipped (would need mid-session passphrase prompt)
@@ -0,0 +1,4 @@
- Fix host key fingerprint not shown on first connect when auth
fails (#75). Fresh installs now always see the TOFU prompt, even
if the first password or key attempt is wrong.
- Verbose SSH log is still captured for failed initial attempts.
@@ -0,0 +1,4 @@
- Warn when agent forwarding is enabled but all stored SSH keys are
passphrase-protected (or none are stored). Previously the forwarded
agent was silently empty and `ssh-add -l` on the remote returned
nothing with no explanation (#75).
@@ -0,0 +1,5 @@
- Fix FIDO2 SSH keys never detecting the security key (#15).
Discovery of USB and NFC keys is now self-started inside the
assertion flow instead of relying on dead-code entry points
that were never called. Nitrokey, SoloKeys, Feitian, Titan, and
YubiKey should now all light up when SSH auth asks for a touch.
@@ -0,0 +1,5 @@
- Show a dialog during FIDO2 SSH authentication telling you to plug
in or tap your security key, then to touch it once detected.
Previously the connect attempt just spun silently with no
on-screen indication that a security key was being requested
(#15 follow-up).
@@ -0,0 +1,8 @@
- Fix arrow keys not working in Mutt (and other ncurses-based apps)
over Mosh (#73). The mosh client was sending each byte of an
escape sequence like `ESC O A` in its own protobuf instruction,
and mosh-server was writing them to the pty in separate calls.
ncurses' ESC-timeout interpreted the gaps as a bare ESC followed
by O and A, and Mutt showed "key is not bound". Consecutive
keystroke bytes are now coalesced into a single instruction,
matching upstream mosh-client's `UserStream::diff_from`.
@@ -0,0 +1,10 @@
- Connect dialog no longer says "Leave empty to connect with SSH
key" for profiles with a passphrase-protected key assigned —
the field is now labelled "Key passphrase" and the hint reflects
the actual key name. Previously entering nothing gave a silent
JSch decrypt failure (#75).
- Enable Verbose SSH logging in Settings to see agent-forwarding
diagnostics: identities registered/skipped, the full JSch
identity repo contents, and each shell/exec channel that opens
agent forwarding. Helps diagnose "ssh-add -l empty on remote"
issues (#75).
@@ -0,0 +1,10 @@
- Fix SSH from inside a forwarded-agent session to a second host
(#75). Bumps JSch from 0.2.21 to 2.28.0 to pick up upstream's
fix for mwiede/jsch#852 — ChannelAgentForwarding was leaving
its buffer in a bad state after an unknown agent message,
breaking OpenSSH 9.x's bind_hostkey + REQUEST_IDENTITIES
sequence. `ssh-add -l` already worked; `ssh user@other` now
does too.
- Adds OpenSSH certificate support, mlkem/sntrup post-quantum
KEX algorithms, and other improvements from three years of
upstream JSch development. No API breakage affecting Haven.
@@ -0,0 +1,3 @@
- Fix SSH reconnection on network drop
- Add cooldown between scroll drag and copy selection
- Block accidental selection on horizontal drag
@@ -0,0 +1,9 @@
- Fix Mosh display corruption after login (cursor below prompt,
freezes after a few Returns, arrow keys appearing "not bound"
in Mutt). Haven's mosh client was lying about its state number
when a diff arrived with a base it couldn't apply, causing the
server to throw away exactly the states the client still needed
and producing cumulative display drift. Now matches upstream
mosh's Transport::recv() semantics and leaves the state number
alone on mismatch so the server retransmits with a base the
client can match. (#73)
@@ -0,0 +1,6 @@
- Fix the first bottom-nav tab wrapping to two lines on narrower
devices (reported on a Samsung S23). The app module had a
duplicate `nav_connections = "Connections"` shadowing the
shorter "Connect" string in :core:ui; removed the duplicate
and hardened the nav label to one line with ellipsis so no
locale can wrap in the future (#78).
@@ -0,0 +1,10 @@
- Fix tap-to-open hyperlink detection swallowing normal text that
follows a URL on the same line. Previously "https://…/78. i
think…" was resolved as one giant "ithinktheis…" blob because
the wrapped-URL reassembler collapsed any whitespace between
URL-safe characters regardless of row boundary. The detector
now preserves within-row whitespace and only joins rows that
are genuine URL continuations (next row must start URL-safe at
column 0, no leading indentation). Same fix applied to the
visual underline continuation so it no longer extends onto
prose below a URL either.
@@ -0,0 +1,10 @@
Native Kotlin Reticulum transport (issue #79)
- Replace Python/Chaquopy rnsh stack with pure Kotlin implementation
(reticulum-kt + rnsh-kt)
- Two-way terminal sessions over IFAC-protected TCP gateways
- Announce-based rnsh node discovery with scan button
- IFAC network name and passphrase support in connection profiles
- New ReticulumTransport interface with Flow-based I/O
- Debug receiver for ADB-driven testing (debug builds only)
- Room migration 28→29 for IFAC credential fields
@@ -0,0 +1,8 @@
SSH post-login command (issue #80)
- New "Post-login command" field in SSH and Reticulum connection settings
- Command auto-sends after shell prompt detection on login
- Works with session managers (tmux, screen, zellij, byobu)
- "Run before session manager" toggle controls execution order
- Improved ANSI escape stripping for prompt detection inside tmux
- Added support for custom prompt chars (e.g. starship ❯)
@@ -0,0 +1,7 @@
Fix terminal scroll corruption during animations
- Fix scroll position drift from accidental touch during text animations
- Auto-recover when scrollbackPosition drifts 1–3 lines from bottom
- Snap flings settling near bottom fully to position 0
- Fix moverect double-damage inefficiency in libvterm callback
- Add 26 unit tests for scroll state behavior
@@ -0,0 +1,4 @@
Show agent-forwarding warning only once per session (#75)
- "Agent will be empty" toast now shows once per profile per app session
instead of on every connection
@@ -0,0 +1,7 @@
Fix Mosh arrow keys in Mutt and reduce display lag (#73)
- Wake send loop immediately when a server diff is applied, so the
ack reaches the server within 20ms instead of up to 3 seconds
- Eliminates cascading diff skips that caused DECCKM mode divergence
(arrow keys generating wrong escape sequences in Mutt)
- Reduces display lag during rapid output (login banners, scrolling)
@@ -0,0 +1,17 @@
v5.0.0: FFmpeg media tools, local file browser, HLS streaming
FFmpeg 8.0 integration:
- Convert media files (H.264, H.265, VP9, MP3) from any file browser tab
- Filter UI with one-tap presets (Stabilize, Fix Colors, Enhance,
Normalize Audio) and fine-grained sliders for brightness, contrast,
saturation, gamma, sharpen, denoise, speed, volume
- Live CLI command preview shows the exact ffmpeg command being built
- Stream any media file to other devices via HLS — opens an HTML5
player in the browser at http://phone-ip:8080/
Local file browser:
- Always-present "Local" tab in Files for on-device storage
- Browse Internal Storage, Downloads, and App Cache
- Tap files to open with system apps
- Editable path bar — tap to type a path directly
- Convert and stream local files without any server connection
@@ -0,0 +1,23 @@
v5.1.0: Convert dialog preview, encoder/container selection
Preview:
- Frame preview in convert dialog — see filter effects before converting
- Tap preview for fullscreen view, survives screen rotation
- Seek slider to preview any point in the file
- Audio preview — plays a 5-second clip with current filters applied
Encoder selection:
- Separate dropdowns for container format, video encoder, and audio encoder
- Video containers: MP4, MKV, WebM, MOV, AVI, MPEG-TS
- Audio containers: MP3, WAV, OGG, Opus, FLAC, M4A
- Stream copy option for both video and audio (no re-encoding)
Audio-only files:
- Auto-detected via ffprobe (album art excluded)
- Video preview and video encoder hidden for audio files
- Only audio container formats shown
Other:
- Auto color correction resets manual color sliders to defaults
- FFmpeg build config opened up — all codecs/formats/filters enabled
- Fix MediaStore API level lint warning for API < 29
@@ -0,0 +1,8 @@
v5.1.1: Shizuku detection fix, translation fixes
- Fix Shizuku service detected as not running (#82): switched from
synchronous pingBinder() to async binder listeners so the connection
has time to establish after app startup
- Add missing translations for convert/stream strings in all locales
- Fix MediaStore Downloads API level check for Android 8-9
- Update README with Media Convert feature section
@@ -0,0 +1,11 @@
v5.1.2: DynamicForward (SOCKS5 proxy) support
- Add DynamicForward (-D / SOCKS5) support (#83): third port forward
type that runs a local SOCKS5 proxy server and tunnels each accepted
connection through an SSH direct-tcpip channel
- Point browsers, system proxy settings, or apps at 127.0.0.1:<port>
to route traffic through the SSH server
- Supports SOCKS5 with no auth, CONNECT command, IPv4/IPv6/domain
destinations. SOCKS4 and username/password auth not supported.
- Available in the Port Forwards dialog alongside Local (-L) and
Remote (-R) as a third chip: "Dynamic (-D)"
@@ -0,0 +1,23 @@
v5.1.3: VNC VeNCrypt + HLS video streaming fix
VNC:
- Add VeNCrypt (RFB security type 19) with TLSPlain, X509Plain,
TLSVnc, X509Vnc, TLSNone, X509None, and Plain sub-types (#76)
- Connects to wayvnc, TigerVNC, libvncserver, x11vnc servers that
require a username in addition to a password
- Wraps the socket in TLS after sub-type selection — all RFB traffic
after authentication is encrypted
- Add vncUsername field to connection profiles (DB migration 31→32)
HLS media streaming:
- Fix video streaming failing with MEDIA_ERR_SRC_NOT_SUPPORTED on
Chrome: force H.264 Main profile level 4.0, cap at 1920x1080,
cap at 30fps, yuv420p pixel format. Portrait screen recordings
(e.g. 1344x2992 @ 55fps) now play correctly.
- HLS player starts muted to satisfy Chrome's autoplay policy,
with a "Tap to unmute" overlay button
- Playlist is now properly marked as VOD with #EXT-X-PLAYLIST-TYPE
- Removed append_list hls_flag (was producing spurious
EXT-X-DISCONTINUITY markers)
- Silent -an flag for video inputs with no audio track (avoids the
"b:a unused" warning)
@@ -0,0 +1,20 @@
v5.2.0: Rclone HTTP preview + full ffmpeg codec set
Instant preview for cloud files:
- Convert dialog preview now streams over HTTP for rclone files
instead of downloading the whole file first
- First frame appears in seconds regardless of file size — ffmpeg
reads what it needs via Range requests, rclone's VFS disk cache
handles the chunking
- Seek slider is fast — repeat seeks near the same area are served
from the cache
- "Fetching from cloud" indicator shown during rclone preview
generation so you know network is the bottleneck
Full ffmpeg codec set:
- Rebuilt ffmpeg with all built-in decoders, encoders, demuxers,
muxers, parsers, protocols, filters, and bitstream filters enabled
- VP9, VP8, AV1 (native), Theora, WebM, DASH, FLV, WMV, RM and
dozens more formats now decode correctly
- Fixes "no decoder found for vp9" errors on YouTube-sourced files
- Binary size grew from ~14 MB to ~25 MB per executable
@@ -0,0 +1,24 @@
v5.2.1: Rclone convert/stream, destination picker, copy defaults
Convert:
- Rclone convert now streams the source over HTTP instead of downloading
the whole file first — transcode starts in seconds regardless of
file size. New "Download first" toggle forces the legacy full-download
path for offline conversion or flaky connections.
- New "Save to" picker in the convert dialog: "Downloads (this device)"
or "Same folder as source". Uploading back to cloud/SFTP/SMB is
supported with live progress.
- Copy (remux) is now the default for both video and audio encoders —
instant lossless remux for most files. Container auto-matches the
source extension so tapping Convert usually does the right thing
with no changes.
Stream & play:
- HLS streaming now works for rclone files — same HTTP-streaming trick
as the convert preview.
- Stream URL opens in the browser at the device's LAN IP (shareable
from the address bar) and is auto-copied to the clipboard.
- Tap a media file on the rclone tab to play it directly in your
system media player (VLC, MX Player, etc.).
- Fix VLC playback failing on file names with spaces or special
characters — URL path is now properly encoded.
@@ -0,0 +1,13 @@
v5.3.0: MCP agent transport (v1, read-only)
- New Model Context Protocol server — Haven exposes its state
and primitives to local AI agents so a Claude Code instance
running in PRoot (or any MCP-aware client) can work with and
within what you see in the UI.
- Loopback-only HTTP on 127.0.0.1:8730, stateless Streamable
HTTP, JSON-RPC 2.0. Server starts with the app.
- Read-only tool set in v1: get_app_info, list_connections,
list_sessions, list_rclone_remotes, list_rclone_directory.
- Secrets (passwords, keys) redacted from tool outputs.
- No mutation tools yet — convert, upload, delete, disconnect
will ship in v2 behind a per-action consent dialog.
@@ -0,0 +1,11 @@
v5.3.1: MCP agent endpoint is now OFF by default
- The local MCP agent endpoint introduced in v5.3.0 no longer
starts automatically. It must be explicitly enabled in Settings
→ "Agent endpoint (MCP)". The endpoint gives local processes
read access to saved connection profiles, active sessions, and
cloud file listings, so it should be an explicit opt-in.
- When enabled, a "Copy agent endpoint URL" row appears right
below the toggle with a one-tap clipboard copy.
- The server starts/stops reactively as the preference changes;
no app restart needed.
@@ -0,0 +1,17 @@
v5.3.2: PRoot ships with a usable shell out of the box
- Fresh Haven rootfs installs now seed /root/.profile, /root/.inputrc,
/root/README.md, /root/.ssh (0700), and /etc/profile.d/haven.sh
- Baseline apk packages installed on first boot: bash, curl,
ca-certificates, openssh-client (best-effort, ignored if offline)
- /root/.profile ships with PATH, colored prompt, standard aliases
and a `rexec` helper for running commands on a remote host
configured via ~/.ssh/config — the composition primitive Haven's
VISION describes (phone is point-of-presence, remote machines are
compute)
- /root/README.md explains the environment, common apk install
recipes, how to set up SSH to a remote workstation, and how to
enable the "push-to-current-branch" workflow with
receive.denyCurrentBranch=updateInstead
- All defaults are vendor-neutral: no cloned repos, no hardcoded
hosts, no specific CLIs or cloud services, no brand mentions
@@ -0,0 +1,16 @@
v5.3.3: Easy MCP endpoint hookup for local MCP clients
- When the MCP agent endpoint is enabled, Haven now writes a
ready-to-use server config file to
~/.config/haven/mcp-servers.json inside the PRoot rootfs.
Any MCP-compatible client running in PRoot can read/merge/
source it directly — no typing the URL by hand.
- The file is removed when the endpoint is toggled off.
- Settings: new "Copy MCP client config" row that puts the
standard mcpServers JSON snippet on the clipboard, for
clients running outside PRoot (a workstation reached via
SSH, Termux, etc.).
- Settings: new info row showing the in-PRoot path so users
know where the auto-advertised config lives.
- /root/README.md explains the advertised file and shows the
cat one-liner. Vendor-neutral — no specific client named.
@@ -0,0 +1,10 @@
v5.4.0: Stream SFTP media files without downloading
- SFTP browser: the Stream menu entry now works for
media files on SFTP profiles. Haven serves the remote
file over a loopback HTTP bridge backed by
ChannelSftp.get(path, skip), so ffmpeg reads only the
bytes it needs — no full cache download.
- Convert dialog previews for SFTP use the same bridge.
- MCP agent: new list_sftp_directory, stream_sftp_file
and stop_stream tools.
@@ -0,0 +1,11 @@
v5.4.1: Security hardening
- SFTP loopback bridge requires a random per-session
token, blocking other apps from reading SFTP files
via the local port. CORS wildcard removed.
- Biometric app-lock no longer auto-unlocks when the
device biometric is unenrolled.
- FileProvider <root-path> dropped; the credential DB
is no longer reachable via FileProvider URIs.
- SSH passphrases held as CharArray and wiped on
teardown; passwords no longer pass through String.
@@ -0,0 +1,9 @@
v5.4.2: Mosh arrow keys work in mutt / emacs / less
- Mosh sessions now force DECCKM=on at connect, matching
upstream mosh-client. Up/Down/Left/Right now send the
application-mode SS3 escape sequences mutt, emacs, and
less bind to their navigation keymaps. Fixes #73.
- Verified on-device: the client-side libvterm emits
ESC O A for arrow keys from the very first byte of the
mosh session, not ESC [ A as before.
@@ -0,0 +1,12 @@
v5.4.3: Shizuku detection works in release builds
- Fixes #82. Haven could not detect Shizuku on release
builds because R8 was pruning the reflected Shizuku API
methods (pingBinder, addBinderReceivedListenerSticky,
checkSelfPermission, requestPermission, newProcess).
Every reflection lookup threw NoSuchMethodException,
leaving the Settings row stuck on "installed but not
running" even when Shizuku was active.
- Added a ProGuard keep rule for rikka.shizuku.** and
moe.shizuku.**. Verified on a Pixel 8 Pro with a release
APK built via the GitHub Actions signing keys.
@@ -0,0 +1,15 @@
v5.4.4: RDP connections work in release builds
- Fixes #93. RDP connections failed immediately with
"Structure class x5.j has unknown or zero size" because
R8 was renaming the UniFFI-generated JNA Structure
fields (capacity, len, data, etc.) that JNA resolves
reflectively from @Structure.FieldOrder string literals.
With the field names stripped, JNA computed a struct
size of zero and refused to allocate.
- Added ProGuard keep rules for any class extending
com.sun.jna.Structure and for the entire sh.haven.rdp
package. Verified against the R8 dex dump: the
RustBuffer fields (capacity/len/data) are preserved
with their original names and public access.
- Same class of bug as #82 (Shizuku), different library.
@@ -0,0 +1,17 @@
v5.4.5: Reticulum and terminal copy work in release builds
Two latent bugs of the same shape as #82 and #93, found in a
post-ship reflection-in-minified-code sweep:
- Reticulum features were silently broken in release builds.
rns-core and rns-interfaces do extensive class-literal
reflection (link::class.java.getMethod("getLinkId"), etc),
but the consumer-rules.pro keep rule lives in the unused
rns-android module and never reached Haven's R8 pass. Added
explicit keeps for network.reticulum.** and org.msgpack.**.
- Terminal smart copy and word-expand-on-long-press relied on
reflection into TerminalEmulator's internal snapshot flow
(getSnapshot$lib), which Kotlin mangles to getSnapshot$lib_release
in release builds, so selection helpers silently returned null.
Added a public getSnapshotLineTexts() accessor to termlib and
removed the reflection.
@@ -0,0 +1,15 @@
v5.5.0: show-password toggle and prompt-at-connect username
- Show password toggle (#90): every password and passphrase
field now has an eye icon at the trailing edge that switches
between masked and cleartext. Defaults to masked. State is
per-field and survives rotation. Used by the connect/auth
prompt, key passphrase, deploy-key, RDP/SMB/Reticulum edit,
encrypted backup, and key-import dialogs.
- Connection without a saved username (#91): SSH, Mosh, and
Eternal Terminal profiles can now be saved with the username
field left empty. When you connect, Haven prompts for the
username alongside the password instead of requiring one
saved entry per user on the same host. The runtime username
is used only for that session and is not persisted.
@@ -0,0 +1,21 @@
v5.5.1: broaden et-kotlin R8 keep rule (good hygiene)
The proguard rule covering the et-kotlin submodule was scoped
to `sh.haven.et.protocol.**` only, leaving
`sh.haven.et.transport.EtTransport`, `sh.haven.et.crypto.EtCrypto`,
and the top-level `EtLogger` exposed to R8. The v5.5.0 release
mapping confirmed R8 was renaming EtTransport to h5.b and
stripping the ET infrastructure classes. Broadened the rule to
`sh.haven.et.**` to mirror the existing `sh.haven.mosh.**` rule
that already covers the mosh submodule.
Caveat — this is a structural correction, not a validated
causal fix for a reported runtime failure. A user reported
Eternal Terminal failing in v5.4.5 release; a post-fix bisect
on signed v5.4.5 against the same host could not reproduce the
failure. Whatever broke ET originally was something else
(likely transient network or profile state) and self-resolved.
Pure-Kotlin renames across a closed graph should be safe at
runtime — there is no reflection in the et-kotlin source. The
keep rule fix is worth keeping because the rule shape was
demonstrably wrong; it is not worth claiming as a bug fix.
@@ -0,0 +1,42 @@
v5.6.0: clipboard work + toolbar cog dialog fix
Hardware Ctrl+Shift+V now pastes from the Android clipboard
into the terminal, with a Settings → Terminal toggle ('Ctrl+
Shift+V pastes') so users who need the literal key combo
forwarded to the remote can switch the intercept off. Default
on. Goes through the same path the Selection toolbar Paste
button uses, including bracketed-paste mode 2004 wrapping when
the remote app has it active. Implemented as an optional
onPasteShortcut callback on KeyboardHandler so the V key falls
through unchanged when the toggle is off.
VNC inbound clipboard is now wired to the Android system
clipboard. Previously VncViewModel.onRemoteClipboard was a
stub that only logged the text — it now pushes incoming
ServerCutText into ClipboardManager.setPrimaryClip. The
outbound direction (Android → VNC remote) was already wired.
Bug fix: the cog button on the keyboard toolbar reorder bar
opens the Toolbar Configuration dialog directly again. The
previous wiring reset its open-flag inline during composition
(`if (openToolbarConfig) openToolbarConfig = false`), which
raced with the LaunchedEffect inside SettingsScreen — the
launched coroutine that set the dialog state was cancelled by
the immediate flag flip before its body ran, so the cog only
scrolled to Settings without opening the dialog. Replaced with
an onToolbarConfigConsumed callback that the child invokes
after the dialog state has actually been written.
What's verified: project assembles clean for arm64Debug,
:lib:testDebugUnitTest plus :core:data, :feature:terminal,
:feature:vnc, :feature:settings unit tests pass, four new
KeyboardHandlerTest cases for the Ctrl+Shift+V intercept all
pass on the Pixel 8 Pro instrumentation run (intercept fires
when wired, falls through when null, plain V untouched, Ctrl+
V alone untouched).
Not yet verified end-to-end with a remote VNC server actually
emitting ServerCutText — the wiring is correct on paper, the
message just hasn't been seen flow through. Worth a manual
test against a TigerVNC or wayvnc session for anyone who uses
the Desktop tab heavily.
@@ -0,0 +1,24 @@
v5.6.1: HLS streaming fix for 1080p+ sources
libx264 -preset ultrafast silently forces a Constrained Baseline
bitstream regardless of -profile:v main. Chrome's MSE refuses
Constrained Baseline above ~720p, so every 1080p or 4K stream
(local, SFTP, rclone) failed with MEDIA_ERR_SRC_NOT_SUPPORTED —
the HLS player browser tab showed "Video error: code 4" and
nothing else. 720p sources were unaffected, which is why the
bug slipped through.
Fix: use -preset veryfast, which actually honours Main profile
and is still real-time on a Pixel-class device. Also drops the
-tune zerolatency flag (live-streaming knob, no VOD benefit,
bloats output ~2.7x at veryfast).
Verified on a Pixel 8 Pro against a real SFTP source with nine
generated test files covering H.264 720p/1080p/4K/HEVC/VP9,
portrait 55fps screen recording, 23.976 cinema fps, 10-bit
High 10, audio-only MP3, and MKV with embedded SRT subtitles —
all play on-device after the fix. ffprobe on the pre-fix
segment confirms profile=Constrained Baseline; post-fix
confirms profile=Main.
Only touches core/ffmpeg/HlsStreamServer.kt; no other changes.
@@ -0,0 +1,44 @@
v5.6.2: mosh shell-exit freeze (#92)
When you typed 'exit' in a plain mosh shell, the session went
silent — no logout message, further keys did nothing, only
force-disconnect recovered it. Root cause in the user's
provided logs: mosh-server stops producing output when the PTY
child closes, which leaves a 5-10s natural quiet window.
MoshTransport's NETWORK_STALL_MS was set to 5 seconds, so the
client mistook that quiet window for a dead socket and called
rebindSocket() from the send loop. rebindSocket() closed the
UDP socket while the receive loop was still blocked inside
recvfrom(), producing the 'recvfrom failed: EBADF (Bad file
descriptor)' error the logs showed repeatedly. Repeated 6-second
stall-and-rebind cycles after that generated a new local source
port on each pass, which the mosh-server's peer tracking could
not follow during its own shutdown grace period, and the session
never recovered.
Two fixes in mosh-kotlin:
1. NETWORK_STALL_MS 5000 -> 30000. Upstream mosh-client gives a
server ~60 seconds of silence before declaring it dead. 5s
was well inside normal keepalive jitter, especially at
session end. 30s keeps us responsive to real interface loss
without racing mosh-server's shutdown path.
2. rebindSocket() is now serialized under a socketLock with
sendFragment(), and the socket field is @Volatile. A rebind
can no longer race a concurrent send or leave the receive
loop staring at a half-closed socket.
Verified: builds clean, :core:mosh:testDebugUnitTest passes.
Not yet verified: a full end-to-end repro of the user's mosh
+ exit sequence on device (the bug needs a specific timing
window; the mechanical fix is correct by inspection of the
logs).
Follow-up tracked separately: mosh-server emits a shutdown
marker in its final packet that standard mosh-client uses to
surface 'session ended' in the UI. Haven's client does not
interpret it today, which is why the user saw a 'still green'
connection card after the shell exited. Detecting that marker
and transitioning the session card to Disconnected is the
proper UX fix and will land in a later release.
@@ -0,0 +1,36 @@
v5.6.3: URL detector wrap-boundary fix
Tapping a long URL in termlib could open a truncated prefix of
the URL instead of the full one. Happened when a CLI that
hard-wraps its own output — e.g. Claude Code's markdown
renderer — broke the URL across two terminal rows.
The multi-row URL continuation walker in getHyperlinkUrlAt
had two compounding problems:
1. It rejected indented continuation rows outright, so a
markdown bullet wrap like " - See this: https://long/" on
row r and " path" on row r+1 had the walker bailing at
the leading whitespace instead of joining the rows.
2. It would glue unrelated short rows together whenever both
edges of the joined text happened to be URL-safe. A short
"prefix https://example.com/path" row followed by "next
line of unrelated prose" would produce a Frankenstein
"https://example.com/pathnext" URL.
Fix uses a slack-tolerance check against the previous row's
right margin: a row is only considered wrappable when it has
at most 2 cells of unused slack (or softWrapped is set by the
terminal emulator). When the previous row is exactly full,
leading whitespace on the continuation row is stripped so the
URL regex sees a contiguous string; tap offsets are adjusted
so clicks on the continuation row still resolve correctly.
Tests: 10/10 TerminalScreenStateUrlTest cases pass, including
two new ones — the wrap-with-trailing-cells CLI-hard-wrap
case and a guard case for the short-row-followed-by-prose
false positive. Full :lib:testDebugUnitTest suite passes.
Only touches termlib's URL continuation walker in
TerminalScreenState.kt (and its tests). No other changes.
@@ -0,0 +1,45 @@
v5.7.0: media toolbelt + folder-as-playlist streaming
SFTP file browser grows a Media… bottom sheet for
media files with five actions:
Info — ffprobe container/duration/codec/bitrate/
streams/chapters with copy-JSON
Trim — lossless cut via -c copy -ss -t, saved
next to source; no re-encode
Audio — extract as MP3/AAC/Opus/FLAC with
bitrate slider
Sheet — sampled thumbnail grid rendered through
libx264 + the tile filter, decoded to PNG
Convert — the existing transcode dialog,
relocated into the sheet
Directory long-press gains Stream folder playlist.
HlsStreamServer queues every media file in the
folder and serves an HTTP player with a sidebar;
clicking a title restarts ffmpeg on that item and
the player transparently reloads the stream.
ffmpeg stderr + command line from every media
action (plus the existing Stream flow) now flows
through a new onStderr hook and lands in
Settings → View connection log, with the full
transcoder output visible when the row is
expanded. Gated on the existing connection-
logging preference.
Empty SFTP directories previously rendered as a
blank pane with no back-to-parent affordance,
stranding users mid-navigation. The empty state
now lives inside the file list so the ".." row
stays tappable and an explicit "empty folder"
label sits below it.
Contact sheet issues that surfaced during
testing:
- Forced -f mp4 and a .mp4 cache intermediate
so ffmpeg doesn't auto-pick the image2 muxer
from a user-facing .png extension
- Dropped the sample interval floor from 0.5s
to 0.04s so short clips (a 5-second edge case)
can fill a 4×4 tile grid evenly
@@ -0,0 +1,48 @@
v5.8.0: SCP transport + local file-ops fixes
Legacy SCP (scp -O) is now a first-class file transfer
transport alongside SFTP. Useful on hardened or embedded
servers that disable the sftp-server subsystem.
New per-profile "File transport" setting (Auto / SFTP / SCP)
in the connection editor:
Auto (default) tries SFTP first, falls back to SCP
transparently when the subsystem is unavailable,
with a one-shot snackbar announcing the switch.
SFTP forces the modern SFTP subsystem.
SCP forces legacy scp -t/-f for transfers and shell
ls -la for directory browsing.
Core components:
ScpClient — full SCP wire protocol state machine
(upload/download, single file + recursive, -p
timestamp preservation, progress callbacks) over
a fresh JSch ChannelExec per operation.
ShellFileBrowser — parses GNU ls -la --time-style=
full-iso output for directory listings; graceful
fallback to ls -1 (names only) on non-GNU servers.
RemoteFileTransport interface with SftpTransport and
ScpTransport implementations. SftpViewModel's SSH
code paths (list, upload, download, delete, rename,
mkdir) now dispatch through the transport layer.
TransportSelector resolves the per-profile preference
plus Auto-fallback logic.
A small "SCP" badge appears in the path bar when SCP is
the active transport.
Bug fixes surfaced during testing:
Local file delete/rename/mkdir were broken — the else
branch in each operation had no local-file handling
and fell through to SSH, throwing "Not connected".
Now uses File.delete/renameTo/mkdirs directly.
Cross-backend paste to Downloads failed with
FileAlreadyExistsException when the destination
already existed (Kotlin File.copyTo calls
target.delete() under the hood, which Android
scoped storage blocks for MediaStore-owned files).
Now streams via FileOutputStream first, falling
back to MediaStore insert/delete on failure.
NetworkOnMainThreadException in openSftpAndList and
currentSshTransport — JSch channel-open calls
were running on Main instead of Dispatchers.IO.
@@ -0,0 +1,22 @@
v5.8.3: mosh session-end detection (#92)
Mosh sessions now detect when the remote shell exits
and disconnect cleanly instead of hanging forever.
Previously, typing `exit` in a mosh session left the
terminal frozen — the connection card stayed green and
the only recovery was manual disconnect. The transport
retransmitted indefinitely because it had no mechanism
to detect that mosh-server had exited.
The fix adds two-stage server silence detection:
10s without server packets: rebind the UDP socket
once (recovers IP roaming / WiFi handoff).
15s without server packets: fire onDisconnect and
transition the connection card to Disconnected.
Mosh-server normally sends keepalives every ~3s, so
15s of silence reliably indicates the server process
has exited. The threshold is well past mosh-server's
~4s shutdown window after shell exit while still
tolerating brief network hiccups.
@@ -0,0 +1,17 @@
v5.8.4: IME input + FIDO2 diagnostics
Japanese/Chinese/Korean keyboard input now works in
the terminal. The default input mode switched from
TYPE_NULL (raw key events only) to TYPE_CLASS_TEXT
(IME composition protocol), enabling CJK input methods
to compose characters before committing. Autocomplete
and suggestions remain disabled. (#96)
FIDO2 security key authentication now logs every step
of the CTAP exchange — USB permission result, CTAPHID
init, GetAssertion command, and response status. When
a security key fails, the error dialog shows the
specific CTAP reason (e.g. "No matching credential on
this key") instead of a generic password fallback
prompt. USB permission requests now time out after 30s
instead of blocking indefinitely. (#15)
@@ -0,0 +1 @@
- Bundle Hack font for terminal Unicode glyph support
@@ -0,0 +1,11 @@
v5.8.5: faster mosh session-end detection (#92)
Reduced the session-dead threshold from 15s to 8s.
The previous 15s timeout was correct but too slow —
users disconnected manually before it fired. With 8s,
the session closes on its own ~6s after typing `exit`.
Mosh-server sends keepalives every ~3s, so 8s of
silence (missing 2+ keepalives) reliably indicates
the server has exited without false-positives on
healthy networks.
@@ -0,0 +1,8 @@
v5.9.0: built-in text editor for SFTP file browser
New read-only text viewer backed by Sora Editor. Long-press
any file in the SFTP browser → "Open in editor" to view with
line numbers, word-wrap toggle, and cursor position.
Works across all backends — SSH, SCP, SMB, rclone, and local.
Editing and save support follow in v5.10.
@@ -0,0 +1,11 @@
v5.10.0: editor save + file-browser filter
The built-in editor is now read-write. Edit a text file, tap
Save, and the content is streamed back to the remote through
the same transport used for reading (SFTP, SCP, SMB, rclone,
local). Unsaved-changes indicator and cancel-on-back.
Find and replace (with optional regex) within the open file.
SFTP browser: new filter bar — glob or regex match against
the file list, survives navigation.
@@ -0,0 +1,10 @@
v5.11.0: syntax highlighting + terminal-matched editor theme
Editor recognises 30+ languages via TextMate grammars —
shell, Python, YAML, JSON, TOML, Markdown, Dockerfile,
nginx, Kotlin, Rust, Go, and more. Scope is detected from
the filename and extension.
Editor colours now match your terminal colour scheme, so
the editor and terminal feel like one app on the same
device.
@@ -0,0 +1,9 @@
v5.11.1: single-tap text files to open in editor
Tapping a recognised text file in the SFTP browser now
opens it directly in the editor instead of prompting for a
download target. Non-text files still take the download /
media action they had before.
Uses the same TextMate scope detection introduced in v5.11
to decide what counts as "text".
@@ -0,0 +1,10 @@
v5.12.0: image tools — view, crop, rotate, perspective
Long-press any image file in the SFTP browser → "Open in
image tools" to view, crop, rotate (90° steps), and fix
perspective (four-corner drag). Apply, preview, save back
through the active transport — SFTP, SCP, SMB, rclone, or
local.
Works the same way as the editor — no separate app, no
round-trip download.
@@ -0,0 +1,12 @@
v5.13.0: multi-select + permissions editor in the file browser
Long-press any file (or tap Select) to enter selection mode
with a contextual action bar — copy, cut, chmod, and batch
delete across the selection. Tap the circle icon on each
entry to toggle, or use Select All from the bar.
Permissions editor: open the shield icon or the new
"Permissions…" menu item to edit Unix permissions via an
octal field or 3×3 rwx checkbox grid. Applies over SFTP or
SCP; local files chmod directly. SMB and cloud backends
are unaffected (no POSIX permission model).
@@ -0,0 +1,12 @@
v5.14.0: chown in the SFTP file browser
Companion to the permissions editor shipped in v5.13. Open
the Owner dialog from a file's context menu or from the
selection top bar (person icon) — enter `user`, `group`, or
`user:group` and the remote runs `chown` directly.
Name resolution happens on the server, so either names or
numeric UIDs are accepted. Works over SFTP and SCP.
Typically requires root on the remote. SMB, rclone, and
local files are unaffected — those backends have no
ownership concept that maps cleanly.
@@ -0,0 +1,19 @@
v5.15.0: quality + resolution controls in Convert
New Compression section inside the Convert dialog, tailored
at the main reason users come here — shrinking video.
• Quality (CRF) slider with an encoder-aware range. Lower =
better, higher = smaller. Re-seeds to a sensible default
when you switch between H.264, H.265, and VP9.
• Resolution dropdown: same as source, 4K, 1440p, 1080p,
720p, 480p, 360p. Keeps aspect ratio, always even pixels.
• Encode speed preset (ultrafast → veryslow). Slower =
smaller output at the same quality.
• Audio bitrate dropdown (64–320 kbps) for codecs that
support it.
• Quick presets: Share 720p, Small 480p, Archive 1080p,
HQ source.
The live CLI preview at the bottom of the dialog reflects
every knob in real time.
@@ -0,0 +1,16 @@
v5.16.0: drop Google Nearby Connections (F-Droid compatibility)
Removes a transitive `com.google.android.gms:play-services-nearby`
dependency from the `reticulum-kt` submodule. That dep was pulled
into every Haven APK via `rns-android` even though Haven never
instantiated the Nearby driver — so this is pure dead-weight
removal:
- Slightly smaller APK (one fewer Google library linked).
- Fewer runtime permissions requested (BLUETOOTH_* remain for BLE;
ACCESS_WIFI_STATE / CHANGE_WIFI_STATE / NEARBY_WIFI_DEVICES gone).
- Unblocks F-Droid publishing — the F-Droid scanner rejects any
`com.google.android.gms` artifact.
The abstract Nearby transport interfaces in `rns-interfaces` stay.
No Haven-visible feature changes.
@@ -0,0 +1,20 @@
v5.17.0: keyboard robustness (#96)
Four small defensive fixes to the terminal IME path picked up
while investigating the CJK composition work:
• Deferred Enter-fallback runnables are now cancelled when the
terminal view detaches, so a post-commit "\n" scheduled for
the next frame can't fire into a dead view if you leave the
screen within ~16 ms.
• `resetImeBuffer()` now also clears the composing-text tracker
— a composition interrupted by a physical-keyboard key no
longer resumes against stale state and emit ghost backspaces.
• Switching Standard keyboard / Compose mode while you're
mid-composition now erases the projected characters before
restarting the input connection, so the new connection starts
consistent with the terminal.
• `deleteSurroundingText` caps its DEL-key loop at 4096 so a
misbehaving IME can't freeze the UI thread.
No user-visible feature changes.
@@ -0,0 +1,21 @@
v5.18.0: secure keyboard — Voice + Raw toolbar keys (#70, #96)
Two new toolbar keys for controlling how much of the IME surface the
terminal exposes. Both are off by default; add them to your toolbar
(long-press the keyboard icon → reorder → drag in).
• Voice — enables Gboard voice input, swipe, and autocomplete. Same
state as Settings → Keyboard → Use standard keyboard, but reachable
without leaving the terminal.
• Raw — returns no input connection to the IME at all. Gboard has
nothing to attach to, so its microphone, suggestion strip, and AI
Core writing assist cannot appear. Physical keyboards still work;
soft-keyboard input comes through as raw key events only. No IME
composition, so no CJK.
Raw and Voice are mutually exclusive; turning one on auto-clears the
other. Terminal mode (default) now also sets
IME_FLAG_NO_PERSONALIZED_LEARNING unconditionally, which tells
Gboard's word bank and AI Core to keep their hands off the terminal
field — not enough on its own against the most recent Gboard /
Android 16 patch combination (hence Raw).
@@ -0,0 +1,13 @@
v5.19.0: fix Voice mode not re-enabling Gboard mic (#70)
Follow-up to v5.18.0. The Voice toolbar key was setting the
preference correctly but the microphone still didn't come back on
Android 16 + AI Core. Root cause: v5.18.0 set
IME_FLAG_NO_PERSONALIZED_LEARNING unconditionally, and recent
Gboard builds treat that flag as strong enough to also suppress the
microphone — even when the field is otherwise a full text input.
v5.19.0 only sets the flag when you're in secure / terminal mode.
Flipping Voice on now drops the flag, and Gboard shows mic +
suggestion strip as expected. Raw mode still fully hides Gboard
(it can't decorate a field that doesn't exist).
@@ -0,0 +1,24 @@
v5.20.0-rc1: floating IME composer (#96)
Release candidate for focused CJK testing. Not yet the stable
release — please report issues.
The terminal's IME path used to project in-flight composition text
directly into the terminal, one character at a time, then erase
and rewrite it on every candidate change. For CJK input (romaji →
hiragana → kanji, pinyin conversion, etc.) that looked like
flicker; over mosh / ET the per-keystroke round-trips made it
painful.
v5.20.0-rc1 keeps the composition in a **floating overlay** near
the terminal cursor. The partial text is visible to you but never
reaches the remote shell. When the IME commits (you tap a
candidate), the final text lands in the terminal in one go — no
flicker, no ghost backspaces.
The overlay is blue to distinguish it from the green compose-key
buffer. English / Latin input is unchanged because those IMEs
don't use composition. Swipe typing on Gboard also goes through
the overlay and commits as a single word on lift.
Please test with your primary IME and report back on #96.
@@ -0,0 +1,12 @@
v5.20.0-rc2: clamp selection Copy/Paste row (#98)
Small UX fix on top of rc1's floating IME composer.
When you long-press text in the terminal, a small Copy/Paste
button row appears above the selection. The buttons were
anchored at `endColumn × charWidth`, with no right-edge clamp —
so a selection that ended near the right of the terminal pushed
the Row off-screen (@mio-19, #98). Now clamped within the
terminal's viewport on both axes.
No other behaviour changes from rc1.
@@ -0,0 +1,24 @@
v5.20.0: clipboard + floating IME composer
Floating IME composer for CJK (rc1 + rc2 combined).
Romaji / pinyin / swipe-typed composition is painted in a
blue overlay at the terminal cursor — the remote shell
sees nothing until you commit a candidate. No more
backspace-and-rewrite flicker, no per-keystroke round-
trips over mosh/ET during composition.
Clipboard fix: tapping Copy on a selection that lived in
scrollback (or extended past a short line's end) used to
write an empty string to the system clipboard, clobbering
whatever was there. The smart-copy processor now falls
back to SelectionManager's raw text when it can't
contribute anything meaningful, so Copy always lands
something on the clipboard.
Copy/Paste button row above a selection is now clamped
within the terminal viewport — the buttons don't slide
off-screen for selections ending near the right edge
anymore (@mio-19, #98).
English input is unchanged — non-composition IMEs bypass
the overlay entirely.
@@ -0,0 +1,16 @@
v5.20.1: wrapped URL smartcopy
Long-pressing a URL that's wrapped across two or more terminal
rows used to copy only the visible fragment on the row you
tapped — so a tap on "https://github.com/.../issues/89" that
wrapped at "...issues/89" gave you "https://github.com/..."
without the trailing "/issues/89".
The long-press word-expansion now walks across wrap continuation
rows when the joined text contains a URL scheme (://) or a
bare www. prefix, so the whole URL lands on the clipboard in
one shot. Non-URL words at row edges still get the single-row
word walk — adjacent prose isn't sprawled into.
Also landed: unit tests around the smart-copy pipeline so
future regressions in this area get caught before ship.
@@ -0,0 +1,21 @@
v5.21.0-rc1: fast right-flick navigates up in Files (#89)
Adds a velocity-based right-flick gesture to the file browser:
- SLOW horizontal drag → passes through to the tab pager as
before, swiping to the Terminal tab.
- FAST rightward flick in a subdirectory → navigates up one
directory (same effect as tapping the ".." row).
- FAST flick at root → falls through to the pager (swipes to
Terminal).
Uses Compose's Initial-pass pointer events so we observe the
drag without consuming it; a VelocityTracker only claims the
gesture once the finger has clearly flicked (≥200 dp/s, ≥40 dp
travel). Below that threshold the pager handles the drag
normally. Disabled during multi-select so a sideways flick
doesn't drop your selection.
RC release because the velocity feel may want further tuning
once more people have it in-hand. Please try it and feed back
on #89.
@@ -0,0 +1,21 @@
v5.21.0-rc2: consolidated swipe gesture, page-jump fix (#89)
Builds on rc1's right-flick-navigates-up gesture. Two fixes
this round:
- Deduplicated the swipe handling. rc1 had the Files screen
layering its own pointerInput on top of the pager's
pagerSwipeOverride, which made the slow-vs-fast decision
feel flaky — the two handlers were fighting for the same
gesture. Now every horizontal drag on Terminal and Files
flows through a single pagerSwipeOverride with an optional
onFlick hook each screen can claim.
- Fixed a double-jump on normal tab swipes: because the
pager's page index ticks over mid-drag once you've passed
half a page, computing "next page = currentPage + 1" at
release could skip two pages. Now anchored to the page held
at finger-down so one swipe moves exactly one tab.
Please try normal tab swipes AND the fast right-flick in a
Files subdirectory, and feed back on #89.
@@ -0,0 +1,21 @@
v5.21.0: Gboard autocorrect + Files navigation gesture
Tapping a Gboard suggestion-bar correction now replaces the
mistyped word in the terminal on Android 14+. Before this
release, taps on corrections were silently dropped because
the API-34 replaceText path wasn't translated into terminal
backspaces + replacement bytes — only into Gboard's own
tracked buffer. The terminal was left with the uncorrected
typing. Also fixes the related root cause: a custom
InputConnection must call InputMethodManager.updateSelection
explicitly after every edit (TextView does this implicitly,
BaseInputConnection doesn't). Without that, Gboard's
tracked cursor stays frozen and it never enters composition
mode. #99.
From the rc series:
- Fast right-flick in a Files subdirectory navigates up one
directory; slow horizontal drags still swipe to Terminal.
- Deduplicated swipe handling; fixed the mid-drag double-jump
on normal tab swipes so one swipe moves exactly one tab.
#89.
@@ -0,0 +1,3 @@
- Unified OSC handler: OSC 7 (CWD), 8 (hyperlinks), 9/777 (notifications), 52 (clipboard)
- Open button in selection toolbar to launch URLs in browser
- Terminal notifications: toast when foreground, system notification when background
@@ -0,0 +1,22 @@
v5.22.0-rc1: keyboard-interactive 2FA / PAM prompt (#100)
Servers using keyboard-interactive authentication for
two-factor auth, TOTP, or PAM challenge-response used to
silently fail after the first prompt because Haven had no
UI for collecting additional responses. Haven already
advertised keyboard-interactive in its PreferredAuthentications
list; this release plugs in the corresponding dialog.
- Multi-prompt flow: a dialog appears with one field per
server-issued prompt, masked when the server sets echo=false
(passwords, codes). Submit sends all responses; Cancel
aborts the auth attempt.
- Profiles with a saved password auto-answer a solo "Password:"
round silently, so you're only prompted for things the
server actually expects typed input for (a TOTP code etc.).
RC because I don't have a 2FA-configured server to test
against here. If you SSH to a host that prompts you for an
authenticator code, please try this build and feed back on
GH #100 — is the dialog clear, does submit work, does Cancel
actually abort without hanging?
@@ -0,0 +1,26 @@
v5.22.0-rc2: keyboard-interactive 2FA — diagnostic build (#100)
Same user-facing feature as rc1 (multi-prompt keyboard-interactive
dialog for 2FA / PAM / TOTP servers) plus:
- Diagnostic logging (tag HavenKI) at every layer of the KI flow
so a trace can be captured via `adb logcat -s HavenKI:D` when
the dialog misbehaves. Testing against a local paramiko KI
server shows round 2 of a two-round challenge landing on the
server with an empty response within 46 ms of round 1 — way
too fast for human typing. Trying to narrow down which layer
(JSch ↔ prompter bridge, ViewModel state, or Compose dialog)
is firing empty.
- Honouring F-Droid's tool-version pins. CI now installs Rust
1.85.0 + cargo-ndk 3.5.4 + NDK r28c — matching what the F-Droid
buildserver uses — so "builds on CI, breaks on F-Droid" skew
should stop happening.
- Release workflow now builds arm64 and x64 in parallel and
publishes both to a single GitHub release. Cut the historical
45-minute timeout risk roughly in half.
If you try 2FA with this build and hit the empty-round-2 bug,
please grab a HavenKI logcat slice and drop it on GH #100. Codes
1:1 to specific failure modes (which layer drops the response).
@@ -0,0 +1,31 @@
v5.23.0-rc1: per-app WireGuard (#102)
Route individual connection profiles through a WireGuard
tunnel without engaging Android's system-wide VPN — other
apps and your main WG app keep using the network directly.
- New "Tunnels" settings screen (under Security & privacy
and also from the picker below). Paste a wg-quick config,
give it a label, save.
- ConnectionEditDialog gets a "Route through tunnel"
dropdown between the SSH key picker and transport options.
"Direct" preserves the old behaviour; pick a saved config
to tunnel that profile's traffic.
- Userspace WireGuard via wireguard-go + gVisor netstack,
bundled into the existing rclone-android gomobile build
(one libgojni.so, no competing VpnService slot).
RC because the real tunnel + netstack path hasn't been
exercised against a full spectrum of WG servers in the
wild. The Go parser covers wg-quick's common shape
(Interface: PrivateKey + Address + optional DNS; Peer:
PublicKey + Endpoint + AllowedIPs + optional PresharedKey /
PersistentKeepalive; unknown keys ignored).
Tailscale follows as a strictly-additive PR — the Tunnel
abstraction landed with this work specifically to keep it
cheap. If you use Tailscale, let me know on GH #102 and
I'll prioritise.
Debug APK grows ~26 MB because wireguard-go + gVisor are
big Go libraries; release build with R8 is smaller.
@@ -0,0 +1,38 @@
v5.23.0: per-app WireGuard (#102)
Route individual connection profiles through a WireGuard
tunnel without engaging Android's system-wide VPN. Your main
WG app stays free; other apps continue on the normal network.
How it works:
- Settings → Security & privacy → Tunnels (or the "Add
WireGuard tunnel…" link inside the profile dropdown):
paste a wg-quick config or load a .conf file. Config text
is an encrypted blob in the Haven DB.
- On every SSH profile, a "Route through" dropdown now lists
None / SOCKS5 / SOCKS4 / HTTP / each saved WG tunnel.
Picking a tunnel routes that profile's SSH socket through
wireguard-go + a userspace gVisor netstack bundled into
the existing rclone-android native library. No Android
VpnService, no consent dialog.
Matters for people who:
- Already use the system WG app for general traffic and don't
want Haven to take the single VPN slot.
- Want Haven-only tunnelling so other apps keep using the
normal network.
- Have a dyndns-pointed WireGuard peer: endpoint hostnames
are resolved at tunnel-start (same as wg-quick), with IPv4
preferred over IPv6 because home-network IPv6 reachability
to WG peers is flaky in practice.
Verified end-to-end against a Fritz!Box running WireGuard.
Tailscale follows as a strictly-additive PR — the Tunnel
abstraction was generalised in this release specifically to
keep that cheap.
Debug APK gains ~25 MB because wireguard-go + gVisor
netstack are sizeable Go libraries. Release builds with R8
strip unused symbols.
@@ -0,0 +1,45 @@
v5.24.0: per-app Tailscale (#55, #102)
Tailscale joins WireGuard as a second per-app tunnel backend
(v5.23.0 shipped WireGuard). Each SSH profile can route through
its own tunnel without taking Android's system VPN slot — other
apps, and your main Tailscale / WireGuard Android app, keep
using the network normally.
- Add a Tailscale config in Tunnels (Settings → Security &
privacy → Tunnels, or from the profile picker). Paste an
authkey generated from the Tailscale admin console. Haven
joins the tailnet on first use and reuses the node state
thereafter — a one-time key is fine.
- On an SSH profile, the "Route through" dropdown lists your
Tailscale configs alongside WireGuard configs and the
existing SOCKS/HTTP proxies. Pick one; the profile tunnels
through the tailnet.
- MagicDNS works: use `peer.<tailnet>.ts.net` as the host.
Direct UDP path attempted, DERP fallback automatic.
- Runs entirely in-process via tsnet + a userspace gVisor
netstack. No VpnService consent dialog, no single-VPN-slot
contention.
What Android made us earn:
- tsnet assumes Linux-server sandboxing; Android SDK 30+
denies Go stdlib's net.Interfaces (netlink). We register
the hook Tailscale added for their own Android app
(netmon.RegisterInterfaceGetter) and feed it
interface data from libc getifaddrs via cgo — same path
Java's NetworkInterface.getNetworkInterfaces uses, which
IS permitted for untrusted_app SELinux contexts.
- First dial against a cold peer has 30 s of headroom
(up from JSch's 10 s default) because peer session setup
+ MagicDNS resolution + DERP handshake can easily eat
1-2 s before the application TCP SYN flows.
Size: +15 MB in libgojni.so (wireguard-go + gVisor were
already bundled; this release adds Tailscale's control
plane). Debug APK ~126 MB; release APK after R8 ~100 MB.
Closes the gap from #55 and #102 — the previous resolution
of "use the Tailscale Android app" required taking the
system VPN slot, which is the premise these issues wanted
to avoid.
@@ -0,0 +1,13 @@
v5.24.1: fix test assertion
Recovers the v5.24.0 release flow — no runtime change.
v5.24.0's Release workflow failed on a unit test in core:tunnel that
expected the dial-timeout to pass through unchanged, but v5.24.0
itself added a 30s minimum floor on that timeout so cold-peer
Tailscale / WireGuard handshakes have room to complete. Test
updated to assert the clamp contract explicitly; the signed APK/AAB
now build and publish.
If you are on v5.24.0 already via another channel, this is
effectively a no-op for you.
@@ -0,0 +1,12 @@
v5.24.2: F-Droid x86_64 wayland build fix
Bumps wayland-android submodule to work around a cairo meson probe
that only fails on the F-Droid buildserver for x86_64 (works for
arm64 on the same server, works for both ABIs locally). Cairo's
`cc.has_define('FT_LOAD_NO_SVG', ...)` probe escalates an internal
compile-test failure into a hard meson error instead of returning
false; patched in build-android.sh to use a freetype version gate
(equivalent to what cairo itself does for the internal-subproject
path).
No runtime change vs v5.24.1 — F-Droid packaging only.
@@ -0,0 +1,15 @@
v5.24.3: rebased termlib onto connectbot upstream 0.0.34
Our terminal library fork catches up with 26+ commits of upstream
work — libvterm strncpy bounds check, scroll braking fix,
stuttering-scroll fix, dead-key handling improvements, configurable
backspace-key meaning, AltGr preference, selection colours,
autoDetectUrls opt-in, Robolectric test migration.
All Haven-specific patches preserved: Gboard autocorrect fix (#99),
CJK composition with floating composer (#96), wrap-aware URL
detection, gesture callbacks with mouse-mode routing, Ctrl+Shift+V
paste, NDK r28c pin, scroll-position-drift fix.
On-device smoke tested: mouse mode, Gboard autocorrect, CJK input,
URL underline on wrapped URLs, Ctrl+Shift+V paste, SSH connect.
@@ -0,0 +1,16 @@
v5.24.4: smarter URL tap-to-open + scrollback-aware selection
Tap resolution for URLs treats the terminal as a 2D grid now. URLs
wrapped under Claude Code's `⎿` prefix, inside box-drawn panels,
across markdown table rows, or any scenario with formatting scaffolding
on continuation lines now resolve to the full URL — not just the
fragment on the tapped row.
Also fixes a scrollback bug that affected both URL taps and text
selection: when scrolled back, visible rows that mapped to the
current screen were being resolved against the scrollback buffer
instead, producing blank selections or wrong-row URL lookups.
13 new spec tests cover the URL detector (markdown tables, box
frames, formatting prefixes, convexity guards, false-positive
rejection); full termlib suite is 316/316 green.
@@ -0,0 +1,7 @@
v5.24.5: CI runner upgrade (no runtime change)
Repo moved to the new GlassHaven organisation and the release
pipeline now uses GitHub's 8-core larger runners (test + build).
Release wall clock drops from ~40 min to ~15 min.
No user-facing change vs v5.24.4.
@@ -0,0 +1,10 @@
Haven v1.0.0
- SSH and Reticulum terminal with multi-tab support
- OSC support: clipboard (52), hyperlinks (8), notifications (9/777), CWD tracking (7)
- Open URL button in selection toolbar
- Terminal notifications (toast foreground, system notification background)
- Hack font for Unicode glyph support
- Mouse mode with SGR wheel events
- Session manager integration (tmux, screen, Zellij)
- Word-expand selection on long-press
@@ -0,0 +1,20 @@
v5.24.6: USB SD cards + cleaner file transfers
USB SD cards and USB flash drives now appear as browsable roots in
the Files tab alongside Internal Storage and Downloads. Plug a card
reader into the phone and the volume shows up with its manufacturer
label (e.g. "SanDisk USB Drive"), ready to copy from/to. Tested with
a Sony RX10 IV SD card transcoding MP4 footage across the pipe to a
remote SFTP server.
Cleaner progress display during file transfers. The old "Preparing…"
label that would sit for minutes on the first large file is replaced
with live "Uploading 3 of 47: clip.mp4" counters that update as each
file starts. For transfers from a local source (including USB SD)
the redundant copy to internal cache is skipped — now a direct
stream from source to destination, saving the temporary duplicate
that used to fill internal storage with every file in the batch.
Requires Android 11+ for USB SD card detection. Internal and USB
storage access needs the existing "All files access" permission
granted in a previous version.
@@ -0,0 +1,16 @@
v5.24.7: paste from selection popup actually reaches the remote
The small Paste button next to Copy and More in the text-selection popup
was writing clipboard text into the local terminal screen buffer instead
of sending it to the PTY. Pasted text rendered on screen but vim, nano,
tmux — anything running remotely — never saw it. If you saved and quit
nano after that kind of paste, your work went unwritten.
The Ctrl+Shift+V hardware shortcut and the keyboard-toolbar paste button
were always correct; the selection-popup button was the only broken
path, regressed since v5.15.0 (2026-03-31).
Bracketed-paste wrapping (mode 2004) now applies uniformly across all
three paste triggers.
Fixes #103 on GitHub.
@@ -0,0 +1,15 @@
v5.24.8: physical keyboard no longer wipes Gboard autocorrect
Pressing any key on a physical keyboard used to reset the IME's
tracked context — including when the key was just Shift, or the
capital letter Shift produced. Result: if you typed a few words on
the soft keyboard, tapped Shift+A on a physical keyboard mid-sentence,
Gboard's autocorrect suggestions for the preceding text went away.
The reset now fires only on Enter and Escape — actual command
boundaries. Typing letters, modifiers, arrows, backspace, Tab, and
function keys on a physical keyboard all leave the IME's context
intact, so Gboard's autocorrect for the soft keyboard survives
brief hardware-keyboard interjections.
Follow-up to #99.
@@ -0,0 +1,21 @@
v5.24.9: paste conflict dialog + byte progress + wake lock
Paste now detects when a file already exists at the destination and
opens a Windows Explorer-style dialog with four choices — Resume,
Overwrite, Keep both (rename), Skip — plus an "Apply to all remaining
files" checkbox for batch pastes. Resume is offered only when the
destination is SFTP or local and the existing file is smaller than
the source, i.e. when append-from-offset is actually recovering a
partial transfer.
Progress bar now shows byte counters during the entire upload instead
of sitting at "Uploading 1 of N" with no detail until done. All
destination backends show per-chunk progress: SFTP via the JSch
SftpProgressMonitor, SMB via its existing progress callback, local
via buffered streaming, and rclone remains indeterminate (opaque
server-side copy).
Haven now holds a partial wake lock for the duration of a paste so
the CPU can't drop to a low-power state mid-transfer. Heavy USB +
network I/O with the screen off previously risked scheduler stalls
on some devices.
@@ -0,0 +1,27 @@
v5.24.10: backup now includes tunnels and 13 missing settings
Encrypted backup export/import now covers the WireGuard + Tailscale
tunnel configs stored in the "Tunnels" settings screen — these weren't
in the backup at all before, so restoring onto a fresh install
silently dropped them. If you generated a backup with v5.24.9 or
earlier, re-export with v5.24.10 to capture them.
Thirteen ConnectionProfile fields were also being silently dropped on
restore and are now preserved end-to-end:
- tunnelConfigId (the per-profile "Route through tunnel" selection)
- vncUsername (VeNCrypt VNC auth)
- rcloneRemoteName, rcloneProvider (rclone profile binding)
- reticulumNetworkName, reticulumPassphrase (IFAC auth)
- postLoginCommand, postLoginBeforeSessionManager (auto-run after SSH)
- fileTransport (AUTO / SFTP / SCP preference)
- forwardAgent (ssh-agent forwarding)
- disableAltScreen (per-profile terminal behaviour)
- useAndroidShell (Local profile shell choice)
- lastSessionName (tmux/zellij last-session memory)
The backup file format is version 2. v1 backups from older versions
still restore cleanly — missing keys fall back to ConnectionProfile
defaults, same as before.
Three round-trip regression tests added.
@@ -0,0 +1,19 @@
v5.24.11: fix paste SecurityException on missing WAKE_LOCK
v5.24.9 started acquiring a partial wake lock during paste so
long transfers stay reliable with the screen off, but the WAKE_LOCK
permission wasn't declared in the manifest. On devices that enforce
this strictly the paste now failed with:
Paste failed: Neither user <uid> nor current process has
android.permission.WAKE_LOCK
Two fixes:
- Declare android.permission.WAKE_LOCK in the manifest (normal-level
permission, no runtime prompt).
- Defensively swallow SecurityException in the acquire path so if the
permission ever goes missing again, paste still works — the wake
lock is a stability nicety, not a correctness dependency.
Regression from v5.24.9.
@@ -0,0 +1,35 @@
v5.24.12: resumable paste — survives connection drops and app restarts
Paste is now persistent. Every leaf file in a copy/paste is recorded to
a queue table before the transfer starts, and each file's progress
cursor is written back to disk as bytes flow. When something
interrupts the transfer — WiFi drop, SFTP server bouncing, the app
being killed, the phone rebooting — the SFTP tab comes back up with
a banner at the top showing how many files are still pending:
Unfinished paste
46 files · 3.8 GB remaining [Discard] [Resume]
Tapping Resume picks up where the transfer left off. On SFTP
destinations the in-flight file resumes mid-byte via the existing
ChannelSftp.RESUME plumbing. Local destinations open the file in
append mode and skip the matching prefix of the source.
Transient failures (broken pipes, connection resets, SSH timeouts)
now auto-retry within the same paste — three attempts per file with
1s / 2s / 4s backoff. Only a permanent error (source missing,
permission denied) leaves the row pending for you to handle.
The banner stays until you explicitly Discard or the queue drains.
Connection settings can be edited between resume attempts — there
is no auto-abort on "source unavailable", so a temporarily-unplugged
USB SD card or a server that's offline can be reconnected and the
remaining transfers retried as many times as needed.
Scope notes:
- Directory paste works: the queue expands directories into
leaf-file rows at start-time.
- Rclone-to-rclone paste is unchanged (server-side copy, nothing to
persist).
- Cut-of-directory still leaves empty source directories behind
after the move completes — a future pass will clean these up.
@@ -0,0 +1,15 @@
v5.24.13: fix two small UI bugs (#105)
Port forward dialog: the Local/Remote/Dynamic type picker placed all
three chips in a fixed-width row. On narrow screens (Motorola Edge
20-class handsets, phones in split-screen) the third chip squeezed
its "Dynamic (-D)" label into a single-character column so it
rendered vertically. The row now flows to a second line when the
chips don't fit side-by-side.
Add-tunnel dialog: the full-size Dialog used for the WireGuard /
Tailscale editor had no opaque background, so whatever was behind
it showed through — the whole sheet looked semi-transparent. Added
a Surface wrapper so the dialog reads cleanly.
Both reported on #105.
@@ -0,0 +1,21 @@
v5.24.14: fix VNC over SSH tunnel + editable VNC settings (#104)
Two fixes:
1. **VNC through SSH tunnel now uses 127.0.0.1** instead of the
hardcoded "localhost". When the destination was resolved by the
SSH server, "localhost" could route to the IPv6 loopback first —
and a VNC server bound only to 127.0.0.1 (common for wayvnc,
including the Debian default) rejected the ::1 attempt, which on
some sshd builds surfaced as a closed channel rather than the
expected retry fallback. Using the explicit IPv4 address matches
the manual port-forward workaround that already worked.
2. **Saved VNC settings are now editable from the connection edit
dialog.** Ticking "Save for this connection" in the terminal's
VNC quick-dialog writes vncPort / vncUsername / vncPassword /
vncSshForward to the SSH profile — but until now there was no
UI path to re-open them, so changing a setting required deleting
and recreating the entire profile. The SSH edit dialog now shows
a "Saved VNC settings" section when the profile has any, and a
"Clear saved VNC settings" button to wipe them.
@@ -0,0 +1,21 @@
v5.24.15: backup now preserves SSH-key passphrase flag
Confirmed during an audit that every ConnectionProfile field and every
tunnel_configs row round-trips through backup export/import correctly
— including the saved VNC settings (port, username, password,
tunnel-through-SSH) added in v5.24.10 and edited in v5.24.14.
One small residual gap: SshKey.isEncrypted — the flag marking whether
the private key material itself is passphrase-protected — wasn't in
the export/import schema. It defaulted to false on restore, which
could have prevented JSch from prompting for the passphrase on the
first use of a restored key. Now serialised and imported alongside
the other SshKey fields.
v1 and v2 backups still restore cleanly; the flag falls back to false
when the key is absent from the JSON, preserving the pre-fix
behaviour for older files.
Follow-up to #104: same audit verified that vncPort, vncUsername,
vncPassword, and vncSshForward have been in the backup since v5.24.10
— no action needed there.
@@ -0,0 +1,5 @@
- Fix slow SSH connections to .local hostnames (mDNS direct resolution)
- Add OSC 8 hyperlink support (Open URL from selection toolbar)
- Add terminal notifications via OSC 9/777
- Enable tmux OSC passthrough for clipboard/notifications/hyperlinks
- Disable GSSAPI auth to avoid connection timeout
@@ -0,0 +1,18 @@
v5.24.16: fix app crash when an ffmpeg job is cancelled or killed
FfmpegJob's stderr / stdout reader threads didn't wrap their read loop
in a try/catch, so whenever the ffmpeg subprocess exited unexpectedly —
cancel, Android killing it as a PhantomProcessRecord during a long
transcode, or the stream being closed from another thread — the
reader's blocking read() threw InterruptedIOException and that
propagated as a FATAL EXCEPTION, taking the whole app down.
Reader threads now swallow IOException quietly. The job status still
comes from process.exitValue(), so cancellations and OS kills surface
cleanly instead of crashing.
Visible symptom: HLS streaming a large 4K HEVC file (long transcode
times) could crash Haven mid-stream. The crash is fixed. Whether the
transcode itself completes on a given device still depends on
Android's phantom-process policy, which a follow-up foreground
service will address.
@@ -0,0 +1,23 @@
v5.24.17: clearer SSH-tunnel UX on RDP and SMB connection dialogs
The "SSH tunnel" checkbox on RDP and SMB connection profiles lived near
the bottom of the form with no visual link to the Host field, and
defaulted the tunnel target to "localhost" — which, thanks to the same
IPv6 getaddrinfo quirk fixed for VNC in v5.24.14, could fail against
services bound only to 127.0.0.1.
RDP form reorganised:
- **Tunnel through SSH** toggle (renamed from "SSH tunnel") and the
"SSH connection" picker both moved to the top of the dialog so
the decision reads as a single unit before the RDP-target fields.
- When the tunnel is on, the Host field relabels to "RDP host (on
SSH server)" with supporting text explaining that this is where
the RDP service is reachable from the SSH server's perspective
(usually 127.0.0.1 if they're the same machine).
- Default Host changed from "localhost" to "127.0.0.1" when the
tunnel is enabled, avoiding the IPv6 resolution ambiguity.
SMB: same label rename and default-host change. Full reorganisation
of the SMB form is a larger follow-up (SMB has host discovery
chips that tightly couple with the Host field).

Some files were not shown because too many files have changed in this diff Show More