Skip to content

fix(ui): never show server problem detail or title on the TV - #1111

Merged
Artic0din merged 5 commits into
mainfrom
cursor/fix-no-server-detail-echo-c79e
Dec 6, 2026
Merged

Artic0din merged 5 commits into
mainfrom
cursor/fix-no-server-detail-echo-c79e

Conversation

@Artic0din

Copy link
Copy Markdown
Owner

Problem

Closes #1107
Related issue: N/A

docs/parity-decisions.md says Samsung TV error UI must never echo server problem detail or title (those strings can leak URLs, emails, or credentials on a shared screen). Several paths still did: errorState, writeFailureMessage, profile create alerts, subtitle search failures, and Watch Party failure banners. Native and UI tests locked in the echoing behavior.

Approach

  • Map every TV-visible failure through local catalog / HTTP status copy in errorState and writeFailureMessage (conflict → requests.reason.already_requested).
  • Stop reading problem.detail / problem.title in profile create, subtitle search, and Watch Party failure text.
  • Update native and Playwright expectations to the local strings.
  • Add a repoInvariants check that forbids property access or destructuring of problem.detail / problem.title outside the wire/error types.

Local proof: restoring the old const { status, id, title, detail } = failure.problem echo in errorState.ts makes the invariant fail on src/ui/errorState.ts:66.

Release Notes

Security

  • Error and Watch Party failure messages on the TV now use Auger's own wording instead of whatever text the server sent, so private details in a server problem cannot appear on a shared screen.

Validation

  • Focused native: errorStrings, requests, requestsLanguage, watchPartyHub, repoInvariants, requestProgress — 62/62 pass
  • Invariant proof with restored echo — fails as expected
  • gitleaks git --staged — no leaks
  • Full Playwright UI suite runs in CI

Risks

Watch Party and Requests refusal banners that previously showed server sentences now show local status copy; wording is less specific but matches the documented security decision.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
Open in Web Open in Cursor 

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-06T22:12:54.095850Z
We couldn’t complete this review. Comment @codex review to try again.
04068b2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

devin-ai-integration[bot]

This comment was marked as resolved.

@sourcery-ai

sourcery-ai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit 95a4b53

#1107 fix(ui): never show server problem detail or title on the TV · 6 of 6 met

# Requirement Status Notes
1 Map errorState and writeFailureMessage failures to local catalog or status copy ✅ Met errorState now maps problem responses by status, and writeFailureMessage uses local wording for recognized request errors and otherwise delegates to errorState.
2 Use local copy for profile-create and subtitle-search failures ✅ Met Profile-create alerts use errorState copy; subtitle-search and download failures use catalog-backed sentinels.
3 Stop Watch Party failure messages from echoing server problem text ✅ Met watchPartyFailureText now delegates to errorState.
4 Update native tests that expected echoed server wording ✅ Met The native expectations for errors, requests, subtitles, and Watch Party now assert local wording.
5 Add an invariant or targeted assertions against reading problem.detail or problem.title for on-screen copy ✅ Met repoInvariants scans source for direct property access and destructuring, allowing only the wire and error-type files.
6 Include the Samsung TV release note under Security/Fixed ✅ Met The pull request's Release Notes section includes the security change.

sourcery-ai[bot]

This comment was marked as resolved.

@cursor
cursor Bot force-pushed the cursor/fix-no-server-detail-echo-c79e branch from 6036e20 to 3238579 Compare December 6, 2026 22:33
cursoragent and others added 4 commits December 6, 2026 22:46
Co-authored-by: Artic0din <Artic0din@users.noreply.github.com>
Pass the Requests write action into writeFailureMessage so cancel conflicts
use invalid_state copy instead of Already requested, store subtitle search
failures as catalog sentinels, and extend the no-echo invariant for optional
chaining. Align Watch Party lobby tests with local failure wording.

Co-authored-by: Artic0din <Artic0din@users.noreply.github.com>
Update Playwright expectations that still required server problem detail
or title on error screens, notifications, rows editor, personal lists,
Requests hub, and Watch Party banners.

Co-authored-by: Artic0din <Artic0din@users.noreply.github.com>
Co-authored-by: Artic0din <Artic0din@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-no-server-detail-echo-c79e branch from 3238579 to c94f732 Compare December 6, 2026 22:46
Co-authored-by: Artic0din <Artic0din@users.noreply.github.com>
@Artic0din
Artic0din merged commit e8672d0 into main Dec 6, 2026
12 checks passed
@Artic0din
Artic0din deleted the cursor/fix-no-server-detail-echo-c79e branch December 6, 2026 23:07
@github-project-automation github-project-automation Bot moved this from Todo to Done in Auger Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix(ui): never show server problem detail or title on the TV

2 participants