Skip to content

feat(copilot): comprehensive copilot improvements#2284

Closed
thesocialdev wants to merge 235 commits intomasterfrom
stage
Closed

feat(copilot): comprehensive copilot improvements#2284
thesocialdev wants to merge 235 commits intomasterfrom
stage

Conversation

@thesocialdev
Copy link
Collaborator

Summary

  • Layout & UI polish: Wider panel (50vw), CSS bug fixes (margin-left, word-break casing), toolbar header, input sizing, z-index fix
  • Session persistence: MongoDB-backed chat sessions so conversation history and editor reports survive page refresh; one active session per user per claim review
  • Richer claim context: Pass all personalities, content model, and topics to the LLM for better-informed responses
  • Source handling: Persist Agencia research sources as Source documents in MongoDB with md5 deduplication; normalize Agencia urlhref field for schema compatibility

Test plan

  • Open the copilot drawer — verify it opens at 50vw width with toolbar header
  • Send messages and refresh the page — verify conversation history is restored
  • Trigger a fact-checking report — verify the editor report is restored after refresh
  • Clear session — verify old messages are gone and a new session starts
  • Verify the LLM system prompt includes all personalities, content type, and topics
  • After a report is generated, check MongoDB sources collection for persisted Agencia URLs
  • Verify i18n strings render correctly in both pt and en locales

🤖 Generated with Claude Code

lucaslobatob and others added 30 commits October 31, 2025 11:03
…ation-request

Feat: Add Date Range Picker Filter on Verification Request Page
lucaslobatob and others added 15 commits February 24, 2026 17:06
chore: Update ai-sdk from 3.4.33 to 5.0.52
chore: Update @casl/ability from 6.7.3 to 6.8.0
…-for-verification-request-lifecycle

Test: Verification Request Lifecycle Coverage with Cypress
…ion-on-create

fix: racing conditions on wikidata cache and using findOneAndUpdate f…
chore: Update nestjs/common from 9.2.0 to 10.4.22
chore: Update Langchain to latest version and TypeScript to v5
…igration

Fix: 500 error when filtering verification requests by Instagram
/>
>
<img
src={src}

Check failure

Code scanning / CodeQL

Client-side cross-site scripting High

Cross-site scripting vulnerability due to
user-provided value
.
Cross-site scripting vulnerability due to
user-provided value
.
): Promise<CopilotSessionDocument> {
return this.copilotSessionModel
.findByIdAndUpdate(
sessionId,

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query object depends on a [user-provided value](1).
async getSessionById(
sessionId: string
): Promise<CopilotSessionDocument | null> {
return this.copilotSessionModel.findById(sessionId).exec();

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query object depends on a [user-provided value](1).
/>
>
<img
src={src}

Check warning

Code scanning / CodeQL

Client-side URL redirect Medium

Untrusted URL redirection depends on a
user-provided value
.
Untrusted URL redirection depends on a
user-provided value
.
@thesocialdev
Copy link
Collaborator Author

Closing: copilot work moved to a dedicated feature branch. See new PR from copilot-improvements.

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

7 participants