Skip to content

🧹 refactor: Import Steer Queue and Recovery State from the Chat Package - #17162

Open
berry-13 wants to merge 1 commit into
refactor/chat-steer-movefrom
refactor/chat-steer-shims
Open

berry-13 wants to merge 1 commit into
refactor/chat-steer-movefrom
refactor/chat-steer-shims

Conversation

@berry-13

Copy link
Copy Markdown
Collaborator

Summary

When the steer queue atoms and recovery dispositions moved into @librechat/chat, client/src/hooks/Chat/queue.ts and client/src/components/Chat/Steering/recovery.ts stayed behind as re-exports so their consumers could stay untouched. A re-export in hooks/Chat still counts as an app copy of chat state and keeps the file in scope for the chat package's boundary checks.

This points every consumer (the stream hooks, the chat helpers, the queue rail, the run-end hooks, the chat contract and their specs) at @librechat/chat and @librechat/chat/react directly and deletes both re-export files. Nothing else changes.

Part of the stack that moves the steer hooks into the chat package; base is the previous link.

Type of change

  • Refactor

Testing

Tested environments/configuration:

Local jest and typecheck; no runtime configuration matters for this change.

Automated tests:

  • cd client && npx jest --findRelatedTests <changed files>: 567 suites, 8,092 tests pass.
  • npx tsc --noEmit for client and packages/chat: clean. ESLint, Prettier and import sorting clean on every changed file.

Screenshots / recordings

No user-facing change.

Risk / compatibility

None. Import paths only; the atoms are the same objects.

Checklist

  • I reviewed my own changes
  • Existing relevant tests pass
  • The change does not introduce new warnings or errors

@berry-13
berry-13 marked this pull request as ready for review October 15, 2026 16:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T17:32:09.892806Z 7d4db68 New commits
🔒 Security Review ✅ Completed 2026-10-15T16:17:47.309845Z 033f652 Draft marked ready
ℹ️ 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.

@codegraph-librechat codegraph-librechat Bot added the 🗺️ Chat State codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9) label Oct 15, 2026
@berry-13
berry-13 added this pull request to stack #17157 October 15, 2026 16:23
@codegraph-librechat codegraph-librechat Bot added the 🗺️ Async Run Streaming codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9) label Oct 15, 2026
Copilot AI balanced review requested due to automatic review settings October 15, 2026 17:30
@berry-13
berry-13 force-pushed the refactor/chat-steer-shims branch from 033f652 to 7d4db68 Compare October 15, 2026 17:30

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 reached their quota limit.

This branch has not been deployed

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

Labels

🗺️ Async Run Streaming codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9) 🗺️ Chat State codegraph: the taxonomy area this belongs to (classifier, confidence ≥ 0.9)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants