fix(canvas/config): load runtime+model from workspace metadata + hide misleading config.yaml error for hermes - #1898
Merged
HongmingWang-Rabbit merged 2 commits intoApr 23, 2026
Conversation
… misleading config.yaml error for hermes Canvas Config tab had 3 bugs visible on hermes workspaces (#1894): 1. Runtime dropdown showed "LangGraph (default)" even when the workspace's actual runtime was hermes — because the form only loaded runtime from config.yaml, and hermes doesn't use the platform's config.yaml template. 2. Model field was empty for the same reason. 3. "No config.yaml found" error appeared on hermes workspaces despite everything being fine — hermes manages its own config at ~/.hermes/config.yaml on the workspace host. Worse, clicking Save with the empty form would silently flip `runtime` back from `hermes` to `LangGraph (default)`. ## Fix - loadConfig now always fetches workspace metadata (runtime + model) via GET /workspaces/:id and GET /workspaces/:id/model BEFORE attempting the config.yaml fetch. These act as the source of truth for runtime and model when config.yaml doesn't set them. - RUNTIMES_WITH_OWN_CONFIG set lists runtimes that manage their own config outside the platform template (hermes, external). For these: - Missing config.yaml is NOT an error — no red banner shown. - An informational gray banner tells the user where to edit the runtime's config (e.g. "edit ~/.hermes/config.yaml via Terminal tab or the hermes CLI" for hermes). Closes #1894. Verified 2026-04-23 on user's hongmingwang tenant which runs hermes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
HongmingWang-Rabbit
enabled auto-merge
April 23, 2026 21:58
This was referenced Apr 23, 2026
HongmingWang-Rabbit
pushed a commit
that referenced
this pull request
Jun 12, 2026
…ection (mc#1738)' (#1898) from fix/audit-force-merge-required-checks-drift-1738 into main
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.
Closes #1894.
Bug (visible on hermes workspaces)
LangGraph (default)when actual runtime is hermesRoot cause
loadConfigonly fetched the platform'sconfig.yamltemplate, which hermes doesn't use (hermes manages its own config at~/.hermes/config.yamlon the workspace host). On failure it set an error and left the form with default values.Fix
GET /workspaces/:idandGET /workspaces/:id/model— these are the source of truth regardless of whether the runtime uses the platform template.RUNTIMES_WITH_OWN_CONFIGset (hermes, external). For these runtimes:~/.hermes/config.yamlvia Terminal tab)Test plan
tsc --noEmitclean on modified file (pre-existing errors elsewhere in repo not introduced)Evidence
User screenshot 2026-04-23 showing bug on hongmingwang/Hermes workspace.