Skip to content

test: reproduce link-title decoding regression for M224 development drill - #3

Closed
indykish wants to merge 3 commits into
devfrom
test/m224-link-title-decoding
Closed

indykish wants to merge 3 commits into
devfrom
test/m224-link-title-decoding

Conversation

@indykish

@indykish indykish commented Oct 30, 2026 •

Copy link
Copy Markdown

What does this PR do?

Adds a regression test for an existing link-title decoding bug. unescapeString("TypeScript <T> guide &amp; examples") returns TypeScript guide & examples, dropping the literal generic type. The helper parses the title as an HTML document even though LinkCard displays its result as React text.

This draft prepares a failing regression check for the M224 development responder/repairer demonstration, targeting dev. The implementation is deliberately left unchanged so a separately reviewed repair can fix the observed bug. This draft is expected to stay red until that repair exists; it is not ready to merge.

The test file and .github/workflows/playwright-tests.yml change. The workflow runs this scoped regression after dependency installation and before browser acceptance. Authentication, application implementation, deployment settings and secrets are untouched.

Visual Demo

The local regression test provides the before/expected comparison:

Expected: "TypeScript <T> guide & examples"
Received: "TypeScript  guide & examples"

The other two cases cover ordinary HTML entity decoding and escaped angle brackets; both pass.

AI Assistance (Required)

  • None
  • Light
  • Medium
  • Heavy

Tool: OpenAI Codex inspected the source, wrote the regression tests, ran them and created this draft at the repository owner's request.

What was verified by the author?

  • Reviewed the changed test and the helper's React-text call site in apps/web/components/LinkViews/LinkComponents/LinkCard.tsx.
  • Ran node_modules/.bin/vitest run apps/web/lib/client/unescapeString.test.ts: 2 passed, 1 failed, reproducing the existing bug.
  • Checked ordinary entity decoding and escaped/literal angle brackets.
  • actionlint .github/workflows/playwright-tests.yml, git diff --check and staged Gitleaks scans passed.

The scoped run used task-local Vitest 4.1.0 and jsdom 22.1.0, matching this repository's declared version requirements. Full workspace dependencies, browser acceptance and all-repository tests were not run.

Development demonstration readiness

At creation, GitHub reported zero registered workflows and zero Actions runs for this fork. Reading Actions permissions returned HTTP 403. Actions enablement must be confirmed by the owner; no setting was changed here.

The existing Playwright workflow now runs yarn test run apps/web/lib/client/unescapeString.test.ts after dependency installation, in the new Check link title decoding step. The owner explicitly approved this single test step. The expected regression stops that job before its later browser steps. No fork setting was changed.

A local failing test is not a failed GitHub Actions run. No fleet diagnosis, fleet-owned job-log/Grafana read, Slack delivery or repair success is claimed by this PR. Any later demonstration must correlate its actual run, event, source reads and draft fix.

Submission Acknowledgement

  • This is a small, self-reviewed development draft with an expected failing regression test.

Session notes 1

Quieted successful dependency installation in commit 95a173d, as explicitly approved. Installation failures retain their full output and original exit status; the title-decoding regression and assertions are unchanged.

The push started one Playwright run: https://github.com/agentsfleet/linkwarden/actions/runs/41199403249 (attempt 1, job 124532028003). Installation passed and “Check link title decoding” failed as intended. Its decoded log is 42,883 bytes, within the 65,536-byte native stored-output budget. This is source preparation for M224; connector retrieval is not a fleet-owned demonstration pass.

Review

Approved scope is limited to the existing installation step and one development rerun. No further manual run was dispatched, no regression was weakened, and no passing repair result is claimed.

Make

  • actionlint .github/workflows/playwright-tests.yml: exit 0.
  • gitleaks protect --staged --redact --no-banner: exit 0.
  • Development run 41199403249: expected regression failure, with successful dependency installation and complete log retrieval through the connector.

@indykish
indykish marked this pull request as ready for review October 30, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant