Skip to content

feat(acp): expose current model in SessionInfoUpdate and session/list (#2435)#2453

Merged
bug-ops merged 1 commit intomainfrom
acp-model-visibility
Mar 30, 2026
Merged

feat(acp): expose current model in SessionInfoUpdate and session/list (#2435)#2453
bug-ops merged 1 commit intomainfrom
acp-model-visibility

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 30, 2026

Summary

  • Each in-memory SessionInfo in session/list now carries meta.currentModel
  • After session/set_config_option with configId=model, a SessionInfoUpdate notification is streamed with meta.currentModel (in addition to the existing ConfigOptionUpdate)
  • After session/set_session_model, the same SessionInfoUpdate notification is emitted
  • New helper model_meta(model: &str) -> Meta in helpers.rs builds the {"currentModel": "..."} map
  • 2 new unit tests: list_sessions_includes_model_meta, set_config_option_model_emits_session_info_update

Test plan

  • cargo +nightly fmt --check — clean
  • cargo clippy --all-targets --features full --workspace -- -D warnings — clean
  • cargo nextest run --workspace --features full --lib --bins — 7319 passed, 0 failed

Closes #2435

…#2435)

Each in-memory SessionInfo in session/list now carries meta.currentModel.
After session/set_config_option with configId=model, a SessionInfoUpdate
notification is sent with meta.currentModel in addition to the existing
ConfigOptionUpdate. Same notification is emitted after set_session_model.
@bug-ops bug-ops enabled auto-merge (squash) March 30, 2026 18:26
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes enhancement New feature or request size/M Medium PR (51-200 lines) labels Mar 30, 2026
@bug-ops bug-ops merged commit b4dd5dd into main Mar 30, 2026
27 checks passed
@bug-ops bug-ops deleted the acp-model-visibility branch March 30, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(acp): expose current model in SessionInfoUpdate and session/list response

1 participant