Skip to content

Stop telling a Word reader 'Only .docx files are supported' — a protected or corrupt .docx that fails to convert is met with a false claim about its format, the very claim #243 removed for workbooks #269

Open

Description

@bencode

Problem

When a Word document fails to convert, the reader is told a falsehood about it. Any conversion failure — a password-protected .docx, a truncated download, a .doc or RTF renamed to .docx — surfaces as "This document could not be read. Only .docx files are supported." (ui-packages/web/src/features/reader/docx-reader.tsx:35). The store accepted the file as .docx, the reader opened it by that name, and the failure is about its content; the message claims the format is unsupported. A reader holding a protected contract concludes their file is the wrong kind and gives up or re-saves it for nothing.

This is the exact false claim #243 removed for workbooks, where the message now ends at "This workbook could not be read." (ui-packages/web/src/features/reader/xlsx-reader/index.tsx:28). #243's fix commit (4f2d801) touched only xlsx files; the Word twin kept the sentence.

Proposal

  • Drop the second sentence: a conversion failure shows "This document could not be read.", matching the workbook reader word for word.
  • Keep everything else — console.error already carries the underlying cause for diagnosis.

Goal

After this, a reader whose .docx fails to convert — protected, corrupt, or misnamed — meets an honest "could not be read" and never a claim that .docx is unsupported, on either format.

Verification

if grep -rq 'Only .docx' ui-packages/web/src/; then echo 'the false claim is still there'; exit 1; fi
pnpm --filter @gamma-reader/web test src/features/reader
pnpm check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 27, 2026
  2. bencode commented on Oct 27, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Evidence audit: all citations confirmed on main (dbf9cb6).

    Duplicate check: clean across open and closed. #267 is the same honesty family but a different door (pptx preview); #45/#209/#222 are about unconverted content, not a false format claim.

    Sensor: lint ✓. Verify was broken as filed — repaired. The block's grep … ; echo "exit: $?" swallows the grep exit code, so verify passed on unfixed main — as a gate it could never fail, and a later beat would have closed this as implemented on a false signal. Per the anchor-repair rule I edited only the Verification block (first line is now if grep -rq 'Only .docx' ui-packages/web/src/; then … exit 1; fi); re-lint ✓, and verify now fails on main with the false claim is still there — the correct not-implemented verdict. Body edit logged: Verification block, first line only, nothing else touched.

    Verdict: valid, stays open. The fix is the mirror of 4f2d801: drop the second sentence in docx-reader.tsx:35, keep the console.error.

  3. bencode commented on Oct 30, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit @ d05b6b6 — last review (10-27) predated the four plugins commits (de9243b/b1cc4f8/4baf829/d05b6b6); none touch the cited files. Still valid; stays open.

    --

  4. bencode commented on Nov 5, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit @ d05b6b6 — no commits since the 10-30 review; still valid, stays open.

  5. bencode commented on Nov 7, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit at d05b6b6 (fourth pass; HEAD unchanged since 2026-10-28) — valid, stays open; no edits.

    Verdict unchanged; the fix remains the one-liner mirroring 4f2d801: drop the second sentence, keep console.error; no test asserts the message.

  6. bencode commented on Nov 11, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit @ d05b6b6 (still HEAD — no commits since the 11-07 pass): valid. Evidence re-confirmed, sensor re-run, no new overlaps. Stays open.

    No maintainer signal (zero unmarked comments, reactions, assignees). No action this beat beyond this record; the fix remains the one-liner mirroring 4f2d801 — drop the second sentence, keep console.error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions