Skip to content

refactor(ui): extract @-reference resolution from SidebarChat#82

Merged
Pterjudin merged 1 commit into
mainfrom
feat/phase1-at-reference-extract
Jul 23, 2026
Merged

refactor(ui): extract @-reference resolution from SidebarChat#82
Pterjudin merged 1 commit into
mainfrom
feat/phase1-at-reference-extract

Conversation

@Pterjudin

Copy link
Copy Markdown

Summary

  • Extract ~175 lines of @-reference → staging selection logic into composer/resolveAtReferences.ts
  • SidebarChat.tsx now calls resolveAtReferencesInMessage() before send; behavior unchanged (best-effort, warns on unresolved refs)
  • Shell reduced to ~611 lines

Test plan

  • npm run buildreact
  • npm run test-phase0-qa — 97/97
  • Send a message with @workspace or @path/to/file and confirm staging chips appear
  • CDP chat verify (manual): sidebar bundle import + textarea still works

Made with Cursor

Move staging selection resolution into composer/resolveAtReferences.ts so SidebarChat stays a thin shell focused on submit orchestration.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Pterjudin
Pterjudin merged commit 71d4a24 into main Jul 23, 2026
14 of 26 checks passed
@Pterjudin
Pterjudin deleted the feat/phase1-at-reference-extract branch July 23, 2026 13:14
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.

1 participant