Skip to content

feat: agentstudio session agent override parameter and add configs - #202

Merged
luk384090-cloud merged 1 commit into
mainfrom
dev/agent-issue-0920
Sep 21, 2026
Merged

luk384090-cloud merged 1 commit into
mainfrom
dev/agent-issue-0920

Conversation

@foleydang

@foleydang foleydang commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Session create/update now support the agent override object form (type=agent_with_overrides with system/tools/mcp_servers/skills) in addition to the Agent ID string, plus the new top-level environment_variables and mcp_configs fields.

  • SessionCreateParams: agent accepts str (backward compatible) or override mapping; add environment_variables/mcp_configs.
  • SessionUpdateParams: add vault_ids/environment_variables/agent(patch)/ mcp_configs; null sub-fields in the agent patch are preserved on the wire (delete-override semantics).
  • Session model: add environment_variables/mcp_configs response fields.
  • sessions resource: sync create/update signatures (sync + async).
  • Tests: session create/update body contract + agent patch null-revoke coverage, consolidated into test_agentstudio_protocol.

Related Issue: Fixes #[issue_number] or Relates to #[issue_number] None

Security Considerations: [Check if API keys or sensitive credentials are exposed in code/logs] None

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Model
  • Application
  • Common
  • Documentation
  • Tests
  • CI/CD

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated (if needed)
  • Ready for review

Testing

[How to test these changes]

Additional Notes

[Optional: any other context]

Session create/update now support the agent override object form
(type=agent_with_overrides with system/tools/mcp_servers/skills) in
addition to the Agent ID string, plus the new top-level
environment_variables and mcp_configs fields.

- SessionCreateParams: agent accepts str (backward compatible) or
  override mapping; add environment_variables/mcp_configs.
- SessionUpdateParams: add vault_ids/environment_variables/agent(patch)/
  mcp_configs; null sub-fields in the agent patch are preserved on the
  wire (delete-override semantics).
- Session model: add environment_variables/mcp_configs response fields.
- sessions resource: sync create/update signatures (sync + async).
- Tests: session create/update body contract + agent patch null-revoke
  coverage, consolidated into test_agentstudio_protocol.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@luk384090-cloud
luk384090-cloud merged commit b8acd53 into main Sep 21, 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