GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): Word attachments leave hidden text out of what agents read by only21mil · Pull Request #41421 · pingdotgg/t3code

Conversation

@only21mil

@only21mil only21mil commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Word can mark a run of text as hidden (<w:vanish/> in the run's properties). Word does not show it, but the server's document text extraction still copied it into the text that agents read from a .docx attachment.

The .docx parser already drops deleted text (w:del) as it closes each element. It now also drops a run, equation runs (m:r) included, whose own w:rPr has w:vanish turned on. That means no w:val, or true, 1 or on. A run with w:vanish w:val="0", "false" or "off" stays. Old formatting under tracked changes (w:rPrChange) does not count. This matches what #41191 did for RTF \v hidden text.

Evidence

An AI agent ran each check below on Linux (x64), with an isolated HOME, no accounts and no network.

Setup: a minimal .docx with one paragraph and six runs:

Run Properties Word shows it
Budget is none yes
draft figure <w:vanish/> no
120 <w:vanish w:val="0"/> yes
units <w:vanish w:val="false"/> yes
pending review <w:vanish w:val="true"/> no
. none yes

Steps: run the extraction the server spawns for an attachment, from main (1e088be) and from this branch:

=== main
$ node apps/server/src/bin.ts __document-text budget.docx .docx
Budget is draft figure 120 units pending review.

=== this PR
$ node apps/server/src/bin.ts __document-text budget.docx .docx
Budget is 120 units.
Standalone repro (Python builds the file)
import zipfile
W = 'xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"'
def run(text, rpr=""):
    return f'<w:r>{"<w:rPr>" + rpr + "</w:rPr>" if rpr else ""}<w:t xml:space="preserve">{text}</w:t></w:r>'
body = run("Budget is ") + run("draft figure ", "<w:vanish/>") + run("120 ", '<w:vanish w:val="0"/>') \
    + run("units", '<w:vanish w:val="false"/>') + run(" pending review", '<w:vanish w:val="true"/>') + run(".")
with zipfile.ZipFile("budget.docx", "w") as z:
    z.writestr("[Content_Types].xml", '<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/></Types>')
    z.writestr("_rels/.rels", '<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships>')
    z.writestr("word/document.xml", f"<w:document {W}><w:body><w:p>{body}</w:p></w:body></w:document>")

Then run node apps/server/src/bin.ts __document-text budget.docx .docx from the repo root.

Test: userInputAttachments.test.ts adds a .docx case covering w:vanish with no value and with 0, false, off, true, 1 and on, plus a hidden equation run and a visible run whose w:rPrChange holds an old w:vanish. Against main's documentTextWorker.ts it fails (Opening FormulaOmittedZero False Off DraftNoteAsideShown). With the fix the whole file passes (49/49). vp run check:changed passes.

Not shown: hidden text that comes from a character style (w:rStyle defined in styles.xml) is still extracted.

Generated with Gemini 4 Neon in T3 Code Nightly

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@only21mil
fix(server): Word attachments leave hidden text out of what agents read
72e5fb4
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: eeb1951
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c0913ab1-9cc1-4d0b-b999-6ca4486fcf08
Commits

Reviewing files that changed from the base of the PR and between 72e5fb4 and a61065e.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

DOCX text extraction now removes runs marked hidden by the vanish property. A test covers hidden and visible property values, along with math content.

Changes: DOCX text extraction

Layer / File(s) Summary
Filter hidden DOCX runs
apps/server/src/provider/documentTextWorker.ts, apps/server/src/provider/userInputAttachments.test.ts
The XML parser removes runs with vanish values of true, 1, or on, and treats a missing value as 1. The test checks extraction output for hidden and visible values, including math content.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: lucenx9, marve10s, stienswout

Merge Risk: Minimal · previous review 72e5f

DOCX attachment extraction now skips runs explicitly marked hidden, so agents no longer read hidden Word text. The change is small and tested for the supported property values. Attachments extracted before the upgrade, and text hidden through character styles, may still carry hidden text, but these are narrow and not merge-blocking.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the server's Word (.docx) attachment extraction now leaves hidden text out of what agents read. It follows the conventional commit form and matches the PR objective of…
Description check Passed The description follows the template. It states the problem (hidden Word text reaches agents), the change (runs with w:vanish enabled are dropped, with the listed value rules and the w:rPrChange exclu…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the server's Word (.docx) attachment extraction now leaves hidden text out of what agents read. It follows the conventional commit form and matches the PR objective of excluding w:vanish runs from extracted text.

Full details: Description check

Explanation

The description follows the template. It states the problem (hidden Word text reaches agents), the change (runs with w:vanish enabled are dropped, with the listed value rules and the w:rPrChange exclusion), and the verification (a before/after extraction run, a standalone repro, and a test file that fails on main and passes with the fix). It also states a known gap: hidden text inherited from a character style is still extracted. The Scope section does not link an issue or explain why an issue is unneeded. It cites #41191 only as precedent, so the scope requirement is only partly met. The template's Scope guidance asks for a linked issue or a reason for none.

Resolution

Consider adding a link to the issue that shows the bug, or a sentence explaining why no issue is needed for this fix. The description is otherwise complete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 9292b03
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7205e6f8-f10c-4ebd-a04d-b493a1d1b1b7
Commits

Reviewing files that changed from the base of the PR and between 9292b03 and 72e5fb4.

Files selected for processing: 2

  • apps/server/src/provider/documentTextWorker.ts
  • apps/server/src/provider/userInputAttachments.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 23, 2026
@juliusmarminge @claude
Merge remote-tracking branch 'origin/main' into fix/server-word-hidde…
a61065e
…n-text-vanish

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 23, 2026

Copy link
Copy Markdown
Member

Evidence

Upload the same synthetic hidden-budget.docx through the composer on fresh databases. Open an unchanged copy of the server-written extraction sidecar in the app editor. Web browser, 1280×800, light theme; replay supplies only the initial thread.

Before After
eeb19512f0 a61065e468
Includes both hidden runs: Budget is draft figure 120 units pending review. Excludes both hidden runs: Budget is 120 units.
Before: hidden runs included After: hidden runs excluded
Before recording After recording

Scenario and synthetic DOCX generator

The scenario failed on base and passed on head; screenshots were visually inspected.

Not shown:

  • Equation runs, explicit w:val false/0/off, and rPrChange were not exercised; this proof covers the supplied direct-w:vanish reproduction.
  • Provider consumption was not exercised because extraction completes during upload; evidence shows the actual sidecar supplied for agents to read.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 23, 2026
@juliusmarminge
juliusmarminge merged commit 7474a28 into pingdotgg:main Nov 23, 2026
55 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 23, 2026
@patroza patroza mentioned this pull request Nov 23, 2026
Merge upstream main through 1bc44f2732ce patroza/t3code#668
Merged
@adampeterhiggins adampeterhiggins mentioned this pull request Nov 23, 2026
merge upstream/main into fork adampeterhiggins/t3code#597
Merged
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 23, 2026
@github-actions
nightly: 0.1.12-nightly.20261123.5151
2076458
**v0.1.12-nightly.20261123.5151** · 67 changes from 25 contributors

- **Background browser previews.** Agents can take screenshots and interact with previews while T3 Code is hidden, minimized, or covered.
- **Agent message delivery.** Messages from other agents can steer a running turn without waiting behind a queued message.
- **Web startup.** T3 Code starts in browsers where WebAssembly is disabled.
- **Open links on macOS.** Links open a T3 Code window when the app is running without one.

### Plus 51 more bug fixes and performance improvements.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(web): retry a failed port-forward locality probe by @juliusmarminge in pingdotgg/t3code#41353
* fix(web): start without WebAssembly by initialising Words in a guard by @juliusmarminge in pingdotgg/t3code#41361
* feat(scripts): server metrics read event-loop delay and GC in every window by @juliusmarminge in pingdotgg/t3code#41252
* feat(scripts): server metrics measure a busy server on a copy of real data by @juliusmarminge in pingdotgg/t3code#41280
* feat(scripts): server metrics attach real clients and time a reconnect storm by @juliusmarminge in pingdotgg/t3code#41281
* feat(scripts): server metrics time the turn pipeline and opening a large thread by @juliusmarminge in pingdotgg/t3code#41282
* perf(server): SQL transactions stop copying every service twice by @juliusmarminge in pingdotgg/t3code#41379
* fix(cli): environment link --from no longer ignores --url by @only21mil in pingdotgg/t3code#41375
* fix(server): a Claude turn no longer ignores messages added to its session in a terminal by @matthewcosier in pingdotgg/t3code#38528
* fix(server): projects behind a git insteadOf rewrite are recognized as GitHub again by @Muzammil-Bit in pingdotgg/t3code#41364
* fix(web): hide Mark unread on threads with no completed run by @juliusmarminge in pingdotgg/t3code#41365
* fix(web): keep OpenDocument image descriptions in alt text by @geezoria in pingdotgg/t3code#41383
* fix(server): t3_thread_read returns the newest page to outside MCP clients by @mfazekas in pingdotgg/t3code#41378
* fix(server): pull request tools say when repository is not owner/repo by @iamshadmantaqi in pingdotgg/t3code#41397
* fix(server): storage cleanup retries and keeps reporting git metadata it failed to delete by @juliusmarminge in pingdotgg/t3code#41386
* fix(desktop): ⇧⌘V (Paste as Text) pastes text in the composer on macOS by @tiliakoos in pingdotgg/t3code#39008
* perf(server): replay stored events about twice as fast by @hieu-lee in pingdotgg/t3code#26719
* fix(server): Codex async alerts keep their delivery marker in the thread API by @juliusmarminge in pingdotgg/t3code#41411
* fix(desktop): recover frozen macOS backends on relaunch by @juliusmarminge in pingdotgg/t3code#41401
* fix(cli): npx no longer skips the install offer for a directory or non-runnable t3 on PATH by @only21mil in pingdotgg/t3code#41402
* fix(server): PR tools build URLs through the refined forge they are exposed for by @juliusmarminge in pingdotgg/t3code#41414
* fix(desktop): a link opened while the macOS window is closed opens a window by @Marve10s in pingdotgg/t3code#40347
* fix(server): slow provider batches stay whole while a write waits on its own thread by @juliusmarminge in pingdotgg/t3code#41416
* fix(server): agent browsers' DevTools ports no longer show as servers by @tiliakoos in pingdotgg/t3code#40728
* fix(mobile): apply Android language changes immediately by @qi-hey in pingdotgg/t3code#38982
* fix(web): chat links open their menu from the keyboard on macOS by @Kenmege in pingdotgg/t3code#37405
* fix(server): report failed Finder reveals for missing files by @VinzentHubrich in pingdotgg/t3code#38748
* fix(server): Word attachments leave hidden text out of what agents read by @only21mil in pingdotgg/t3code#41421
* fix(server): skip CodeRabbit review acknowledgement wakes by @voltcrash in pingdotgg/t3code#32300
* fix(cli): expand ~ in t3 environment link --from by @Marve10s in pingdotgg/t3code#41430
* fix(cli): reject incomplete workflow signal addresses locally by @only21mil in pingdotgg/t3code#41431
* fix(opencode): Usage → Limits no longer warns when no Console workspace is signed in by @nthewara in pingdotgg/t3code#41415
* fix(cli): uninstall removes a script launcher whose target names the home through a symlink by @only21mil in pingdotgg/t3code#41435
* fix(server): long setup scripts complete in macOS zsh by @sync in pingdotgg/t3code#37836
* fix(server): preview type sends key events to the page by @juliusmarminge in pingdotgg/t3code#41432
* fix(shared): Open in Cursor skips a broken cursor on PATH by @N4M3Z in pingdotgg/t3code#38212
* fix(cli): expand ~ in t3 policy templates --policy by @Marve10s in pingdotgg/t3code#41438
* fix(server): read relocated shared strings in XLSX attachments by @Lucenx9 in pingdotgg/t3code#41441
* fix(server): import Claude sessions whose first prompt carries a large image by @juliusmarminge in pingdotgg/t3code#41446
* fix(server): keep PowerPoint slides with alternate relationship prefixes by @Lucenx9 in pingdotgg/t3code#41454
* fix(server): another agent's queued message no longer holds back an auto send by @juliusmarminge in pingdotgg/t3code#41461
* feat(scripts): server metrics record machine load and derive noise floors from A/A runs by @juliusmarminge in pingdotgg/t3code#41370
* feat(scripts): server metrics measure many threads working at once with one client by @juliusmarminge in pingdotgg/t3code#41371
* docs: point provider setup at ACP Registry agents like GitHub Copilot by @juliusmarminge in pingdotgg/t3code#41478
* fix: treat empty PATH entries as the working directory in launcher and CLI lookups by @Motaghi in pingdotgg/t3code#41393
* test(web): open history documents without reloading the app in iframes by @juliusmarminge in pingdotgg/t3code#41489
* feat(scripts): server metrics reconnect a user's devices by default and keep the 20-client storm behind --stress by @juliusmarminge in pingdotgg/t3code#41372
* fix(cli): clarify provider-specific model option examples by @nettee in pingdotgg/t3code#41484
* feat(scripts): server metrics get a --quick profile, one-line failures and a guide to the scenarios by @juliusmarminge in pingdotgg/t3code#41373
* fix(server): analytics report every model name by @t3dotgg in pingdotgg/t3code#41237
* fix(server): workflows find a project named by its Windows folder by @Marve10s in pingdotgg/t3code#41456
* fix(client-runtime): a workflow reply with no space before the limit is cut at the limit by @Marve10s in pingdotgg/t3code#41488
* test(web): load history documents without re-evaluating the app graph by @juliusmarminge in pingdotgg/t3code#41497
* fix(server): an unfinished control sequence no longer delays terminal output by @juliusmarminge in pingdotgg/t3code#41420
* fix(server): service commands no longer stop systemd-oomd watching the user manager by @juliusmarminge in pingdotgg/t3code#41495
* fix(server): a compaction or manual continuation keeps its session busy like a turn by @navidnadali in pingdotgg/t3code#41490
* fix(server): Azure DevOps PRs read by number get their full URL by @4dwaffle in pingdotgg/t3code#41472
* fix(desktop): agent screenshots and clicks work while T3 Code is hidden, minimized or covered by @3xcalibur-tech in pingdotgg/t3code#40263
* fix(server): a PR whose merge is refused for conflicts shows as conflicting by @micnem in pingdotgg/t3code#41500
* fix(cli): a symlinked spelling of the T3 home is the same home for service uninstall by @only21mil in pingdotgg/t3code#41464
* fix(server): preserve number formats when XLSX styles are relocated by @Lucenx9 in pingdotgg/t3code#41486
* fix(web): Markdown previews load relative images in timestamped and root folders by @only21mil in pingdotgg/t3code#41505
* fix(server): RTF text in an ANSI font reads as code page 1252 under any document code page by @Marve10s in pingdotgg/t3code#41508
* fix(web): RTF previews read text in an ANSI font as code page 1252 under any document code page by @Marve10s in pingdotgg/t3code#41514
* fix(web): notebook previews show errors saved without a traceback by @only21mil in pingdotgg/t3code#41511
* fix(server): a declined steer of a delegated completion still wakes the parent by @juliusmarminge in pingdotgg/t3code#41521
* test(server): HTML preview revision test no longer depends on a fine kernel clock by @t3dotgg in pingdotgg/t3code#40931

## New Contributors
* @qi-hey made their first contribution in pingdotgg/t3code#38982
* @VinzentHubrich made their first contribution in pingdotgg/t3code#38748
* @nthewara made their first contribution in pingdotgg/t3code#41415
* @sync made their first contribution in pingdotgg/t3code#37836
* @N4M3Z made their first contribution in pingdotgg/t3code#38212
* @nettee made their first contribution in pingdotgg/t3code#41484
* @4dwaffle made their first contribution in pingdotgg/t3code#41472
* @micnem made their first contribution in pingdotgg/t3code#41500

**Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261123.5138...v0.1.12-nightly.20261123.5151

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261123.5151
@jadelike-wine jadelike-wine mentioned this pull request Nov 27, 2026
fix(server): omit DOCX text hidden by a character style #44447
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@only21mil @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.