Files
Lumotia/HANDOVER-2026-04-18.md
Jake ea48d03cee
Some checks failed
check / cargo check (macos-latest) (push) Has been cancelled
check / cargo check (ubuntu-22.04) (push) Has been cancelled
check / cargo check (windows-latest) (push) Has been cancelled
check / svelte build + lint (push) Has been cancelled
agent: dogfood polish 2026/04/19 — Linux native chrome + History redesign + mic picker cleanup
Second dogfood sprint. Headline fix: Linux now uses native KWin/Mutter
decorations instead of fragile frameless `startResizeDragging`, which
collapsed diagonal corner resize to a single axis and made drag feel
laggy. macOS / Windows keep custom chrome via `useCustomChrome` gate.

Other changes:

- Cross-window preferences sync via `kon:preferences-changed` Tauri
  event — theme and font changes propagate live to float/viewer.
- Hotkey recorder rewritten to use capture-phase document listener
  gated by $effect; button focus was unreliable in webkit2gtk.
- History page redesigned for cognitive-load hygiene: title-first
  compact row, inline title input, Edit popout opening /viewer in
  edit mode, clipboard export as .md with YAML frontmatter, manual
  tag chips + + Add tag input, header tag filter (cap 7), global
  Starred filter, `tag:xyz` search syntax.
- `deriveAutoTags` kept as empty hook for post-Task-7 LLM topic tags;
  research found all previous auto-tag chips redundant with row UI.
- Viewer window adds edit mode with debounced-save textarea; native
  title renamed to "Kon - Transcription Editor".
- Window minimums updated per GNOME HIG + WCAG reflow research:
  main 960x600, float 360x480, editor 560x520.
- Microphone picker filters raw ALSA strings (hw:, plughw:, front:,
  sysdefault:, null) and dedupes by CARD=X. New `description` field
  on DeviceInfo reads /proc/asound/cards so Blue Yeti shows as "Blue
  Microphones" instead of the short "Microphones" card name.
- GPU reporting fixed: get_runtime_capabilities now returns
  accelerators=[cpu,vulkan] and whisper.supports_gpu=true, matching
  the transcribe-rs whisper-vulkan feature linked unconditionally.
- ResizeHandles kept for macOS/Windows frameless: 12px edges, 20px
  corners via CSS vars, pointerdown + setPointerCapture, corners
  above edges in z-order, rendered as sibling (not child) of the
  animated layout root so `position: fixed` is viewport-relative.
- Dueling drag-region handlers removed — `data-tauri-drag-region` and
  manual `startDragging()` were stacked on the same elements; kept
  the manual handler which has the button/input early-return logic.

See HANDOVER.md for the full session log and deferred items.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:30:42 +01:00

3.1 KiB

name, type, tags, description
name type tags description
handover-2026-04-18 reference
handover
session
kon
Session handover — 2026/04/18 dogfooding sprint

Kon Handover — 2026/04/18

Current state

Phase 1 brand migration and Phase 2 polish are both complete and committed. Today was the first dogfood attempt — Vulkan GPU build is in progress but not yet confirmed working. Three bugs were caught and fixed during the first launch attempt.

What's working

  • 18/18 automated validation checks pass (Playwright, python3 /tmp/kon_validation.py)
  • Pre-warm fixedtauri::async_runtime::spawn instead of tokio::spawn; model loads in background before first dictation
  • Preferences infinite loop fixedObject.assign mutation instead of object reassignment; Svelte 5 module state now stable
  • DOM hydration fixedapplyToDOM called on store init so data-theme is always set, even without Tauri webview injection
  • Vulkan feature flag committedwhisper-vulkan in crates/transcription/Cargo.toml
  • docs/dev-setup.md — authoritative dependency and launch reference

What's left

Immediate — Vulkan GPU build

Vulkan build was not yet confirmed. Three system packages needed before it will compile:

sudo dnf install vulkan-headers vulkan-loader-devel glslc

Then launch:

cd /home/jake/Documents/CORBEL-Projects/kon
LIBCLANG_PATH=/usr/lib64/llvm21/lib64 npm run tauri dev

Confirm GPU active in startup logs:

whisper_backend_init_gpu: device 0: NVIDIA GeForce RTX 4070

Manual validation (requires running app)

Three items from the validation checklist that need real Tauri runtime:

  • Persistence test — set non-default zone/font, close, relaunch, verify zero flash
  • Cross-window preferences — open float/viewer windows, check they hydrate correctly
  • 90-second onboarding — fresh-model launch, first dictation under 90s

Pre-release (before any build beyond Jake's machine)

  • Updater signing key — tauri signer generate, public key → tauri.conf.json, private key → CI secrets
  • ggml dedup — plan at docs/superpowers/plans/2026-04-18-kon-ggml-dedup.md, Option A (system-ggml shared lib), execute at Phase 3

Gotchas discovered today

Issue Fix
libclang not on PATH set -Ux LIBCLANG_PATH /usr/lib64/llvm21/lib64
tokio::spawn panics in Tauri setup() Use tauri::async_runtime::spawn — Tokio runtime isn't live yet during setup
Svelte 5 $effect infinite loop on updatePreferences Module-level $state must be mutated (Object.assign), never reassigned — stale references break loop guards
Duplicate theme sync $effect in both +layout.svelte and SettingsPage.svelte Removed from SettingsPage — layout handles it
Vulkan build needs dev headers + shader compiler sudo dnf install vulkan-headers vulkan-loader-devel glslc

Resume prompt

Picking up Kon dogfooding from the 2026/04/18 session.
HANDOVER is at HANDOVER.md in the project root.
First job: confirm Vulkan GPU build compiles and check startup logs for RTX 4070.
Then run the three manual validation items from the handover.