Adds a live debug log view to the status screen for diagnosing a tunnel that connects but stops passing traffic.
LogBuffer: timestamped line assembly, 500-line cap, partial-fragment handling, unit tested.
Native debug_stats flag and a 5-second stats line from the tunnel loop, exposed through setDebug / isDebug JNI hooks.
Status-screen controls: Debug, Auto-scroll, Copy, Clear; the buffer resets on connect and survives configuration changes.
Native log bridge now preserves newlines, and android_printf uses a call-local buffer instead of shared static state.
Tests
./gradlew build — green.
LogBufferTest — 9/9.
bash jni/tests/run.sh — native sanitizer test green.
Manual on-device checklist still pending (no adb device was attached during development): live stats, toggle, pause/scroll, copy/clear, rotation, reconnect, stalled tunnel, and the password-not-in-log check.
Notes
Includes the earlier connection fix 00defd0 (explicit tunnel nameserver wins over DNS autodetection).
## Summary
Adds a live debug log view to the status screen for diagnosing a tunnel that connects but stops passing traffic.
- `LogBuffer`: timestamped line assembly, 500-line cap, partial-fragment handling, unit tested.
- Native `debug_stats` flag and a 5-second stats line from the tunnel loop, exposed through `setDebug` / `isDebug` JNI hooks.
- Status-screen controls: `Debug`, `Auto-scroll`, `Copy`, `Clear`; the buffer resets on connect and survives configuration changes.
- Native log bridge now preserves newlines, and `android_printf` uses a call-local buffer instead of shared static state.
## Tests
- `./gradlew build` — green.
- `LogBufferTest` — 9/9.
- `bash jni/tests/run.sh` — native sanitizer test green.
- Manual on-device checklist still pending (no adb device was attached during development): live stats, toggle, pause/scroll, copy/clear, rotation, reconnect, stalled tunnel, and the password-not-in-log check.
## Notes
- Includes the earlier connection fix `00defd0` (explicit tunnel nameserver wins over DNS autodetection).
- Design: `docs/superpowers/specs/2026-11-20-debug-log-view-design.md`
- Plan: `docs/superpowers/plans/2026-11-20-debug-log-view.md`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Adds a live debug log view to the status screen for diagnosing a tunnel that connects but stops passing traffic.
LogBuffer: timestamped line assembly, 500-line cap, partial-fragment handling, unit tested.debug_statsflag and a 5-second stats line from the tunnel loop, exposed throughsetDebug/isDebugJNI hooks.Debug,Auto-scroll,Copy,Clear; the buffer resets on connect and survives configuration changes.android_printfuses a call-local buffer instead of shared static state.Tests
./gradlew build— green.LogBufferTest— 9/9.bash jni/tests/run.sh— native sanitizer test green.Notes
00defd0(explicit tunnel nameserver wins over DNS autodetection).docs/superpowers/specs/2026-11-20-debug-log-view-design.mddocs/superpowers/plans/2026-11-20-debug-log-view.mdView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.