Skip to content

feat(v2): let agents report config option changes themselves - #135

Merged
Rizzen merged 2 commits into
masterfrom
mark/v2-config-options
Sep 28, 2026
Merged

Rizzen merged 2 commits into
masterfrom
mark/v2-config-options

Conversation

@Rizzen

@Rizzen Rizzen commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Adds support for agent-initiated session updates in ACP v2, allowing agents to notify clients when configuration options change. Also aligns config option handling across session creation, resume, fork, and session/set_config_option.

Reference: https://agentclientprotocol.com/protocol/v2/session-config-options

@Rizzen
Rizzen requested a review from EugeneTheDev September 18, 2026 11:20
@EugeneTheDev

Copy link
Copy Markdown
Collaborator

Can you provide a short description, please?

*
* Throws synchronously if serialization fails or the transport cannot accept the notification.
*/
public fun notify(update: SessionUpdate, _meta: JsonElement? = null)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just to clarify. This method introduces generic notification api. Is the update: SessionUpdate type the most generic here? Just to make sure there's no notification types we've missed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it's union type

Comment thread acp/src/commonMain/kotlin/com/agentclientprotocol/agent/v2/ClientOperations.kt Outdated
@Rizzen
Rizzen merged commit d10d17b into master Sep 28, 2026
1 check 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