feat(channels): configure reasoning from Slack model picker - #3690
Draft
overlord-letta wants to merge 3 commits into
Draft
feat(channels): configure reasoning from Slack model picker#3690overlord-letta wants to merge 3 commits into
overlord-letta wants to merge 3 commits into
Conversation
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Let Slack users choose supported reasoning levels without changing the selected model, provider alias, or context-window variant. Reuse the existing model update protocol for picker and text-command selections. Co-authored-by: Cameron Pfiffer <cameron@pfiffer.org> 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Resolve Slack reasoning actions against one fresh listener response that contains both the current model and its supported tiers. This prevents stale channel state from switching the model and keeps proxy Default selections executable. Co-authored-by: Cameron Pfiffer <cameron@pfiffer.org> 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Reconcile the reasoning picker with the new gateway-owned MessageChannel lifecycle and retain both sets of validation. Co-authored-by: Cameron Pfiffer <cameron@pfiffer.org> 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
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.
Summary
/modelpicker when the current model supports configurable reasoning.update_modelprotocol.Before and after
Before, Slack
/modelcould show and switch the routed conversation's model. It could not change reasoning.After, the same response includes a reasoning selector for supported models.
@agent /model reasoning <level>provides a text fallback. Unsupported models do not show the selector, and invalid levels return usage guidance.Risk and limits
The change reuses the model update resolver. It does not add provider payload handling. Model switching and non-Slack adapters keep their existing rendering.
A live Slack workspace smoke was not run. The Slack Block Kit payload, action acknowledgement, thread routing, shared command routing, model update resolution, provider aliases, context-window variants, and unsupported models are covered by tests.
Validation
bun run checkbun test src/channels/model-reasoning-command.test.tsbun test src/channels/model-reasoning-options.test.tsbun test src/channels/commands.test.tsbun test src/channels/registry-command-routing.test.tsbun test src/channels/slack/adapter.test.tsbun test src/channels/gateway-core.test.tsbun test src/channels/routed-runtime-registration.test.tsbun test src/channels/registry-lifecycle.test.tsbun test src/cli/app/use-reasoning-cycle.test.tsbun test src/websocket/listen-model-update.test.tsbun test src/websocket/listener/protocol-inbound.test.tsbun test src/websocket/listener/commands/model-toolset.test.tsbun test src/websocket/listener/commands/model-catalog.test.ts— Overlord (agent-c2adbf5c-8419-4211-8cd8-3740db164974)