- scripts/test-native.py (just t WORD): builds once, runs each test in its own
process in parallel, longest first, with a timeout; CI and just test use it.
- Tests no longer search this machine's apps and icon themes.
- Compiled wasm modules are cached between test processes (CHANDRA_WASM_CACHE).
- draw_circle fills its middle with spans (same pixels); encode_png writes into
one buffer, with a CRC table.
- The ffprobe helper always waited out its 20 s: its done file was empty.
- The fake polkit helper no longer depends on which shell sh is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Recorder: a 12 ms gap let through 83 frames a second. Frames now come due every 60th of a
second, with room for a 60 Hz screen's jitter.
- Battery: the handset change shrank it to 76 px everywhere, too narrow for the time left. It is
104 px again, and 76 only on a compact panel.
- Tests: recording is timed from its first frame, the failed launch doesn't depend on the apps
installed, and the scene test waits for notices and clocks to settle.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Apps open maximized on a touchscreen whose short side is under 720px. Restore gives a floating window that fits the screen.
- Maximized windows can't be dragged or resized.
- Dialogs (xdg_toplevel.set_parent) open floating and centered, and stay above their app when it is activated.
- Under tiling, the last used app is drawn on top.
- Add transient_for to WmState and make inner_work_area and fit_rect public for the compositor.
- Tests cover maximized opening, dialog stacking, drag suppression and restore.
- Document the handset window behavior in docs/handset.md.
On a touchscreen a drag over the launcher's list scrolls it by pixels, a flick
keeps it going, and a tap still launches (or stops a moving list).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Apps opened recently now lead the launcher and the desktop, newest first, ahead of the defaults.
- Remember up to 200 launches (was 8), so the recent order holds over time.
- Apps not recently opened follow the defaults, then the rest A-Z.
- Add a test for the launcher order and for recents moving apps in and out.
- Update the Desk::shown and default-group comments to match.
- Update the display interface with the touch seat events.
Every touch was turned into a mouse drag in the seat code, which selects text
instead of scrolling. The seat now reports raw touches and the compositor
routes them: to the app as wl_touch on its own content, and to the pointer
(tap, drag, hold for right click, as before) everywhere else and for apps that
don't listen to touches. The cursor is hidden while fingers are in use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the cursor's position was rotated; the hardware cursor image and its
hotspot stayed in the panel's own orientation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI builds an arm64 image (compositor, host, chandra-remote, modules) and deploys
the updater pod that installs it on the phone. chandra-remote updates go in live
(SIGUSR2 restarts it in place); the compositor waits for an idle, locked phone or
an approval, and a locked session restarts locked. Host tests: the launcher no
longer draws its label in a narrow panel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Web UI: Ctrl+V, Ctrl+Shift+V, Shift+Insert (Cmd+V on Mac) and a Paste button send the phone clipboard (text or PNG, up to 16 MB) to the desktop over POST /api/clipboard
- chandra-remote passes clipboard data to the compositor in a sealed memfd (clipboard-set-fd), replacing the 4 KB hex clipboard-set line
- Compositor: new clipboard-status and input-paste commands; text is typed into the launcher, password dialog and shell popups, otherwise the paste chord is sent (Ctrl+Shift+V in terminals)
- Paste data is captured when a paste starts, so a clipboard change mid-transfer can't corrupt it
- VNC clipboard text limit raised from 4 KB to 1 MB
- Upload endpoints are authorized with the same token check as /ws; the no-header cross-site case is refused with 403
The web UI now sends key events without opening the KB bar, and releases
held keys on blur, hide or disconnect. The first remote keystroke (web or
VNC) turns the on-screen keyboard off; it comes back when the last typing
client disconnects, unless the user toggled it by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The old 12-hour clock migration test now asserts the saved panel is version 3, not 2.
- The panel format version is bumped, so the test must match it.
- Lock the session from the power button or `chandra-ctl lock`
- Unlock with a face or the password; the password always works
- Add compositor lock module with tests, and a polkit unlock policy (org.chandra.unlock)
- Document the lock flow in docs/lock.md and link it from the README
- Add generated interface bindings for the compositor and widget components
- Replace the static moon with a 64-frame lunar phase spritesheet, generated by boot/plymouth/render-phases.py and advanced about every 0.3 s (~5 s per cycle)
- Add a glow sprite behind the moon whose opacity follows the illuminated fraction
- render.sh renders the glow SVG and the phase sheet (needs python3 with numpy and Pillow)
- install-plymouth.py removes theme files that are no longer in the source theme, and checks for the new PNGs
- Drop moon.svg and moon.png in favour of glow.svg, glow.png and moon-phases.png
It read the wall clock. When NTP moved a phone from 1970 to now, the frame
loop's elapsed time overflowed and it slept for days.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record the read-only investigation into the 6T's in-display fingerprint
reader: our unit is a Silead GSL7000 (sl7000 TA), not Goodix — GPIO 91
reads 0 and /persist carries fresh Silead calibration. Document the
extracted stock blobs (staged outside the repo), the TEE+REE software
stack and first-pass sl_fp_* command RE, the keymaster/gatekeeper HAT
path, a feasibility read, the ordered next steps, and the hardware
safety constraints. Not a shipped feature; face unlock remains the
working path.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add boot/install-plymouth.py, which installs Plymouth with the Chandra theme on a Kupfer handset, rebuilds the initramfs, and flashes the boot partition
- Check the new initramfs and the flashed command line before flashing is considered done
- Save the boot partition and every changed file on first install; --rollback restores them
- --package FILE installs Plymouth from a downloaded package for phones without internet
- Render boot messages (fsck, emergency mode) in Sans 24 instead of the default font
- Add a script-module Plymouth theme: the moon breathes over a progress bar
- The bar eases towards the last boot's duration (60 s before one is recorded)
- Art is SVG under boot/plymouth, rendered to PNG by render.sh (needs rsvg-convert)
- Decode half-size frames at 24 fps (15 on the raw front camera) for the viewfinder; full frames only for photos, video, focusing and QR scans
- Swap channels with OpenCV instead of numpy; 2 OpenCV threads for live frames; OpenMP threads sleep when idle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Scan the photo viewfinder with OpenCV's QR detectors (aruco, then plain), off the preview thread, not while recording or in the gallery
- A card shows the code's text: Open for web links, Join for Wi-Fi codes (NetworkManager over D-Bus), Copy; nothing happens before a tap
- QR pill turns scanning off
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Read the app catalog again when the Applications menu opens if .desktop files were added or removed (and on Reload); it was only read at login, so a PWA installed during the session was missing from the menu and its search
- List a Chromium browser's web apps in their own category ("Chrome Apps", "Chromium Apps", ...), as Plasma does; don't take one for the default browser
- Category column and a scrollable list (wheel, scrollbar) when the catalog doesn't fit the menu
- Show menu-spec main category names instead of the first Categories= entry; sort apps A-Z (they were sorted shortest name first)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop text-input and keyboard focus references when a client destroys a wl_surface, without sending leave for it
- Skip wl_keyboard.leave and zwp_text_input_v3.leave/enter for surfaces the client no longer has
- Skip pointer enter/leave for missing subsurfaces or toplevels
- Add a regression test: closing a second toplevel (e.g. OAuth popup) must return focus to the main window without leaving stale events
- Map VolumeUp, VolumeDown, and Mute keys to wpctl (PipeWire) or pactl, run asynchronously so the compositor never blocks
- Hold a volume key to repeat it; volume keys also work while the screen is off, without waking it
- Keep volume keys as the shutter when chandra-camera has focus; Mute still toggles system audio
- Add `chandra-ctl volume [up|down|mute|unmute|toggle|PCT|status]` and a transient Volume OSD
- Add volume-up, volume-down, and volume-mute entries to the shortcut table
- Reuse per-state scratch buffers in the Quad Bayer ISP path to cut per-frame allocations; never return an alias to the scratch output
- Release memoryviews and run gc before closing mmaps
- Seed recording from latest_frame() and emit it on stop if no fresh frame arrived, so short clips still produce a valid MP4
- Drop the initial push of the start frame
- Lower H.264 CRF from 20 to 23
- Compute ISP stats on a coarser subsample (//96 instead of //160)
- Pass -enc_time_base demux to ffmpeg so VFR video keeps the source timing
- Read the encoder's stderr only on failure, and always close the pipe
- Mirror the same ffmpeg flag and stderr close in test_camera.py
- Add chandra-camera-isp.c (C/OpenMP) for Quad-Bayer unpack, CCM, and tone mapping, with a NumPy fallback when it is not built
- Add non-blocking contrast-detection VCM autofocus, with lens subdev discovery on the sensor's I2C bus
- Tune Quad-Bayer AE: a video-mode vblank cap, damped steps, and full analog gain before extending blanking
- Record variable-frame-rate video through a streaming Matroska muxer, and count dropped frames
- Ship libcamera IPA tuning files for imx376, imx519, and uncalibrated sensors
- Map camera buffers by fd and sync them with dma-buf ioctls
- Show the on-screen keyboard when the password dialog opens or reopens, and hide it on submit. Tapping the password field reopens it after a manual Hide.
- Route Chandra Remote text commits (including Enter, Tab, and Backspace) into the password dialog while it is up.
- Keymap: read hex keysyms (`0x31`, `0x20ac`, `0xffb7`) from libxkbcommon text-v1 keymaps, and accept `0x01000000`-range Unicode keysyms.
- Keymap: keypad keys produce digits when NumLock (Mod2) is active.
- Tests cover hex keysym parsing, NumLock keypad mapping, and the OSK/remote-text flow.
- Boost the backlight to 90% while enrolling with the light on or while sign-in is scanning, then restore the previous level when that ends or the window closes.
- Add a Light: On/Off toggle (L key) to the Face window; the backdrop turns soft white while the light is on.
- Quad-Bayer AE: compute the low-light gain once and cap it by the highlight limit, so ramp-up and highlight back-off agree.
- Tests: backlight round-trip through the Face window, Quad-Bayer debayer color/low-light/dark-frame cases, and the AE ramp, back-off and restore order.
- Camera: on imx371, configure a Raw-only stream and drive exposure, vblank, analogue gain and digital gain through the sensor subdev (QuadSensorAE). Falls back to the viewfinder+raw configuration if the subdev is not found or setup fails.
- Camera: debayer 2x2-binned high-quality Quad-Bayer frames with an auto black level, a tone LUT, and CLAHE on strongly boosted frames.
- Face: add detect_score (default 0.65) and lower the default dark threshold from 25 to 12.
- Face: retry detection and embedding on gamma-lifted, CLAHE-enhanced frames when the image is dark.
- remote/: shared-memory framebuffer mirror served as RFB 3.8 (VNC, port 5900) and an HTTP/WebSocket PWA (port 6080), bound to the Tailscale interface and loopback by default
- Compositor: remote pointer, button, scroll, modifier, key, key-tap, text and clipboard input, routed past OLED blanking
- chandra-ctl: add status, refresh and osk commands; add input-* and clipboard-set for remote control
- Camera: debayer 10-bit CSI-2 Quad-Bayer frames for imx371 and high-quality still capture
- Camera: rotate frames by the libcamera mounting angle (CCW for 90), fix the expected test values, and restyle the UI for a dark theme
- Replace the in-process GTK3 run_gui() with run_worker(), which owns the camera engine.
- Worker streams downscaled Cairo BGRA frames to stdout, with a length header per frame.
- Worker reads UI commands from stdin (switch, snap, snap_full, rec_start, quit) and emits state lines (info, active, flash, toast, saved_photo, rec_state).
- SIGINT/SIGTERM set a stop flag so the worker shuts down cleanly.
- Discover libcamera cameras, falling back to V4L2; label them Back, Front or External and pick the rear sensor first
- Photo mode: JPEG saves to ~/Pictures/Camera, with an optional high-res still capture
- Video mode: H.264 MP4 recording through ffmpeg, saved to ~/Videos/Camera
- Rear torch LED toggle via sysfs, falling back to logind SetBrightness
- GTK3 + Cairo Wayland UI with a viewfinder, timer, grid, camera switch and gallery view
- Add the desktop entry, icon and camera tests
- Add compositor/shell/backlight.mbt for backlight control in the shell
- Update wit/capabilities.wit and wit/host/plasmoids.wit, then regenerate the component and interface ffi.mbt bindings (mostly export reordering)
- Add world/launcher-widget/README.md
- Rotate the display 0/90/180/270 degrees in the KMS host, with scanout and libinput touch/pointer coordinates transformed to match
- Add a touch "Rot" pill beside "KB": tap turns 90 CW, long-press or right-click flips 180
- Add `chandra-ctl rotate [cw|ccw|flip|0|90|180|270|status]`; CHANDRA_ROTATE sets the initial orientation
- Add session/chandra-auto-rotate, which follows iio-sensor-proxy orientation (disable with CHANDRA_AUTO_ROTATE=0)
- Advertise window_menu, maximize, fullscreen and minimize via xdg_toplevel.wm_capabilities (xdg_wm_base v5+)
- Add docs/handset.md covering handset touch, scaling, OSK and rotation
- Opens for text-input-v3 fields, terminals, launcher search, Network password, emoji picker and the password dialog; a KB pill summons it manually.
- Enabled on CHASSIS=handset; CHANDRA_OSK=1|0 overrides, and it stays off under CHANDRA_TEST_CONFIG.
- Work area and panel popups shrink above the keyboard so focused content stays visible.
- Keys send evdev codes with Shift, Ctrl and Alt modifiers.
- chandra-ctl: `screenshot [PATH]` saves a PNG without opening the editor.
- Key names cover the full punctuation set and shifted symbols.
- Launcher plasmoid min width drops from 60 to 36.
- kms: touch down, move and up drive the pointer and send BTN_LEFT, so touchscreens work without a mouse. Only the first finger (tracked by seat slot) controls the pointer.
- A held touch is released on VT switch and on close, so the button is never left stuck down.
- setup-toolchain.sh: fetch wasm-tools, wit-bindgen, wasmtime and the wasmer C API for aarch64 as well as x86_64. Other architectures still fail with an error.
- Add favicon.svg: a crescent moon on a dark rounded tile
- Link it from host/web/index.html as the page icon
- serve.mjs: allow /favicon.svg through the path filter and serve it as image/svg+xml
Under --x11 with a host EWMH window manager (e.g. Openbox in Gamerig),
Chandra is one top-level X11 client while other apps run directly on Xorg,
so the dock only saw Chandra's Wayland windows.
- compositor/x11: intern EWMH/ICCCM atoms and track _NET_CLIENT_LIST,
_NET_ACTIVE_WINDOW, titles, and window states via PropertyChangeMask,
filtering non-taskbar/child windows and adding focus, close, minimize,
and toggle-maximize EWMH/ICCCM actions.
- compositor/shell: add resolve_external_app_id (matching WM_CLASS and
StartupWMClass against installed .desktop files) and publish_windows.
- compositor/host: bridge ExternalWindow entries with bit-30 tagged IDs
into shell.windows/win_list while keeping Wayland wm.windows and session
snapshots untouched, and route activate_task / window_command actions.
- compositor/app, compositor/bin, docs/x11.md: wire external window sync
before X11 input handling and register ExternalWindowHandler.
Verified: moon test --target native compositor/x11 compositor/shell (38/38),
external_windows_test.mbt + dock_test.mbt (3/3), build-compositor-wasm.sh,
and moon build --target native compositor/bin.
wasmhost leaked the arguments of every host call. wt_stub.c handed them to
the MoonBit dispatcher expecting it to own them, but the compiler borrowed
the parameter, so nothing released them (about 600 kB/s in a test with one
busy terminal; a long session reached over 16 GB resident plus swap).
MoonBit now allocates the buffer and C copies into it.
Also:
- Unannotated pointer FFI parameters default to #owned, and none of these C
functions released theirs, including the native KMS present (a whole frame
each). Annotated #borrow; the wasmhost build now fails on that warning,
which --warn-list -a had hidden.
- Watched launches forked the whole compositor, and each monitor kept a
snapshot of its heap for the app's lifetime. It now posix_spawns a fresh
copy of the binary that takes over before main.
- The host logs memory, window buffers and images once a minute.
- chandra-session keeps the previous log as session.log.1.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hj5m35Lj6Rt9vwwLGZ
The fetch script downloaded through mktemp (0600) and the installer kept
that mode, so the session couldn't read the root-owned font and reported
it missing. The failure was also cached until the next session.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>