Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
49aceee
refactor(terminal): extract the terminal feature module
dexbycode Nov 23, 2026
eb0683c
refactor: align Kotlin names and remove dead selection paths
dexbycode Nov 23, 2026
fd5467b
refactor: move agent and SSH screens into their feature modules
dexbycode Nov 23, 2026
fecaf55
refactor: share code block and glass helpers through :ui
dexbycode Nov 23, 2026
a23e191
fix: expose shared spacing and motion tokens to feature screens
dexbycode Nov 23, 2026
b34a376
refactor: split terminal, agent and settings screens by role
dexbycode Nov 24, 2026
ed603f3
refactor: split the remaining settings and session screens
dexbycode Nov 24, 2026
43dbb15
feat(terminal): shape ligatures, draw a single background triangle
dexbycode Nov 24, 2026
c315fb9
fix(agent): remove split leftovers from the chat screen
dexbycode Nov 24, 2026
c535647
fix(terminal): expose the pane transition duration
dexbycode Nov 24, 2026
a091037
Return the covered cell count from the sprite test writer.
dexbycode Nov 24, 2026
04d4026
Cover the sprite packing of a multi-cell ligature run.
dexbycode Nov 24, 2026
173d00a
Move the surface's mouse reporting into TerminalMouse.
dexbycode Nov 24, 2026
c3bfc13
Bring the changelog and status inventory in line with the renderer.
dexbycode Nov 24, 2026
f9604b6
fix(selection): accept the measuring call's out-of-space answer
dexbycode Nov 24, 2026
b13f5f4
fix(pty): serialize pty access and harden the child fork
dexbycode Nov 24, 2026
d571d2d
feat(native): carry the pty's process facts to Kotlin
dexbycode Nov 24, 2026
166254a
feat(service): a terminal foreground notification with a wake lock
dexbycode Nov 24, 2026
4810fb3
perf(pty): wait on poll instead of sleeping in the reader
dexbycode Nov 24, 2026
9f9631d
feat(session): a single-owner pty I/O path and a real foreground process
dexbycode Nov 24, 2026
fbe4323
fix(session): write to the pty without blocking the reader
dexbycode Nov 24, 2026
d98067d
docs(native): poll returns 1/0, not a descriptor count
dexbycode Nov 24, 2026
c3dd5a0
fix(native): write key and mouse bytes through the pty's own lock
dexbycode Nov 24, 2026
efac9db
fix(render): scan a ligature run from the column it starts at
dexbycode Nov 24, 2026
b87cd71
feat(terminal): a thinner lollipop for the selection grips
dexbycode Nov 24, 2026
c9120b2
feat(fonts): a terminal font store, and no more custom font files
dexbycode Nov 24, 2026
272998e
fix(shell): make the startup command a shell that keeps running
dexbycode Nov 24, 2026
4defa59
feat(settings): a version screen in the settings language
dexbycode Nov 24, 2026
12099ad
refactor(settings): give the backdrop its own category
dexbycode Nov 24, 2026
b0b7ad5
fix(terminal): make bold-brightening and pane dimming do what they say
dexbycode Nov 24, 2026
5f45bb7
feat(terminal): a line-height setting, measured into the cell
dexbycode Nov 24, 2026
dde07e6
feat(branding): replace app launcher icon with amber Drosh design
dexbycode Nov 25, 2026
5a12b20
feat(terminal,settings): scrollback, keyboard modes, and one General …
dexbycode Nov 25, 2026
3fd5979
refactor(terminal): move the engine palette out of the session manager
dexbycode Nov 25, 2026
f03393b
fix(terminal): scrollback limit builds, and wide glyphs stop being st…
dexbycode Nov 25, 2026
ba9f20b
fix: replace unicode escapes in keyboard settings strings
dexbycode Nov 25, 2026
0e930d7
fix(ui): escape the apostrophe in the keyboard activation summary
dexbycode Nov 25, 2026
53f2d88
fix(app): drop the stale AppearanceCategory import; make CI do less work
dexbycode Nov 25, 2026
f78a120
ci: build libdrosh.so in one workflow, and stop rebuilding it per caller
dexbycode Nov 25, 2026
1538183
ci: make the native build a workflow of its own
dexbycode Nov 25, 2026
6407647
fix(terminal): scroll, emoji and selection at the same size and place…
dexbycode Nov 25, 2026
409e09e
fix: make the palette's cube and ramp opaque, and stop the native gat…
dexbycode Nov 25, 2026
a472a61
fix(ci): restore the pinned NDK, and make the palette test expect opa…
dexbycode Nov 25, 2026
ffdeac9
fix(terminal): selection chrome that keeps its place, and whole emoji
dexbycode Nov 26, 2026
70cad27
fix: the grip's spring, and the ABI the Native gate links against
dexbycode Nov 26, 2026
4ac3634
fix(selection): a dot for a grip, and a drag measured from the finger
dexbycode Nov 26, 2026
60a2c22
feat(sessions): previews from the renderer, brand glyphs from /proc
dexbycode Nov 26, 2026
c3def85
fix(native): one Mutex import in the session module
dexbycode Nov 26, 2026
3b8f387
fix(sessions): a preview with text, real session names, and a grid th…
dexbycode Nov 27, 2026
b056117
fix(data): import the grid layout store where it is bound
dexbycode Nov 27, 2026
3e25e2a
fix(terminal): compile the font boundary and drop the name chip
dexbycode Nov 27, 2026
49b3ee6
fix(native): make the font boundary build against jni 0.21
dexbycode Nov 27, 2026
89f2573
refactor(sessions): one grid, in-screen groups, and a name in the top…
dexbycode Nov 27, 2026
537ba85
fix(terminal): capture the runtime reason before the dialog closes ov…
dexbycode Nov 27, 2026
8e43088
feat(branding): replace app launcher icon with layered-cold Drosh design
dexbycode Nov 29, 2026
6288313
feat(branding): replace app launcher icon size
dexbycode Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
132 changes: 20 additions & 112 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,94 +11,18 @@ concurrency:
group: build-debug-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
# Pinned NDK (r28c): the Rust engine is linked with its clang.
NDK_VERSION: 28.2.13676358

jobs:
native-build:
# libdrosh.so — the Rust half that drives libghostty-vt. The APK needs it in
# jniLibs next to the engine, and it is built here rather than downloaded so
# the APK and the native library are always the same commit.
name: libdrosh.so (arm64-v8a)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-linux-android

- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: native

- name: Install libclang
run: |
set -euo pipefail
# bindgen parses the engine's headers with libclang.
#
# The apt packages for it are large — libclang-dev pulls hundreds of
# megabytes of LLVM — and the runner's Ubuntu mirror fails to resolve
# intermittently. apt then retries a mirror that is not coming, and
# the step turns into a ten-minute hang before the job times out.
#
# The PyPI wheel is one file, comes from a host that answers, and
# bindgen finds it through LIBCLANG_PATH. apt is the fallback, with
# retries, and only the library itself — not the whole toolchain.
found=""
if pip install --user --quiet libclang; then
clang_dir=$(python -c "import clang, os; print(os.path.join(os.path.dirname(clang.__file__), 'native'))")
if compgen -G "$clang_dir/libclang*.so" > /dev/null; then
echo "LIBCLANG_PATH=$clang_dir" >> "$GITHUB_ENV"
found="wheel"
fi
fi
if [ -z "$found" ]; then
sudo apt-get -o Acquire::Retries=5 update -qq
sudo apt-get -o Acquire::Retries=5 install -y -qq libclang-dev
fi

- name: Install pinned NDK
run: |
set -euo pipefail
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses > /dev/null 2>&1 || true
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "ndk;$NDK_VERSION"

# gh prefers the API asset endpoint over the browser download URL,
# which has been answering a deterministic 504. The token is what
# authenticates the API call; the bytes are checked against SHA256SUMS
# regardless of how they travel.
- name: Fetch and verify libghostty-vt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./tools/fetch-ghostty-vt.sh

- name: Build libdrosh.so
working-directory: native
env:
DROSH_ABI: arm64-v8a
run: |
set -euo pipefail
NDK="$ANDROID_HOME/ndk/$NDK_VERSION"
TOOLCHAIN="$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin"
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="$TOOLCHAIN/aarch64-linux-android26-clang"
export CC_aarch64_linux_android="$TOOLCHAIN/aarch64-linux-android26-clang"
export AR_aarch64_linux_android="$TOOLCHAIN/llvm-ar"
cargo build --release --target aarch64-linux-android

- name: Upload the library
uses: actions/upload-artifact@v4
with:
name: drosh-so
path: native/target/aarch64-linux-android/release/libdrosh.so
if-no-files-found: error
retention-days: 1
# libdrosh.so and libghostty-vt.so, in the layout jniLibs wants. They are
# built by native.yml — the same workflow the Native gate runs — so
# the APK and the standalone build are one recipe and one commit. This job
# restores the library from a cache keyed on the Rust sources, the engine
# script and the NDK, so a change that only touched Kotlin takes seconds.
name: native libraries (arm64-v8a)
uses: ./.github/workflows/native.yml
with:
abi: arm64-v8a
artifact_name: drosh-jni

debug:
name: Debug APK
Expand All @@ -117,26 +41,19 @@ jobs:
# over a newer one and downgrade the database out from under Room.
fetch-depth: 0

- name: Fetch libghostty-vt
env:
GHOSTTY_VT_ABIS: arm64-v8a
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./tools/fetch-ghostty-vt.sh

- name: Fetch our own native half
- name: Unpack the native libraries into jniLibs
uses: actions/download-artifact@v4
with:
name: drosh-so
name: drosh-jni
path: android/terminal/src/main/jniLibs/arm64-v8a

- name: Stage libghostty-vt into jniLibs
- name: Check the native libraries are the ones the linker asks for
run: |
set -euo pipefail
dest=android/terminal/src/main/jniLibs/arm64-v8a
mkdir -p "$dest"
cp native/ghostty/lib/arm64-v8a/libghostty-vt.so "$dest/"
# The engine must be there, and it must be the name the linker asks
# for: libdrosh.so names it in DT_NEEDED.
# Both halves must be there, under the names that matter: libdrosh.so
# names the engine in DT_NEEDED, so a missing or renamed engine is a
# session that cannot start.
test -f "$dest/libghostty-vt.so"
test -f "$dest/libdrosh.so"
# The output goes to a file first. A pipe into `grep -q` is a race:
Expand Down Expand Up @@ -183,19 +100,10 @@ jobs:

- name: Assemble debug
working-directory: android
run: ./gradlew assembleDebug --no-daemon --stacktrace --max-workers=2

# The selection model and the clipboard normalizer are pure Kotlin, so
# their tests need no device and no emulator. They are named explicitly:
# the terminal module's other unit tests use Robolectric and native
# shadows, and a failure there is not a failure of this feature.
- name: Run selection unit tests
working-directory: android
run: |
./gradlew :terminal:testDebugUnitTest \
--tests 'dev.drosh.terminal.engine.input.SelectionSnapshotTest' \
--tests 'dev.drosh.terminal.engine.input.SelectionTextTest' \
--no-daemon --stacktrace --max-workers=2
# --parallel and the full worker count: the runner has four cores, and
# Kotlin compilation of the feature modules is the long pole. Capping
# the workers at two was leaving two of them idle.
run: ./gradlew assembleDebug --no-daemon --stacktrace --parallel --max-workers=4

# The identity hash in the migration is a hand-copied constant, and a stale
# one is invisible here: the build passes and the app crashes on first
Expand Down
Loading
Loading