Skip to content

feat(den): author organization prompts from chat#3045

Draft
reachjalil wants to merge 1 commit into
different-ai:devfrom
reachjalil:feature/org-prompt-chat-authoring
Draft

feat(den): author organization prompts from chat#3045
reachjalil wants to merge 1 commit into
different-ai:devfrom
reachjalil:feature/org-prompt-chat-authoring

Conversation

@reachjalil

Copy link
Copy Markdown
Collaborator

Summary

  • expose organization prompt-suggestion authoring to chat only for Enterprise owners and super-admins
  • conditionally add short MCP guidance and remove the related capabilities from both discovery and execution for ineligible members
  • add a purpose-built prompt-suggestion update route that preserves every other desktop-policy setting and assignment
  • keep general desktop-policy creation, editing, and deletion unavailable to chat

Why

Organization prompt suggestions already appear as new-session cards, but eligible administrators cannot manage them through chat. The agent should see this workflow only when the signed-in member can actually use it, following the same capability-search pattern used for cloud skill creation without adding a long universal prompt.

Validation

  • pnpm --filter @openwork-ee/den-api exec bun test test/mcp-agent-timeouts.test.ts — 16 passed
  • pnpm --filter @openwork-ee/den-api exec bun test test/mcp-agent-config-policy.test.ts --test-name-pattern 'organization prompt suggestions' — 1 passed
  • pnpm --filter @openwork-ee/den-api exec bun test test/me-desktop-config.test.ts --test-name-pattern 'prompt-suggestion update' — 1 passed
  • pnpm --filter @openwork-ee/den-api exec tsc -p tsconfig.json --noEmit
  • pnpm --filter @openwork-ee/den-api build

Manual verification

Not run yet.

  1. Connect an Enterprise organization as an owner or super-admin and ask chat to update the organization prompt suggestions.
  2. Confirm the agent lists policies first, confirms the intended policy/audience, and changes only the prompt cards.
  3. Repeat as an admin/member or without the Enterprise entitlement and confirm the authoring instruction and capabilities are unavailable.

Risk and scope

  • no database migration
  • existing tenant, role, entitlement, and privileged-session checks remain enforced by the route
  • the new endpoint replaces or clears only prompt suggestions; it does not expose general desktop-policy mutation

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jul 23, 2026 11:14am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 23, 2026 11:14am

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics July 23, 2026 11:13 Inactive
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

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