Skip to content

fix(server): keep PowerPoint slides with alternate relationship prefixes - #41454

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
Lucenx9:fix/pptx-slide-relationship-prefix
Nov 23, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
Lucenx9:fix/pptx-slide-relationship-prefix

Conversation

@Lucenx9

@Lucenx9 Lucenx9 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Problem

PowerPoint attachment text can omit a slide when the file uses a different prefix for relationship attributes. If links:id="rId2" comes before the numeric id="257", the numeric ID overwrites the relationship ID in the local-name lookup and the agent sees a skipped-part notice.

Change

Resolve slide relationship IDs using the declared Office relationships namespace. The declaration may be on the slide ID, the slide list, or the presentation. The existing fallback still handles older inputs with undeclared prefixes.

Scope

Small fix for server-side PowerPoint attachment text. Targeted searches found no equivalent fix. #38377 limits extraction to the actual slide list. This change resolves the relationships within that list.

Verification

I compared archives with the same slide data, changing only the relationship prefix and attribute order. I then replayed a two-slide deck with section metadata through the extraction worker.

Same generated deck Before After
Slide 1 Departure Departure
Slide 2 Skipped document part Arrival

The existing PowerPoint attachment test now includes both prefixes and fails on base when it reaches the second slide. Targeted replays cover both attribute orders, the Strict namespace, and a local namespace declaration. fast-check passed 120 cases and Jazzer.js completed 160 bounded runs. Stryker killed 19 of 21 mutants on a source-derived copy. The survivors remove the qualified-name guard and are outside the exercised slide ID shape.

Fallow and CodeScene flagged complexity, and CodeScene also flagged two additional fixture lines crossing the test-file size threshold. Both advisory gates failed. The analysis ran on a two-file snapshot. Runtime tests ran on Linux.

vp run check:changed --concurrency 1 passed with 51 tests, typecheck, format, lint, Knip and GraphQL. The same check passed again after rebasing onto 5e12857. Normal commit hooks passed.

Independent review: Gemini 4 Neon medium on Antigravity and Opus 5.5 high approved.

Reviewed with sol-loop: 1 round with GPT-6.2 Sol on high. Sol verdict: approved.

Created with GPT-6.2 Sol in Codex through T3 Code.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 13:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T13:14:17.326758Z 70f3fd5 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.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

PowerPoint slide processing now resolves relationship IDs from supported OOXML namespaces declared on the slide or inherited from the presentation and slide list. It falls back to r:id, then id. The PPTX fixture includes a slide reference that uses links:id.

Changes: PowerPoint slide relationship lookup

Layer / File(s) Summary
Resolve slide relationships
apps/server/src/provider/documentTextWorker.ts, apps/server/src/provider/userInputAttachments.test.ts
The resolver checks supported OOXML relationship namespaces on the slide and inherited attributes, then falls back to r:id and id. The fixture uses links:id for its second slide reference; slide IDs and targets are unchanged.

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

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#38377: Changes slide ID extraction to use the presentation’s top-level slide list, which is also used by this PR’s relationship lookup.

Suggested labels: bugfix

Suggested reviewers: only21mil, marve10s, macroscopeapp

Merge Risk: Minimal · up to 68819

PowerPoint attachments whose slide references use a non-r relationship prefix are no longer skipped during text extraction. Older inputs with undeclared prefixes still resolve through the existing fallback. No merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: PowerPoint slide extraction now keeps slides when relationship attributes use alternate prefixes. The description and objectives confirm that the fix resolves slide re…
Description check Passed The description follows the template. It has Problem, Change, Scope, and Verification sections, each with substantive content. The Problem section states the bug and its cause. The Change section expl…
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: PowerPoint slide extraction now keeps slides when relationship attributes use alternate prefixes. The description and objectives confirm that the fix resolves slide relationship IDs through the declared Office relationships namespace, and the raw summary shows the matching helper change in documentTextWorker.ts. The title follows the conventional commit format and is specific.

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Scope, and Verification sections, each with substantive content. The Problem section states the bug and its cause. The Change section explains the namespace-based resolution and the fallback. The Scope section links to #38377 and explains why no issue exists for this fix. The Verification section reports targeted tests, a before/after comparison, and the commands run. The description does not link an issue that shows the bug, and the template asks for that, but the author gives a reason for the omission. The Verification section also reports that two advisory gates (Fallow and CodeScene) failed, which a reviewer should weigh. The description also names the models used, as the template asks for agent-driven work. The description is mostly 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

Commits

Reviewing files that changed from the base of the PR and between 70f3fd5 and 68819f0.

Files selected for processing: 1

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

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

@Lucenx9
Lucenx9 force-pushed the fix/pptx-slide-relationship-prefix branch from 70f3fd5 to f7dda2e Compare November 23, 2026 13:20
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 23, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Uploaded the same synthetic two-slide PPTX through the composer on both commits. Slide 2 uses links:id="rId2" before id="257". Opened an unchanged copy of the server-generated extraction sidecar in the real app's file viewer. Both runs used fresh databases, light theme, and a 1280×800 web viewport.

Proven: the scenario fails on base and passes on head. Base skips Slide 2; head includes BRAVO second slide text and BRAVO speaker notes.

Before After
2bc7878fff 68819f025a
Before: Slide 2 skipped After: both slides and notes extracted
Before recording After recording

Scenario and synthetic deck generator

The scenario displays server extraction directly; it does not use a model response as evidence.

Not shown:

  • A paid-model response was not exercised; the actual server-generated extraction was displayed directly.
  • Reverse attribute order, strict OOXML relationship namespaces, and other namespace declaration placements were not separately exercised.

@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 d1a6c35 into pingdotgg:main Nov 23, 2026
59 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 23, 2026
Fire- added a commit to Fire-/t3code that referenced this pull request Nov 23, 2026
…a Merge

 * apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
 * apps/web/src/components/chat/MessagesTimeline.tsx

•   94c20e7fcd	Overlay branch overlay/web-turn-fold-reading on top of origin/main via Merge
|\
| •   001d736	Overlay branch overlay/web-turn-fold-reading on top of origin/main via Merge
| |\
| | •   ce6a5bf	Overlay branch overlay/web-turn-fold-reading on top of origin/main via Merge
| | |\
| | | •   9a98823	Overlay branch overlay/web-turn-fold-reading on top of origin/main via Merge
| | | |\
| | | | •   ab537b3	Overlay branch overlay/web-turn-fold-reading on top of origin/main via Merge
| | | | |\
| | | | | •   a256fb3	Overlay branch overlay/web-turn-fold-reading on top of origin/main via Merge
| | | | | |\
| | | | | | • 43e493c	feat(web): keep a turn's work open when it ends while you are reading it
• | | | | | | d1a6c35	fix(server): keep PowerPoint slides with alternate relationship prefixes (pingdotgg#41454)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants