Skip to content

Rust: expose prompt-event observer configuration - #2625

Draft
examon wants to merge 1 commit into
mainfrom
zesty-prompt-observer-upstream
Draft

Rust: expose prompt-event observer configuration#2625
examon wants to merge 1 commit into
mainfrom
zesty-prompt-observer-upstream

Conversation

@examon

@examon examon commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

[examon's robot driving]

Expose optional observe_prompt_events configuration and builders on Rust session creation and resume, serialized as observePromptEvents.
The field is omitted by default and does not change callback-registration flags.
Event-driven hosts can use request IDs to answer user_input.requested and retire their UI on user_input.completed, including when another client answers.
The API documentation makes the observer's responsibility for pending questions explicit.

The wire regression fails when the configured value is dropped while the default-shape control still passes.
With the implementation restored, all 231 Rust unit tests pass, along with the repository's nightly formatting, configured lint checks and all-feature documentation build.
Supplemental no-default-features lint reproduces two unused test-helper diagnostics on unchanged main; the repository's CI lint configuration passes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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