Skip to content

Conversation

@github-actions
Copy link
Contributor

This is an automated pull request to merge daniel/context-update-reference into dev.
It was created by the [Auto Pull Request] action.

@vercel
Copy link

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
app Ready Ready Preview, Comment Dec 18, 2025 6:51am
portal Ready Ready Preview, Comment Dec 18, 2025 6:51am

@cursor
Copy link

cursor bot commented Dec 18, 2025

PR Summary

Adds a context edit workflow that prompts users to update related policies and runs AI-based background updates via Trigger.dev.

  • Context Hub — UX/State:
    • Provider: Introduces PolicyUpdateProvider and usePolicyUpdate to coordinate policy-update prompts.
    • Dialog: Adds UpdatePoliciesDialog to confirm updating policies impacted by a context entry change.
    • Integration: Wraps ContextTable with the provider; ContextList and table EditableAnswerCell trigger the dialog after successful edits.
  • Server Actions:
    • New triggerPolicyUpdateFromContextAction to kick off policy updates for a specific contextId.
    • updateContextEntryAction now returns updated entry details (id, question, answer).
  • Background Task (Trigger.dev):
    • New task update-policies-from-context that:
      • Scans org policies, uses OpenAI (generateObject) to detect those affected by the context change.
      • Aggregates contextHub and batch-triggers updatePolicy for affected policies.
  • Dependencies:
    • Adds @ai-sdk/google; bumps @ai-sdk/openai version.

Written by Cursor Bugbot for commit aac5849. This will update automatically on new commits. Configure here.

@graphite-app graphite-app bot requested a review from Marfuen December 18, 2025 06:49
@graphite-app
Copy link

graphite-app bot commented Dec 18, 2025

Graphite Automations

"Auto-assign PRs to Author" took an action on this PR • (12/18/25)

1 reviewer was added to this PR based on Mariano Fuentes's automation.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants