Skip to content

chore(frontend): remove unused @ai-sdk/openai dependency#5716

Merged
Yicong-Huang merged 5 commits into
apache:mainfrom
Ma77Ball:chore/remove-unused-ai-sdk-openai
Jun 16, 2026
Merged

chore(frontend): remove unused @ai-sdk/openai dependency#5716
Yicong-Huang merged 5 commits into
apache:mainfrom
Ma77Ball:chore/remove-unused-ai-sdk-openai

Conversation

@Ma77Ball

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

  • Remove @ai-sdk/openai from frontend/package.json dependencies; it is imported nowhere in frontend/src and yarn.lock lists it only as a direct dependency of the root workspace, not a transitive or peer dependency of the in-use ai package.
  • Regenerate frontend/yarn.lock to drop the now-unreferenced resolution.

Any related issues, documentation, discussions?

Closes: #5715

How was this PR tested?

  • Run grep -rn "ai-sdk/openai" frontend/src and confirm zero matches (the package is genuinely unused).
  • From frontend/, run yarn install then yarn build; expect the production build to succeed (exit 0), confirming nothing depended on the removed package. This was run locally and passed.

Was this PR authored or co-authored using generative AI tooling?

Co-authored with Claude Opus 4.8 in compliance with ASF

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file frontend Changes related to the frontend GUI labels Jun 15, 2026

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.

Pull request overview

Removes an unused frontend dependency (@ai-sdk/openai) and cleans up the corresponding Yarn lockfile entries to keep the workspace dependency graph minimal and accurate.

Changes:

  • Drop @ai-sdk/openai from frontend/package.json dependencies.
  • Regenerate/update frontend/yarn.lock to remove the now-unreferenced package resolution and dependency entry.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
frontend/package.json Removes the unused direct dependency entry for @ai-sdk/openai.
frontend/yarn.lock Removes the lockfile resolution and dependency listing for @ai-sdk/openai.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter

codecov-commenter commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.17%. Comparing base (9cede6f) to head (db2904d).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5716      +/-   ##
============================================
+ Coverage     53.07%   53.17%   +0.10%     
+ Complexity     2657     2501     -156     
============================================
  Files          1094     1076      -18     
  Lines         42286    41665     -621     
  Branches       4541     4503      -38     
============================================
- Hits          22444    22157     -287     
+ Misses        18530    18200     -330     
+ Partials       1312     1308       -4     
Flag Coverage Δ *Carryforward flag
access-control-service 71.42% <ø> (+0.51%) ⬆️ Carriedforward from 1a65a31
agent-service 34.36% <ø> (ø) Carriedforward from 1a65a31
amber 53.81% <ø> (+0.39%) ⬆️ Carriedforward from 1a65a31
computing-unit-managing-service 1.65% <ø> (ø) Carriedforward from 1a65a31
config-service 56.71% <ø> (ø) Carriedforward from 1a65a31
file-service 57.06% <ø> (ø) Carriedforward from 1a65a31
frontend 47.86% <ø> (-0.07%) ⬇️
pyamber 90.71% <ø> (+0.93%) ⬆️ Carriedforward from 1a65a31
python 90.73% <ø> (ø) Carriedforward from 1a65a31
workflow-compiling-service 58.69% <ø> (ø) Carriedforward from 1a65a31

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Ma77Ball Ma77Ball marked this pull request as ready for review June 15, 2026 00:15
@Ma77Ball

Copy link
Copy Markdown
Contributor Author

/request-review @bobbai00

@github-actions github-actions Bot requested a review from bobbai00 June 15, 2026 00:34
@Yicong-Huang

Copy link
Copy Markdown
Contributor

can we check how was it introduced?

@Ma77Ball

Copy link
Copy Markdown
Contributor Author

@Yicong-Huang, it is introduced in this pr #4020, which is why I request @bobbai00 for review.

@Yicong-Huang

Copy link
Copy Markdown
Contributor

@Yicong-Huang, it is introduced in this pr #4020, which is why I request @bobbai00 for review.

Thanks, it might be better to put those as related backgound in the PR description.

@Yicong-Huang Yicong-Huang added this pull request to the merge queue Jun 16, 2026
@Yicong-Huang Yicong-Huang removed this pull request from the merge queue due to a manual request Jun 16, 2026
@Yicong-Huang Yicong-Huang added this pull request to the merge queue Jun 16, 2026
Merged via the queue into apache:main with commit 4bf1233 Jun 16, 2026
17 checks passed
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
### What changes were proposed in this PR?
- Remove `@ai-sdk/openai` from `frontend/package.json` dependencies; it
is imported nowhere in `frontend/src` and `yarn.lock` lists it only as a
direct dependency of the root workspace, not a transitive or peer
dependency of the in-use `ai` package.
- Regenerate `frontend/yarn.lock` to drop the now-unreferenced
resolution.
### Any related issues, documentation, discussions?
Closes: apache#5715
### How was this PR tested?
- Run `grep -rn "ai-sdk/openai" frontend/src` and confirm zero matches
(the package is genuinely unused).
- From `frontend/`, run `yarn install` then `yarn build`; expect the
production build to succeed (exit 0), confirming nothing depended on the
removed package. This was run locally and passed.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused @ai-sdk/openai dependency from frontend

6 participants