Skip to content

Feat/user scoped memory#2

Merged
amirhmoradi merged 4 commits into
mainfrom
feat/user-scoped-memory
May 11, 2026
Merged

Feat/user scoped memory#2
amirhmoradi merged 4 commits into
mainfrom
feat/user-scoped-memory

Conversation

@amirhmoradi
Copy link
Copy Markdown

No description provided.

Paperclip-Paperclip and others added 4 commits May 12, 2026 00:11
…ve() method

The getActive() method does not exist in the Paperclip plugin SDK. Instead,
use ctx.issues.list() to retrieve the agent's issues, then extract the user
email from the first (most active) issue's originId field.

This fixes the TypeScript compilation errors reported in the PR review.
The previous fix still had the wrong type signature. The actual SDK
PluginIssuesClient.list() requires a {companyId, ...} input object.

Changes:
- Import PluginContext type from @paperclipai/plugin-sdk
- resolveUserIdFromActiveIssue now takes (ctx: PluginContext, companyId, agentId, config)
- Calls ctx.issues.list({ companyId, assigneeAgentId: agentId, status: 'in_progress', limit: 1 })
  to find the agent's currently active issue
- All 4 call sites updated to pass companyId and agentId from their respective contexts

Verified: npm run typecheck passes with zero errors.
@amirhmoradi amirhmoradi merged commit b515bc0 into main May 11, 2026
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.

2 participants