Skip to content

fix(code): open /auto model selector immediately while connecting - #5341

Merged
Mason Daugherty (mdrxy) merged 3 commits into
mainfrom
mdrxy/code/auto-model-selector-bypass
Aug 6, 2026
Merged

fix(code): open /auto model selector immediately while connecting#5341
Mason Daugherty (mdrxy) merged 3 commits into
mainfrom
mdrxy/code/auto-model-selector-bypass

Conversation

@mdrxy

@mdrxy Mason Daugherty (mdrxy) commented Aug 6, 2026

Copy link
Copy Markdown
Member

Typing /auto model during startup (or mid-turn) now opens the Auto classifier model selector immediately, matching bare /model, instead of being parked behind the message queue until the app finishes connecting.


_can_bypass_queue previously treated every argument form of an IMMEDIATE_UI command as queue-bound, because most of them act directly (/model <name> switches models). But /auto model with no further arguments routes straight to the classifier picker — a modal that defers all validation and mutation (_set_auto_classifier_model, install-extra flow) to its dismiss callback, exactly like bare /model. There is no server dependency at open time.

The fix adds an IMMEDIATE_UI_ARG_FORMS frozenset in command_registry.py next to the derived tier sets, so the bypass is data-driven and extensible rather than an inline string special case. _can_bypass_queue now bypasses when the submitted value is the bare command or one of these whitelisted forms. The mutating forms — /auto model <spec> and /auto model clear — stay queue-bound, as does every other command's argument form.

@github-actions github-actions Bot added dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC labels Aug 6, 2026

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Open SWE Review found 1 potential issue.

Open in WebView Open SWE trace

Comment thread libs/code/deepagents_code/app.py Outdated
@mdrxy Mason Daugherty (mdrxy) changed the title fix(code): open /auto model selector immediately while connecting fix(code): open /auto model selector immediately while connecting Aug 6, 2026
@mdrxy
Mason Daugherty (mdrxy) merged commit 72bfc1e into main Aug 6, 2026
71 checks passed
@mdrxy
Mason Daugherty (mdrxy) deleted the mdrxy/code/auto-model-selector-bypass branch August 6, 2026 01:45
Mason Daugherty (mdrxy) pushed a commit that referenced this pull request Aug 6, 2026
> [!CAUTION]
> Merging this PR will automatically publish to **PyPI** and create a
**GitHub release**.

For the full release process, see
[`.github/RELEASING.md`](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md).

---

_Release notes preview: keep this section in sync with the package
`CHANGELOG.md`. Publish reads the merged CHANGELOG via `release.yml`,
not this PR description — keep them aligned anyway so the PR stays an
accurate historical record for reviewers and anyone returning later._

---


##
[0.1.53](deepagents-code==0.1.52...deepagents-code==0.1.53)
(2026-08-06)

### Features

- Added pricing coverage with Baseten built-in overrides and local
fallback overrides when `genai-prices` is missing data
([#5312](#5312),
[#5304](#5304)).
- Suggest compacting large resumed threads
([#5318](#5318)).
- Added terminal program trace metadata
([#5329](#5329)).

### Bug Fixes

- Preserved runtime offload archive routing
([#5328](#5328)).
- Always restart after a successful startup auto-update
([#5317](#5317)).
- Fixed leaked turn coroutines and SQLite handles
([#5218](#5218)).
- Keep MCP shutdown-race tracebacks from appearing in the terminal
([#5325](#5325)).
- Open the `/auto model` selector immediately while connecting
([#5341](#5341)).
- Route failures to `PostToolUseFailure`
([#5315](#5315)).
- Use dismissed copy for ask-user prompts
([#5331](#5331)).

_End release notes preview._

---

> [!NOTE]
> A **New Contributors** section is appended to the GitHub release notes
automatically at publish time (see [Release
Pipeline](https://github.com/langchain-ai/deepagents/blob/main/.github/RELEASING.md#release-pipeline),
step 2).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: langchain-oss-automated-triage[bot] <248757908+langchain-oss-automated-triage[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant