Switch to @lotusguild/element-call-embedded@0.20.1-lotus.1 (our self-built fork) and turn on the source-level features it adds: - #1 denoise CUTOVER: in-source ML denoise (lotusDenoiseSource=1) replaces the build-time getUserMedia shim — removed the shim injection from vite.config.js (denoise/ assets still shipped; the processor loads them). Survives reconnects (fixes A7). - #2 call-state: CallEmbed consumes io.lotus.call_state; useCallSpeakers / useRemoteAllMuted prefer it over scraping EC's DOM (DOM fallback kept; empty payloads ignored). - #4 focus: CallControl.focusCameraParticipant sends io.lotus.focus_participant (works during screenshare), replacing the DOM tile-click hack. - #5 theming: lotusTransparent=1 (native transparent background). - #6 decorations: LotusDecorationPusher sends each member's decoration URL via io.lotus.decorations -> rendered on in-call tiles. #3 soundboard / #7 quality ship dormant (EC-ready; no host UI sends them yet). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9.0 KiB
Lotus Chat — Open Bugs & Technical Debt
Only OPEN and awaiting-verification items live here. Resolved findings
(fixed-and-verified, false-positives, won't-fix) have been removed to keep this
actionable — the full history is in git. Items fixed in code but not yet
verified in a real environment are in Needs Verification below and have
step-by-step checks in LOTUS_TESTING.md.
Design rules for any fix here: follow the Native-Cinny Law and TDS Design Law in
LOTUS_TODO.md.
⚠️ Needs Verification — fixed in code, awaiting live testing
Implemented and gate-green; confirm each per LOTUS_TESTING.md, then delete the row.
| ID | Item | File / area | Test |
|---|---|---|---|
| #2 | Chat-background animation flicker (contain:paint) |
lotus/chatBackground.ts |
F1 |
| #4 | Ringtone re-fixes: classic loudness + caller decline notice (A2 ✓ live) | CallEmbedProvider.tsx, ringtones.ts |
A1,A3,A4 |
| #6 | Background vs. seasonal theme mutual exclusion | state/settings.ts, General.tsx |
F2 |
| #7 | Composer toolbar touch targets (≥44px) | room/RoomInput.tsx |
E1 |
| #8 | Room Settings horizontal overflow (mobile) | components/page/style.css.ts |
E2 |
| #9 | Modal fullscreen on mobile (useModalStyle) |
22+ modal files | E3 |
| #10 | Composer not hidden by keyboard (100dvh) |
src/index.css |
E4 |
| #12 | PiP "All muted" badge re-fixed (was firing on any single mute) | hooks/useCallSpeakers.ts |
G1 |
| N96 | Call-recovery overlay single "Back" button | call/CallView.tsx |
A7 |
| N95 | AFK-monitor mic released on mute (OS indicator clears) | hooks/useAfkAutoMute.ts |
L1 |
| N108 | Maskable PWA icons (Android adaptive) | public/manifest.json + res/android/maskable-* |
L2 |
| EC | EC iframe load watchdog + self-heal + recovery UI | plugins/call/CallEmbed.ts, CallView.tsx |
A7 |
| Gal | MediaGallery lazy-decrypt (true virtualization deferred) | room/MediaGallery.tsx |
H1 |
| a11y | aria-labels: edit-history / reaction / thread / reply | message/* (FallbackContent, Reaction, Reply) |
I |
Verified working in live testing (2026-06): A2, B1–B4, C1, C3, D (mic/camera/deafen/screenshare/fullscreen/more-menu/PiP). Denoise quality in D is still poor — tracked under the denoise project, not a regression.
🧩 Element Call source-level items — now actionable via the fork
🔱 [EC-FORK] UPDATE 2026-06-29: the fork is live. We now own and self-build Element Call (
LotusGuild/element-call→@lotusguild/element-call-embedded, Phase 1 done & cinny wired). A5/A6/A7 below are no longer "won't fix" — they are ordinary source changes. SeeHANDOFF_ELEMENT_CALL_FORK.md§10 + the Phase 2 work list. (The iframe is same-origin / self-hosted; the old blocker was that we didn't own EC's compiled source — which we now do.)
The in-call participant grid is rendered inside EC's app. Previously a pre-built npm bundle we could only style/place around; now editable source. Items from testing, with their fork-level fix path:
- A5 — "Focus camera": EC supports native tile-pinning. Our bottom-bar "Focus
camera" is a programmatic wrapper that
.click()s the tile today (CallControl.tsfocusCameraParticipant), and during a screenshare EC spotlights the shared screen so a camera pin may not override it. Fork fix: add anio.lotus.focus_participantwidget action that pins a participant in EC's layout (coexisting with / overriding the screenshare spotlight); cinny sends it via the widget API and the DOM-click hack is deleted. Status: Open — Actionable (Phase 2). - A6 — avatar decorations in-call: decorations render on our pre-join
lobby roster (
CallMemberCard) but not on EC's in-call video tiles. Fork fix: render the decoration APNG inside EC's participant-tile component, fed decoration slugs via widget member data. Status: Open — Actionable (Phase 2). - A7 — mic dead after EC's "Reconnect": the mid-call "Connection lost /
Reconnect" screen is EC's own (our load watchdog only covers an initial
hung load). After EC reconnects, the mic isn't re-published through our denoise
getUserMediashim until a clean End+rejoin. Fork fix: move denoise into EC's mic-capture/publish pipeline as a first-class audio stage — EC re-runs it on every (re)publish, so reconnects keep denoise alive natively, and the build-timeindex.htmlinjection is removed. Status: Open — Actionable (Phase 2); root cause is thegetUserMediamonkeypatch, not EC itself.
🔴 Open — Actionable
Calls / Audio
- N127 — ML denoise shim is never injected in
vite dev. ThelotusDenoiseplugin injects only oncloseBundle(build), so ML noise suppression is silently inactive during local dev. Add a dev-mode injection (configureServer/transformIndexHtml). Dev-only impact. Note: this dissolves entirely once denoise moves in-source in the fork (A7 fix) — there is then no build-time injection to be missing in dev.
Security & Privacy
- N97 — Access token stored in plaintext
localStorage(state/sessions.ts), vulnerable to XSS; device ID likewise. Architectural — needs a token-protection / session-storage redesign. - Session writes are non-atomic and not cross-tab synced (
state/sessions.ts) — risks inconsistent state / races across tabs. - Persisted PII without encryption: user status message + expiry (
settings/account/Profile.tsx), unsent composer drafts (room/RoomInput.tsx). Leak risk on shared devices.
PWA / Offline / Notifications
- N105 — Service worker has no
notificationclickhandler — notification clicks are broken when the tab is closed. NeedsshowNotification()via the SW + anotificationclicklistener. - N107 — SW has no
pushhandler — Web Push delivery is entirely non-functional. Needs apushlistener + a Matrix push-gateway integration. - No app-asset caching strategy (
src/sw.ts) — no offline capability. manifest: falseinvite.config.js— may block correct PWA install if not handled externally.
Dependencies & Build
matrix-js-sdkpinned to a Release Candidate (41.6.0-rc.0);@atlaskitand build tools (vite,typescript,eslint) on unstable/experimental pins — review for stable versions; RC SDK is a tree-shaking/bundle-size risk.- Build-time overhead:
lotusDenoisedoes heavy sequentialfswork incloseBundle;viteStaticCopyconfig is complex with redundant renames — could be streamlined.
Code Hygiene / DevEx
- No automated test suite (
src/) — no unit/integration tests configured. - Extensive
as anycasts acrosssrc/— gradual typing cleanup. types/matrix/mirrors SDK types instead of importing them — drift risk.- Hardcoded CDN URL should move to an env var (the decoration CDN is now single-sourced in
avatarDecorations.ts, but the literal is still in-repo). patch-folds.mjseditsnode_modulesdirectly — considerpatch-package.- Infra docs:
contrib/nginxlacks security headers (HSTS/CSP) + uses rewrites overtry_files;contrib/caddyhas a placeholder path. CI/CD (prod-deploy.yml): sequential deploy, aggressive 1-min Netlify timeout,package-manager-cache: false. - README: keep the fork-sync version + logo path current. (
CONTRIBUTING.mdis intentionally left as upstream Cinny's — not a Lotus concern.) - Architecture notes (low priority): deep
features/+hooks/nesting, many small coupled hooks, possible dead CSS/components,SpacingVariant/DropTargetrecipe simplification. - Git workflow (forward-looking): keep commits scoped — past monolithic "fix all bugs" commits and inconsistent prefixes hurt
git bisect.
Big Projects
- #5 — Seasonal themes & chat-background redesign. Current backgrounds are basic CSS; goal is high-fidelity, research-backed, GPU-accelerated designs (layered
oklch,backdrop-filter,contain:paint) with WCAG-AA overlay contrast. Treat each as its own design sprint.