This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Repository navigation
feat: reset LLM profile to active from the edit modal - #1588
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
✅ Mock-LLM E2E Tests10/10 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
Contributor
✅ Mock-LLM Docker E2E Test Results60/60 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
Contributor
|
🚀 Released in v1.2.0. |
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
HUMAN:
Evidence the change runs, all commands run in
agent-server-gui:npx vitest run __tests__/components/automations/detail/edit-automation-modal.test.tsx→
Test Files 1 passed (1) | Tests 8 passed (8)(7 pre-existing + the new "reset to active" case).npm run typecheck→ clean (confirmsbody.model = nulltype-checks againstPartial<Automation>).npm run lint(typecheck +eslint src+prettier --check) → "All matched files use Prettier code style!", no eslint errors.The new test renders
<EditAutomationModal>, opens the profile dropdown, selects the "Active profile" option, submits, and assertsAutomationService.updateAutomation("auto-3", { model: null })— it exercises the component end-to-end at its boundary (not just a pure function). Full GUI-against-live-backend verification was not run in this headless environment; a manual reproduction is in "How to Test".AGENT:
Why
The Agent Canvas edit-automation modal already lets a user pick an LLM profile, but it could only set/change one — never clear it back to the active/default.
handleSubmitonly sentmodelwhen the selection was non-empty (edit-automation-modal.tsx), so clearing a pinned profile produced an empty diff and was silently dropped. There was also no UI affordance to reach the "use active" state (it existed only as a placeholder).Summary
COMMON$ACTIVE_PROFILEi18n key; keyed by a collision-proof__active__sentinel that cannot match a real profile name).model: nullwhen a previously pinned profile is cleared; the automation backend re-resolvesnullto the current active profile (already covered backend-side bytest_update_automation_null_model_profile_resets_to_active).{ model: null }; existing picker tests unchanged.Issue Number
Resolves OpenHands/automation#153
How to Test
npm installnpx vitest run __tests__/components/automations/detail/edit-automation-modal.test.tsx(expect 8/8) andnpm run lint(expect clean).{ model: null }; after refetch, the detail view and list pill show the current active profile's name.Type
🐳 Docker images for this PR
• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas
ghcr.io/openhands/agent-canvasghcr.io/openhands/agent-server:1.29.3-pythonopenhands-automation==1.0.0a136ef6cc1a37aaf56e7c8508473c2dc973f1b83964Pull (multi-arch manifest)
# Multi-arch manifest — Docker automatically pulls the correct architecture docker pull ghcr.io/openhands/agent-canvas:sha-6ef6cc1Run
All tags pushed for this build
About Multi-Architecture Support
sha-6ef6cc1) is a multi-arch manifest supporting both amd64 and arm64sha-6ef6cc1-amd64) are also available if needed