Repository navigation
Conversation
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
3 times, most recently
from
November 3, 2026 09:17
4f1d41d to
c0168cc
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 3, 2026 12:07
c0168cc to
f922456
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 4, 2026 12:22
f922456 to
abab2a9
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 4, 2026 16:10
abab2a9 to
5a02f07
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 4, 2026 16:16
57b533e to
fda67da
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 4, 2026 20:12
fda67da to
632c7cc
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 5, 2026 00:13
632c7cc to
30be1d7
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 5, 2026 04:06
30be1d7 to
f0221dd
Compare
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 5, 2026 08:06
f0221dd to
685afd7
Compare
A dashboard chat can carry an optional backend pick, set through the session_set_backend MCP tool (POST /api/session-control/set-backend). The pick is validated by the resolver spawn_run(backend=...) uses, persisted on the slot, and passed to session allocation as backend_override; a change ends the current session so the next turn starts on the new backend. An unpicked chat allocates exactly as before. Implements docs/request-for-change/rfc-chat-backend-selection.md Phase 1.
Adds POST /api/chat/slots/{slot}/backend (owner-only) delegating to
switch_slot_backend, and a backend chip + dropdown in the composer next to
the model chip, listing GET /api/acp-backends rows plus the gateway default.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The composer's backend chip reads slot.backend, but serialize_slot's row did not include it, so the WS rebroadcast reset the chip to the gateway default after each pick. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
muhmuhkuh
force-pushed
the
feat/chat-backend-composer-picker
branch
from
November 5, 2026 12:11
685afd7 to
aaffab3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Phase 2 of
docs/request-for-change/rfc-chat-backend-selection.md(RFC merged in #19438): the visible per-chat backend picker in the chat composer.Stacked on #19599 (Phase 1,
switch_slot_backend+ slot persistence). Merge this only after #19599 lands — until then the diff againstmainincludes the base PR's commits; afterwards it shrinks to just the two commits below.Changes (2 commits on top of #19599's head)
feat(chat-ui): backend picker in the chat composer (RFC Phase 2)POST /api/chat/slots/{slot}/backend(chat_api/slot_backend.py) delegating toswitch_slot_backend— the same verb the session-control MCP tool runs. Owner-only because a pick sends the chat's transcript to another provider.GET /api/acp-backendsrows plus the gateway default. Applies from the next turn; chip stays enabled while a response runs, like the model chip.slotSwitch.tshelper + wiring inChatPage/ComposerDockView/sessionPicks; i18n keys in all locales.fix(dashboard): ship the picked backend on every slot rowslot_projection.py:serialize_slotnow includesbackend, so the WS rebroadcast no longer resets the chip to the gateway default after each pick.Verification
tsc -p tsconfig.app.jsonclean on the branch.pytest test/test_chat_slot_backend.py: 12 passed (the 69 errors are the pre-existing Windows conftest failurekiro_crew.sandbox has no attribute '_mount_source_candidate_roots', present on unmodifiedmaintoo).No backend-selection semantics are changed here; precedence rules from the #19599 review (spawn_run > chat pick > member pin > member route > default) are untouched.