Skip to content

feat(agent-vault): session metadata - #53

Merged
saifsmailbox98 merged 2 commits into
mainfrom
saif/age2-320-support-attaching-custom-metadata-to-sessions
Nov 17, 2026
Merged

saifsmailbox98 merged 2 commits into
mainfrom
saif/age2-320-support-attaching-custom-metadata-to-sessions

Conversation

@saifsmailbox98

@saifsmailbox98 saifsmailbox98 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Agent Vault sessions can now carry custom key/value metadata, e.g. a run ID or the user a run is for.

  • sessions.create({ ..., metadata: { runId: "8812" } })
  • Sessions returned by create, get, list, update and revoke have metadata: Record<string, string>
  • sessions.update(id, { label?, metadata? }): a field left out stays as is, label: null removes the label, metadata replaces the whole set and {} clears it. Existing update(id, { label }) calls behave the same

Not breaking.

Infisical PR: Infisical/infisical#9553
Python SDK PR: Infisical/python-sdk-official#72

@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-node-sdk-v2-53-feat-agent-vault-session-metadata

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@linear

linear Bot commented Nov 16, 2026

Copy link
Copy Markdown

AGE2-320

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; no new blocking issues were found.

Summary

Adds custom metadata to Agent Vault sessions and lets callers filter sessions by metadata.

  • Agent Vault sessions can carry metadata from creation through later updates.
  • Session lists can match every metadata pair a caller provides.

No new actionable issues were found. The earlier older-server concern was withdrawn after saifsmailbox98 clarified that the SDK follows backend main rather than older servers.

Reviews (2) · Last reviewed commit: "feat(agent-vault): filter the session li..." · Reviewed by Greptile

Comment thread src/api/types/agent-vault.ts Resolved

@scott-ray-wilson scott-ray-wilson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@saifsmailbox98
saifsmailbox98 merged commit bb111cc into main Nov 17, 2026
6 checks passed
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