Skip to content

馃帹 style: Restore Resumable SSE Import Order - #17191

Merged
dustinhealy merged 2 commits into
devfrom
fix/sse-import-order-dev
Oct 16, 2026
Merged

dustinhealy merged 2 commits into
devfrom
fix/sse-import-order-dev

Conversation

@dustinhealy

@dustinhealy dustinhealy commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

#17129 shortened the librechat-data-provider import in useResumableSSE.ts, leaving it after the longer @librechat/chat/react import. The import-sorting check now fails on dev and branches that include that change.

Move the librechat-data-provider block above @librechat/chat/react to restore the required order.

Related to #17129.

Type of change

  • Tests / tooling / CI

Testing

Tested environments/configuration: Node.js 24.16.0 on macOS.

Automated tests:

  • Reproduced the import-sort failure on dev with node scripts/sort-imports.mts --check client/src/hooks/SSE/useResumableSSE.ts.

  • npm run static-checks -- client/src/hooks/SSE/useResumableSSE.ts passes ESLint, Prettier, import sorting, package validation, and design-rule suppression checks after the fix.

  • git diff --check passes.

  • Client tsc --noEmit encountered stale workspace declaration exports in the reused local dependency installation. The fresh CI client typecheck passes.

  • CI import sorting, client typechecking, Lighthouse, and MCP Apps pass. The UI-scale conversation-row E2E scenario times out after switching to 150% scale, including both retries.

Screenshots / recordings

N/A.

Checklist

  • I reviewed my own changes
  • Relevant tests have been added or updated: verified the existing import-order check
  • Existing relevant tests pass
  • Affected static checks pass
  • User-facing or complex behavior is documented where necessary: formatting-only change
  • Required dependency changes have been merged/published: N/A
  • Required documentation PR: N/A

Copilot AI balanced review requested due to automatic review settings October 16, 2026 19:22

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.

馃煝 Approval recommended

The formatting-only change restores import order and has no identified issues.

0 open findings

What changed in this PR

Restores the required package import order in useResumableSSE.ts after #17129, addressing the import-sorting check failure.

Changes:

  • Moves the @librechat/chat/react import after librechat-data-provider, with no runtime logic changes.
File Description
client/鈥媠rc/鈥媓ooks/鈥婼SE/鈥媢seResumableSSE.ts Reorders package imports to match repository sorting rules.

馃 Review effort: Balanced


馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dustinhealy
dustinhealy marked this pull request as ready for review October 16, 2026 19:24
@dustinhealy
dustinhealy merged commit 55f3999 into dev Oct 16, 2026
35 checks passed
@dustinhealy
dustinhealy deleted the fix/sse-import-order-dev branch October 16, 2026 20:09
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.

2 participants