Repository navigation
Use the chat engine list for bot and schedule engine names - #462
Open
officialasishkumar wants to merge 1 commit into
Open
officialasishkumar wants to merge 1 commit into
officialasishkumar wants to merge 1 commit into
Conversation
Bots kept their own copy of the engine names, and automations kept a
second engineLabel with the legacy names on top of the chat catalog. A bot
on a retired engine id showed the raw id ("claude-sdk") while its
automation showed "Claude SDK", and chat surfaces showed the raw id too.
engineLabel in components/chat/types.ts is now the only engine-name lookup:
the ENGINES catalog first, then the display names for retired ids
(claude-sdk, daytona, mock, acp), which now sit next to ENGINES, then the id
as stored. The retired names stay display only: they are not in ENGINES, so
they never become a picker option. They live in a Map, so an id such as
"constructor" can never pick up an inherited object key.
The bots page, the bots panel, the bot preset, details, import and new-bot
dialog, and the automation card and history drawer import engineLabel from
chat/types. The bots types and schedules-data copies are gone.
A new test checks every catalog id and every retired id against the one
lookup, and that no retired id is in the catalog.
Closes useagenthq#258
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.
By opening this pull request you agree to the Contributor License Agreement. On your first pull request a bot asks you to sign it with a one-line comment.
Fixes #258
Bots kept their own copy of the engine names. Automations kept a second
engineLabelthat added the retired ids on top of the chat catalog. So a bot on a retired engine id showed the raw id ("claude-sdk") while its automation showed "Claude SDK", and the chat surfaces showed the raw id as well.What changed
components/chat/types.ts:engineLabelis now the only engine-name lookup in the frontend. It checks, in order:ENGINEScatalogclaude-sdk"Claude SDK",daytona"Cloud",mock"Mock",acp"ACP"), which now sit next toENGINESThe retired names are display only. They are not in
ENGINES, so they never become a picker option. They live in aMap, so an id such asconstructorcannot pick up an inherited object key.Copies removed: the
ENGINE_LABELSmap andengineLabelincomponents/bots/types.ts, and theLEGACY_ENGINE_LABELmap andengineLabelinapp/agent/schedules/schedules-data.ts.Callers: these now import
engineLabelfrom@/components/chat/types:Tests
components/chat/engine-label.test.ts(new):constructor, is shown as storedautomation-data.test.ts: keeps its legacy-label checks, now against the shared lookup.Checks run locally with Bun 1.3.14:
cd frontend && bun run test: 2061 pass, 0 failtsc --noEmitinfrontend: passesbiome linton the changed files: no findingsOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.