CallControl.setPipMode writes state nothing reads #59

Closed
opened 2026-09-12 01:51:19 -04:00 by jared · 0 comments
Owner

Severity: low · Type: tech-debt · Confidence: high

Location: src/app/plugins/call/CallControl.ts:36,425-427, src/app/components/CallEmbedProvider.tsx:724-727

Problem

_pipMode is assigned by setPipMode() (called from an effect in CallEmbedProvider on every pip transition) but is never read anywhere in the class or the codebase — the comment "so it can adjust behavior accordingly" describes behaviour that does not exist. It reads as a live invariant during review and hides the fact that CallControl has no PiP-specific behaviour at all.

How to trigger

n/a (static).

Suggested fix

delete _pipMode/setPipMode and the effect, or implement the intended PiP behaviour.


Filed from the September 2026 client audit (branch lotus @ 4bea4895).

**Severity:** low · **Type:** tech-debt · **Confidence:** high **Location:** `src/app/plugins/call/CallControl.ts:36,425-427`, `src/app/components/CallEmbedProvider.tsx:724-727` ### Problem `_pipMode` is assigned by `setPipMode()` (called from an effect in `CallEmbedProvider` on every pip transition) but is never read anywhere in the class or the codebase — the comment "so it can adjust behavior accordingly" describes behaviour that does not exist. It reads as a live invariant during review and hides the fact that `CallControl` has no PiP-specific behaviour at all. ### How to trigger n/a (static). ### Suggested fix delete `_pipMode`/`setPipMode` and the effect, or implement the intended PiP behaviour. --- _Filed from the September 2026 client audit (branch `lotus` @ 4bea4895)._
jared added this to the Audit 2026-09 · Medium & Low milestone 2026-09-12 01:51:19 -04:00
jared added the priority: lowtech-debtarea: calls labels 2026-09-12 01:51:19 -04:00
jared self-assigned this 2026-09-12 01:51:19 -04:00
jared closed this issue 2026-09-12 20:29:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#59