Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

feat(agent-profiles): Agent Profiles — Settings → Agent as the profile library (local + cloud) - #1571

Merged
simonrosenberg merged 45 commits into
mainfrom
feat-agent-profiles-minimal
Jul 8, 2026
Merged

simonrosenberg merged 45 commits into
mainfrom
feat-agent-profiles-minimal

Conversation

@simonrosenberg

@simonrosenberg simonrosenberg commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

HUMAN:

Validated end-to-end against both a local agent-server (latest SDK main) and the live cloud preview of the backend PR (OpenHands/OpenHands#15060). Drove profile CRUD, launch-from-profile, the Settings → Agent library, the ACP chip/model picker, and the full onboarding flow (OpenHands + Claude Code) in-app. A human should still click through Settings → Agent, the chat-input picker, and onboarding in-app before checking this box.

  • A human has tested these changes.

AGENT:

Scope note: this PR grew from the original "local Agent Profiles library" into the full Phase-4 Agent Profiles surface — now local + cloud, with Settings → Agent as the profile library, onboarding that lands on an agent profile, and several correctness fixes found while validating against real backends. Everything below was driven through the real UI (Playwright) against real agent-servers, not just unit-mocked.

Validated live:

  • Local (agent-server from SDK main, OH_SECRET_KEY set): profile CRUD (create/edit/rename/set-active/delete), launch-from-profile (agent_profile_id → 201 + launched_agent_profile stamped), in-conversation LLM-profile switch (/switch_llm), ACP conversation chip + model picker, and onboarding (OpenHands → default agent profile refs the configured LLM + banner clears; Claude Code → default agent profile becomes acp/claude-code, no LLM key needed).
  • Cloud (live ohpr-15060-148 preview of feat(enterprise): Agent Profiles on the cloud/SaaS backend (#15044) OpenHands#15060): agent-profiles CRUD (201/200/rename/activate/422-on-missing-ref/delete), org LLM-profile listing, and the un-gated UI drove create → 201 + home launch → POST /api/v1/app-conversations {agent_profile_id} → 200 with launched_agent_profile stamped and the conversation running on the cloud LLM. 0 console errors, CORS clean.

Automated gates: npm run typecheck, eslint, prettier, check-translation-completeness (15 langs), and npx vitest run (3620 passed / 0 failed).

Why

Agent Profiles (epic OpenHands/software-agent-sdk#3713, Phase 4) is a large feature. PR #1550 shipped it but bundled a bespoke kind-aware master-detail editor + a Settings IA rework. This PR keeps the full launch/switch experience while stripping configuration UX down to reuse the Agent settings form we already have — adding a name on top of the existing agent editor turns it into an Agent Profile. Most knobs (condenser, verification, MCP) stay global and are inherited.

The model is: the active agent profile IS the current agent. So "Settings → Agent" no longer needs to be a separate global form — it becomes the profile library, and everything that used to read global agent_settings (ACP-ness, LLM readiness) now reads the active profile. Paired with backend OpenHands/OpenHands#15060, this works on cloud too.

Summary

Settings → Agent is the Agent Profile library

  • Collapsed the two old nav items ("Agent" global form + "Agent profiles" library) into a single "Agent" entry that lists the user's profiles; its create/edit view is the reused AgentSettingsScreen (embedded) + a name. /settings/agent redirects to /settings/agents; the default settings path + ACP route-guard target follow.
  • Library at /settings/agents (list → create/edit + set-active + delete) mirroring the LLM-profiles components. OpenHands profiles reference an LLM profile (llm_profile_ref, required); ACP profiles name a provider and carry no LLM.

Local + cloud

  • Cloud transport via callCloudProxy (bearer + X-Org-Id) for agent-profiles CRUD + org LLM-profile listing (the editor's picker); AgentProfilesService/ProfilesService.listProfiles branch to it on cloud. Un-gated the nav item, route, home picker, and launch (agent_profile_id now rides the cloud POST /api/v1/app-conversations, which feat(enterprise): Agent Profiles on the cloud/SaaS backend (#15044) OpenHands#15060 resolves + stamps).

Chat integration (#3727)

  • Home: an agent-profile toggle replaces the LLM-profile toggle; conversations start via agent_profile_id (resolved server-side).
  • In-conversation switch, gated by the running agent: OpenHands → live LLM-profile switch (/switch_profile); ACP → live model switch (set_session_model). On cloud the in-conversation surface keeps the model picker by design (no cloud per-conversation switch endpoint, and cloud masks profile secrets).

Active profile is the source of truth

  • ACP-enabled state (nav-disable of LLM/Condenser/Verification, home ACP context, useLlmConfigured, the ACP route guard) now derives from the active agent profile's kind — not stale global agent_settings (activate is pointer-only and never writes them). Falls back to settings only while the profile list loads.
  • The "LLM not set up" banner checks the LLM profile the active agent profile references (llm_profile_ref), not the standalone active LLM profile — and never shows for ACP profiles (the subprocess owns its LLM).

Onboarding lands on an agent profile

  • Onboarding used to write global agent_settings + an LLM profile / ACP secrets but never touched an agent profile, leaving the active profile disconnected. Now it upserts + activates the seeded default agent profile from the user's choice: OpenHands → points its llm_profile_ref at the LLM profile just configured; ACP → makes it an acp profile for the chosen provider (valid default model, no key).

LLM-profile "Active" → "Default"

  • Relabeled the LLM-profile badge/action, since the active LLM profile no longer launches conversations — it's just the default llm_profile_ref seeded into new agent profiles. The agent-profile "Active" badge is unchanged.

Correctness fixes found while validating

  • The reused Agent-settings form is a route module; React Router's Vite plugin wraps the default export and strips parent props, so the embedded editor's Save was permanently disabled. Split into a named AgentSettingsScreen export + a thin route wrapper (mirrors LlmSettingsRoute).
  • normalizeAgent (the conversation wire parser) dropped acp_server, so an ACP conversation launched from a profile showed a generic chip + empty model picker (the acpserver tag isn't stamped on profile launches). Now preserved.
  • Edit-save no longer wipes unmodeled profile fields. The save endpoint is a whole-profile overwrite and the minimal editor posted only its own fields, so editing e.g. the seeded default profile reset condenser/verification/suffix/skill_refs/mcp_server_refs (and ACP session mode/timeout) to defaults. Saves now merge the edited fields over the stored profile (kind-aware — a kind switch stays a clean variant replacement), fetched with X-Expose-Secrets: encrypted so skill MCP secrets round-trip as tokens, not masks.
  • Launch no longer races the agent-profiles query. A send fired before the profiles list resolved fell through to the stale global agent_settings path (activation is pointer-only) and silently launched the wrong agent. The launch now awaits the list via ensureQueryData (shared query key; retry: false so backends without the surface degrade immediately), and the dangling-llm_profile_ref downgrade logs a console.warn.

How to Test

Local:

  1. Run an agent-server from SDK main (≥ v1.29.0) with OH_SECRET_KEY set, e.g. on :8017.
  2. npm ci && VITE_MOCK_API=false VITE_BACKEND_BASE_URL=http://localhost:8017 npm run dev:frontend.
  3. Onboarding (fresh browser / clear openhands-onboarded): pick OpenHands + enter a real LLM key → land in a runnable conversation; or pick Claude Code → runnable with no key.
  4. Settings → Agent (/settings/agents): create/edit/rename/set-active/delete OpenHands + ACP profiles. /settings/agent redirects here.
  5. Home: pick a profile in the chat-input toggle and start a conversation — it launches from that profile.
  6. In an OpenHands conversation: the toggle live-switches the LLM profile. In an ACP conversation: it live-switches the model, and the sidebar/chip shows the provider + model.
  7. Activate an ACP profile → LLM/Condenser/Verification nav items disable + those routes redirect to Agent; no "LLM isn't set up" banner.

Cloud (backend with OpenHands/OpenHands#15060, e.g. a preview env):
8. Register the cloud backend; Settings → Agent is present (no redirect). CRUD + set-active + delete a profile; home launch starts a conversation via agent_profile_id.

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Issue Number

Part of OpenHands/software-agent-sdk#3713 (Phase 4, OpenHands/OpenHands#3726 + OpenHands/OpenHands#3727). Backend: OpenHands/OpenHands#15060. A smaller-config alternative to #1550.

Known SDK-side limitations (agent_profile_id launch path)

Three architectural gaps in the agent_profile_id launch path — resolved server-side entirely from the stored profile, so it doesn't inherit anything a legacy agent_settings payload could carry — surfaced while driving this PR's e2e suite against real backends. Same class each time: the SDK profile resolver (_build_openhands_settings) drops an AgentContext/settings enrichment that the agent_settings path carries. The first two are worked around client-side; the third has no canvas workaround and blocks this PR (see below).

Cleanup of the two client-side workarounds tracked in #1986 — remove them once their SDK issues ship a root fix.


🐳 Docker images for this PR

• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas

Component Value
Image ghcr.io/openhands/agent-canvas
Architectures amd64, arm64
Agent Server ghcr.io/openhands/agent-server:1.33.0-python
Automation openhands-automation==1.1.4
Commit 9d71042bb496cb0c4503cc186016a6356953c73a

Pull (multi-arch manifest)

# Multi-arch manifest — Docker automatically pulls the correct architecture
docker pull ghcr.io/openhands/agent-canvas:sha-9d71042

Run

docker run -it --rm \
  -p 8000:8000 \
  ghcr.io/openhands/agent-canvas:sha-9d71042

All tags pushed for this build

ghcr.io/openhands/agent-canvas:sha-9d71042-amd64
ghcr.io/openhands/agent-canvas:feat-agent-profiles-minimal-amd64
ghcr.io/openhands/agent-canvas:pr-1571-amd64
ghcr.io/openhands/agent-canvas:sha-9d71042-arm64
ghcr.io/openhands/agent-canvas:feat-agent-profiles-minimal-arm64
ghcr.io/openhands/agent-canvas:pr-1571-arm64
ghcr.io/openhands/agent-canvas:sha-9d71042
ghcr.io/openhands/agent-canvas:feat-agent-profiles-minimal
ghcr.io/openhands/agent-canvas:pr-1571

About Multi-Architecture Support

  • Each tag (e.g., sha-9d71042) is a multi-arch manifest supporting both amd64 and arm64
  • Docker automatically pulls the correct architecture for your platform
  • Individual architecture tags (e.g., sha-9d71042-amd64) are also available if needed

Update (2026-07-08) — deny-list skills

SDK OpenHands/OpenHands#4017 replaced the profile's skill_refs allow-list (and embedded skills) with a disabled_skills deny-list, so two notes above are superseded:

  • The withDefaultSkillRefs / ensureLlmProfileStreams shims were removed (commit 9122e83d) — the SDK now defaults correctly server-side, so there is nothing to work around.
  • Profiles are secret-free (no embedded skill mcp_tools), so the X-Expose-Secrets: encrypted round-trip on edit-save is a no-op; the generic profile merge carries the disabled_skills deny-list automatically. Canvas is already deny-list-native via the user-level disabled_skills settings UI; a per-profile skill picker stays out of scope for this minimal editor.

@vercel

vercel Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-canvas Ready Ready Preview, Comment Jul 8, 2026 5:13pm

Request Review

@simonrosenberg simonrosenberg added canvas-review Experimental code review from an a shared agent canvas instance and removed canvas-review Experimental code review from an a shared agent canvas instance labels Jul 1, 2026
@simonrosenberg

Copy link
Copy Markdown
Member Author

@OpenHands /codereview-roasted

@openhands-ai

openhands-ai Bot commented Jul 1, 2026

Copy link
Copy Markdown

I'm on it! simonrosenberg can track my progress at all-hands.dev

@simonrosenberg simonrosenberg left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🌶️ Code review — roasted

Taste rating: 🟡 Acceptable. This is the right architectural call: instead of #1550's 63-file bespoke editor, you leaned on the existing Agent settings page and the LLM-profiles library shape. Adding an opt-in embedded prop to AgentSettingsScreen (header/save-button hidden, seed from agentSettingsOverride, report state via onSaveControlChange) keeps the global /settings/agent page unchanged when the props are omitted — I verified the header and Save button are only gated behind !embedded. The data layer is clean and idiomatic: per-call AgentProfilesClient through getAgentServerClientOptions() (Rule 1 compliant — no raw axios/fetch), backend/org-suffixed query keys, prefix-match invalidation, disableToast with local try/catch toasts. Local-only gating is done in three consistent places (nav filter, route <Navigate> redirect, and the query only ever mounting under the guarded route), with a focused nav test. i18n is complete — all 7 new keys carry all 15 languages, and the ~16 reused profile keys already exist.

So the bones are good. The roast is mostly about where the genuinely-new logic lives vs. where the tests point.

🔴 The one that actually matters — the new mapping logic is untested

The real new brain of this PR is buildAgentProfileFields() in agent-settings.tsx (the ACP "store null when it's the built-in default command, else the verbatim shell string" branch, plus the schema-driven tool_concurrency_limit coercion). That is exactly the kind of translate-live-form-state-into-a-persisted-payload function that silently rots.

And yet every test that touches this flow mocks the embedded form away. agent-profiles-local-view.test.tsx stubs #/routes/agent-settings and hand-feeds an emitControl, so it validates the view's llm_profile_ref merge (good!) but never runs the real builder. There's no buildAgentProfileFields unit test and no tests/e2e/mock-llm/** spec for agent profiles (grep confirms zero). The AGENT-notes "real agent-server" validation drove the ts-client with hand-constructed payloads — i.e. it exercised the client/endpoints, not this UI mapping. So the built-in-default detection and concurrency coercion currently have no automated coverage at any layer. See the inline comment; a small pure-function test (or an extracted helper) would lock the round-trip in.

🟡 Improvement opportunities (non-blocking)

  • Copy-paste of the whole menu shell. agent-profile-actions-menu.tsx is a near-verbatim clone of llm-profiles/profile-actions-menu.tsx — the portal positioning useLayoutEffect, resize/scroll listeners, click-outside, Escape/arrow/Tab keyboard handling, and the isPortaled static-override classes are duplicated line-for-line; only the menu items differ (no rename/duplicate here). It already reaches across features to import MenuItem from llm-profiles/, so the coupling exists anyway. A shared PortaledActionsMenu (items as children/prop) would delete ~90 lines from both. Fine as a follow-up given the deliberate "mirror the LLM-profiles components" strategy, but worth a tracking note so the two copies don't drift.
  • Rename-then-save is not atomic. In handleSave, a rename fires as a separate request before the profile save (see inline). If the save fails after a successful rename, the profile is left renamed-but-not-updated with a generic error toast — the user can retry, but the stored state is now inconsistent with what they saw. Acceptable given the two-endpoint API shape; just calling it out.
  • Version-doc drift. The service header and use-agent-profiles comment say the endpoints "shipped in agent-server v1.29.0", but package.json pins @openhands/typescript-client at 1.28.0 (unchanged by this PR) and the Docker matrix builds against agent-server:1.29.3. Not a bug (CI/typecheck pass, so 1.28.0 exports AgentProfilesClient), but the "v1.29.0" note is confusing next to a 1.28 pin.
  • No version gate on the nav item. The "Agent profiles" entry shows for every local backend. A user pointed at an older agent-server (before /api/agent-profiles existed) will see the nav item, click it, and hit the load-error empty state (no toast, thanks to disableToast). That's consistent with the repo's documented "accept all advertised versions" stance, so it's graceful degradation rather than a bug — noting it so it's a conscious choice.

Testing gaps

  • No unit coverage for buildAgentProfileFields (the ACP built-in-default null vs shell-string branch + tool_concurrency_limit coercion) — the most regression-prone new logic.
  • No tests/e2e/mock-llm/ spec for the Settings → Agent profiles flow. The existing 60/60 mock-LLM run proves you didn't regress the global agent page, but nothing exercises create/edit/activate/delete of a profile end-to-end. A settings/-subdir spec would fit the existing layout and selective-run mapping. Suggested follow-up, not a merge blocker.

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk Assessment: 🟢 LOW. Additive route + settings library, local-backend-gated, cloud redirects to the unchanged page. The only touch to shared code is the embedded opt-in on AgentSettingsScreen, and the global page path is unchanged when the new props are omitted (verified). Not in the eval-risk category — no prompt/tool-execution/loop/condenser changes; agent-profile selection is user-driven config, not agent behavior. Worst realistic failure is a mis-mapped save payload in the untested builder, contained to this feature.

VERDICT: ✅ Worth merging once the buildAgentProfileFields mapping gets a unit test (or the human tester confirms the ACP built-in-default round-trip in-app). Leaving this as a COMMENT rather than an approval purely because the PR's most novel logic is the one piece with zero automated coverage — everything else is solid.

KEY INSIGHT: Great minimal-surface design (reuse the page, don't rebuild it) — but the tests validate the boring wiring you reused and mock away the one new function worth testing.


Improve this review? If any feedback above seems incorrect or irrelevant to this repository, you can teach the reviewer to do better:

  1. Add a .agents/skills/custom-codereview-guide.md file to your branch (or edit it if one already exists) with the /codereview trigger and the context the reviewer is missing.
  2. Re-request a review — the reviewer reads guidelines from the PR branch, so your changes take effect immediately.
  3. When your PR is merged, the guideline file goes through normal code review by repository maintainers.

Resolve with AI? Install the iterate skill in your agent and run /iterate to automatically drive this PR through CI, review, and QA until it's merge-ready.

Was this review helpful? React with 👍 or 👎 to give feedback.

This review was generated by an AI agent (OpenHands) on behalf of the requester.

Comment thread src/routes/agent-settings.tsx Resolved
@openhands-ai

openhands-ai Bot commented Jul 1, 2026

Copy link
Copy Markdown

I've completed the /codereview-roasted review of PR #1571 and posted it to GitHub.

Summary

I reviewed the "minimal local Agent Profiles library" PR — grounding every claim against the checked-out branch rather than trusting the description. I read the full diff (23 files, ~1.9k lines) across the data layer (service + query/mutation hooks), the UI components, the AgentSettingsScreen embedded-mode changes, routes/nav gating, tests, and i18n.

Verdict: 🟡 Acceptable — COMMENT review (posted: pullrequestreview-4613069842).

What I verified holds up

  • The global /settings/agent page is genuinely unchanged — header + Save button are only gated behind !embedded.
  • Data layer is Rule-1 compliant (typed AgentProfilesClient, no raw axios/fetch), with backend/org-suffixed query keys and prefix-match invalidation.
  • Local-only gating is consistent across nav filter, route redirect, and query mounting, with a focused nav test.
  • i18n is complete: all 7 new keys carry all 15 languages; the ~16 reused profile keys already exist (verified programmatically).

Why I left a COMMENT rather than APPROVE

The PR's one genuinely-new, regression-prone function — buildAgentProfileFields() in agent-settings.tsx (the ACP "store null for built-in default vs. verbatim shell string" branch + tool_concurrency_limit coercion) — has zero automated coverage. The view test mocks the embedded form away and hand-feeds a control, and there's no mock-LLM E2E spec for the flow. That's the classic "tests validate the boring wiring, mock away the interesting logic" trap.

I also flagged (non-blocking): near-verbatim duplication of the actions-menu shell vs. llm-profiles/, a non-atomic rename-then-save, a v1.29.0-vs-1.28.0-pin doc drift, and the nav item showing on older agent-servers.

I confirmed this is not in the eval-risk category (no prompt/tool/loop/condenser changes), and assessed overall risk as 🟢 LOW. Two actionable inline comments were attached at the exact lines.

@simonrosenberg simonrosenberg changed the title feat(agent-profiles): minimal local Agent Profiles library reusing the Agent settings form feat(agent-profiles): local Agent Profiles — simplified config + full chat picker & live switch Jul 1, 2026
@simonrosenberg simonrosenberg removed the canvas-review Experimental code review from an a shared agent canvas instance label Jul 1, 2026
@simonrosenberg simonrosenberg added the canvas-review Experimental code review from an a shared agent canvas instance label Jul 1, 2026
@simonrosenberg

Copy link
Copy Markdown
Member Author

@OpenHands /codereview-roasted

Re-review please. Since the last review I addressed the one blocker: extracted buildAgentProfileFields() into a pure exported helper and added 8 unit tests (__tests__/routes/build-agent-profile-fields.test.ts) covering the ACP built-in-default→null vs shell-string branch and the tool_concurrency_limit coercion. Also added the full chat integration (#3727): home agent-profile picker + in-conversation live switch (OpenHands LLM / ACP model), validated end-to-end against a real SDK-main agent-server. Both prior inline threads are replied + resolved.

@openhands-ai

openhands-ai Bot commented Jul 1, 2026

Copy link
Copy Markdown

I'm on it! simonrosenberg can track my progress at all-hands.dev

@simonrosenberg

Copy link
Copy Markdown
Member Author

@OpenHands /codereview-roasted

@openhands-ai

openhands-ai Bot commented Jul 1, 2026

Copy link
Copy Markdown

I'm on it! simonrosenberg can track my progress at all-hands.dev

@simonrosenberg simonrosenberg added the e2e-tests Triggers mock-LLM E2E tests on PRs label Jul 1, 2026 — with OpenHands AI

@simonrosenberg simonrosenberg left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

/codereview-roasted — re-review

Taste Rating: 🟡 Acceptable — the data layer and profile-library UI are clean and reuse existing patterns well; the prior blocker is genuinely fixed. But this PR quietly changes the conversation-start payload for every local conversation, which lands it in the eval-risk category, so I'm leaving a COMMENT for a human to sign off rather than an APPROVE.

I grounded everything against the checked-out branch (005bb1c), read the full diff (43 files), and traced the start-conversation path 1–2 levels into the SDK-facing payload builder.

Prior blocker — resolved ✅

buildAgentProfileFields() is now a pure exported function in src/routes/agent-settings.tsx, and __tests__/routes/build-agent-profile-fields.test.ts exercises it directly (built-in-default→null vs verbatim shell-string, custom preset, blank-model→null, concurrency coercion, and the throw path). Real code, real assertions on output. 👍

What's good

  • API conventions honored. AgentProfilesService goes through the ts-client AgentProfilesClient via getAgentServerClientOptions() — no raw axios/fetch (Rule 1 clean). Query keys are centralized in AGENT_PROFILES_QUERY_KEYS; no magic strings at call sites.
  • Graceful degradation. useAgentProfiles uses meta: { disableToast: true } and is gated to local backends, so an old agent-server that 404s /api/agent-profiles doesn't spam toasts, and normalizeLaunchedProfile() returns null on malformed/absent provenance.
  • Tests mock the service, not the hook (e.g. agent-profiles-manager.test.tsx → vi.mock(".../agent-profiles-service.api")), matching the repo testing rules.
  • embedded-mode reuse of AgentSettingsScreen mirrors the LlmSettingsScreen embed pattern; the ref-backed save-control avoids re-emitting on every keystroke.

[MAIN CONCERN — for a human to decide] Every local conversation now launches via agent_profile_id

src/hooks/mutation/use-create-conversation.ts:82

const requestedAgentProfileId =
  agentProfileId ?? agentProfiles?.active_agent_profile_id ?? undefined;

This defaults to the active profile even when the user never touched the picker. Combined with the agent-server lazily seeding a default openhands profile on first GET, the practical effect is: after this PR nearly all local conversations start with agent_profile_id and no agent_settings (buildStartConversationRequest drops agent_settings entirely on the profile path).

Why this needs a human eye:

  1. Agent-behavior change. The conversation-start payload — which agent, which tools, which LLM — is now resolved server-side from the profile instead of the inline agent_settings the frontend has always sent. That's exactly the "changes agent behavior / could affect eval performance" category the repo's review policy says not to auto-approve.
  2. Tool attachment is unverified on this path. The openhands agent-profile schema forbids tools / include_default_tools, so whether a profile-launched conversation ends up with the default exec tools (terminal, file_editor, task_tracker, …) depends entirely on the server's resolver defaults. The PR's evidence confirms POST /api/conversations → 201 and that launched_agent_profile is stamped, but I don't see confirmation that a profile-launched OpenHands conversation actually has working exec tools and can complete a real task end-to-end. If the resolver doesn't include default tools, home-launched conversations would be toolless — a serious regression for the primary use case.
  3. The seed path is already known-brittle. The hasDanglingLlmRef fallback (use-create-conversation.ts:98) exists precisely because the seeded default profile can carry an llm_profile_ref that doesn't resolve (SDK #3933), which would 404 and brick home-launch. Having to special-case the seed is a signal this launch path isn't fully baked server-side yet.

Ask: please confirm (screenshot/log or a note) that a fresh local backend, home → start conversation from the seeded/active profile, yields a conversation with the normal exec tools and runs a real tool call. Ideally capture this as a mock-LLM e2e (see below) since the unit tests can only assert payload shape, not server tool resolution.

I've added the e2e-tests label — this touches the conversation-start path and currently has no e2e coverage for profile-launch.


[IMPROVEMENT OPPORTUNITIES]

  • use-create-conversation.ts:112 — positional-arg tail hack. createConversation is now 10 positional params and the call site does const profileArgs: [undefined, string] | [] = ...; createConversation(query, …, agentType, ...profileArgs) to skip sandboxId. You already left the TODO to convert to an options object — strongly agree; this position-skipping is a latent footgun (any future param insertion silently shifts agentProfileId). Not blocking, but the options-object refactor would remove a whole class of bug and is worth doing before more callers pile on.
  • secrets on the profile path. buildStartConversationRequest still attaches saved customSecrets as LookupSecrets while omitting secrets_encrypted on the profile branch — which is correct (plaintext X-Session-API-Key headers avoid the pre-1.21.x decrypt-strip bug). Just confirm the server accepts agent_profile_id + secrets together; the AGENT evidence didn't mention exercising saved custom secrets through a profile launch.

[TESTING GAPS]

  • No e2e covering the actual home→profile→run flow (unit tests validate payload shape only, which cannot catch server-side tool/LLM resolution failures). Given the seed brittleness above, a tests/e2e/mock-llm/ case that launches from a profile and asserts a real tool call would be the highest-value addition here.

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk Assessment: 🟡 MEDIUM — Cleanly gated to local backends and cloud-safe, well-tested at the unit level, and the profile-library UI is low-risk. The medium rating is driven entirely by the silent switch of all local conversation launches to the server-resolved agent_profile_id path, whose tool/LLM resolution is not covered by automated tests and depends on a server seed that already needed a client-side workaround.
  • Recommendation: Don't auto-merge. A human maintainer should confirm a profile-launched OpenHands conversation has the expected exec tools (run a real task once), then this is fine to ship.

VERDICT: ✅ Worth merging after the tool-resolution sanity check — the design is sound and cloud-safe; the open item is verification, not rework.

KEY INSIGHT: The frontend correctly makes agent_profile_id and agent_settings mutually exclusive, but by defaulting to the active profile for every local launch it hands the entire "what tools/LLM does this agent get" decision to a server resolver that this PR itself had to defensively work around — so the one thing worth a human's eyes is proving a profile-launched conversation is actually fully functional, not just 201.


Improve this review? If any feedback seems off, add/adjust .agents/skills/custom-codereview-guide.md on this branch with the missing context and re-request review.

Resolve with AI? Install the iterate skill and run /iterate.

Was this review helpful? React with 👍 or 👎.

This review was generated by an AI agent (OpenHands) on behalf of the reviewer.

@openhands-ai

openhands-ai Bot commented Jul 1, 2026

Copy link
Copy Markdown

I've completed the /codereview-roasted re-review of PR #1571 and posted it to GitHub.

Summary

I grounded the review against the checked-out branch (005bb1c), read the full 43-file diff, and traced the start-conversation payload into the SDK-facing builder rather than trusting the description.

Verdict: 🟡 Acceptable — COMMENT review (posted here).

What I confirmed

  • Prior blocker is genuinely fixed — buildAgentProfileFields() is now a pure exported helper with 8 real unit tests asserting on output (ACP built-in-default→null vs verbatim shell-string, custom preset, blank-model, concurrency coercion + throw path).
  • API conventions clean — AgentProfilesService uses the ts-client AgentProfilesClient via getAgentServerClientOptions() (Rule 1), query keys centralized, tests mock the service not the hook, graceful 404 degradation, cloud-safe gating.

Why COMMENT instead of APPROVE

The repo's review policy says not to auto-approve changes that affect agent behavior / evals. This PR quietly routes every local conversation through agent_profile_id (defaulting to the active/seeded profile) and drops agent_settings entirely. The open question a human should verify: does a profile-launched OpenHands conversation actually get the default exec tools (terminal/file_editor/…) and run a real task? The unit tests only assert payload shape, there's no e2e for the profile-launch path, and the hasDanglingLlmRef fallback shows the server seed path is already known-brittle (SDK OpenHands/OpenHands#3933).

Actions taken

  • Added the e2e-tests label (conversation-start path with no e2e coverage).
  • Flagged the 10-positional-param createConversation + [undefined, string] tail hack (author already has a TODO) as an improvement, and suggested a mock-LLM e2e for the home→profile→run flow.

No code was modified — this was a review-only task.

@simonrosenberg simonrosenberg left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🟡 Acceptable — works, reuses existing patterns well, and the one blocker from the last round (extract + unit-test buildAgentProfileFields) is genuinely resolved. A few things to tighten before this is spotless. Grounded against the checked-out branch (43 files, +3344/-626), not the description.

What's good (so I'm not just roasting)

  • buildAgentProfileFields is now a pure, exported, unit-tested function (__tests__/routes/build-agent-profile-fields.test.ts exercises the ACP built-in-default→null vs verbatim-shell-string branch and the tool_concurrency_limit coercion). That's exactly what was asked for.
  • No API-guard violations. Every agent-server call goes through AgentProfilesClient via getAgentServerClientOptions(); no raw axios/fetch/openHands reached into the new code (only a retrieveAxiosErrorMessage util import). src/api/no-direct-agent-server-calls.test.ts should stay green.
  • All 8 new SETTINGS$*/CHAT$* i18n keys exist in all 15 languages — verified statically, so check-translation-completeness should pass.
  • Mutation hooks are consistent (prefix-invalidate AGENT_PROFILES_QUERY_KEYS.all, meta.disableToast + caller-side toasts) and the embedded-mode refactor of AgentSettingsScreen is clean and cloud/local-gated.

[IMPROVEMENT OPPORTUNITIES]

  • [src/hooks/mutation/use-rename-agent-profile.ts] Dead module. useRenameAgentProfile is never consumed — agent-profiles-local-view.tsx calls AgentProfilesService.renameProfile(...) directly (grep finds no importer outside the file itself). Either use the hook in the editor (you'd get the list invalidation for free) or delete it. Right now it's 24 lines of untested, unreachable code.

  • [src/hooks/use-chat-input-profile-state.ts + chat-input-profile-picker.tsx] The isInConversation path is unreachable. ChatInputProfilePicker / ChatInputProfileMenuContent are only rendered by chat-input-actions.tsx when pickerKind === "agent-profile", i.e. !isCloud && !conversationId. So conversationId is always null in the only consumer and isInConversation is always false. That means:

    • the createConversation.mutate({ agentProfileId }) + navigate(...) branch in selectProfile,
    • the "start new with profile" hint block (lines 96–102), and
    • the CHAT$START_NEW_WITH_PROFILE_HINT key (shipped in 15 languages)

    can never execute through the real render path — a test can only reach them by calling the hook directly. Either drop the branch + hint + key, or, if it's deliberate forward-compat for showing the picker in-conversation later, say so in a comment and add a gating-layer test that proves it's reachable. As-is it's carrying complexity (and translated copy) for a no-op.

  • [src/hooks/mutation/use-create-conversation.ts + agent-server-conversation-service.api.ts L363] Positional-param sprawl / the profileArgs skip hack. const profileArgs: [undefined, string] | [] = effectiveAgentProfileId ? [undefined, effectiveAgentProfileId] : [] spreading [undefined, <id>] to skip sandboxId is exactly the kind of thing that silently misroutes when someone reorders the now-10 positional args. You already left the TODO: refactor to an options object. This PR is the change that pushes createConversation to 10 params — it's the natural (and cheapest) place to do the options-object refactor rather than defer it. Not blocking, but the hack will rot.

[MINOR / NON-BLOCKING]

  • Gating style is inconsistent: the route guards on backend.kind !== "local" while useCreateConversation / chat-input-actions guard on === "cloud" / isCloud. Equivalent today (only two kinds), but pick one.
  • useAgentProfiles defaults enabled: true and relies on every consumer being pre-gated to local. meta.disableToast keeps a stray cloud 404 quiet, so it's safe now, but the "local-only" invariant lives entirely in the callers, not the hook.

[TESTING]

Coverage is solid and follows repo conventions (mock the service, not the hook; real pure-function tests for the mapping). No mock-only anti-patterns. The hasDanglingLlmRef fallback in use-create-conversation.ts is well-commented and has a test — good, since that's the subtle bit.

⚠️ Eval / behavior-risk flag (why COMMENT, not APPROVE)

This changes the conversation-launch path: agent_profile_id (resolved server-side) XOR inline agent_settings, and skips the ACP tag / encrypted-settings / subscription check on the profile path. That can change the effective agent a conversation runs with (tools, sub-agents, LLM). Per this repo's review policy I don't auto-approve changes that can plausibly affect agent/benchmark behavior — flagging for a human maintainer to sanity-check that a profile launch produces the intended tools + LLM before merge.

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk: 🟡 MEDIUM — additive, cloud-gated, degrades cleanly to the legacy agent_settings launch, and CI is green (Windows build passed; Ubuntu build + mock-LLM/Docker E2E pending at review time). Blast radius is medium because it touches the shared AgentSettingsScreen (new embedded mode) and the launch path, but both are well-tested.

VERDICT: ✅ Worth merging once the dead useRenameAgentProfile and the unreachable isInConversation/hint/key are resolved (or explicitly justified) — and after a human eyeballs the launch-path behavior change.

KEY INSIGHT: The "reuse AgentSettingsScreen in embedded mode" bet pays off and keeps the diff lean; the remaining rough edges are all unused surface area (a dead hook, an unreachable picker branch, a param hack you already flagged) rather than incorrect logic.


Improve this review? If any feedback above seems incorrect or irrelevant to this repository, add/edit .agents/skills/custom-codereview-guide.md on your branch (with the /codereview trigger) to teach the reviewer, then re-request. See the customization docs.

Resolve with AI? Install the iterate skill and run /iterate to drive this PR through CI, review, and QA until it's merge-ready.

Was this review helpful? React with 👍 or 👎.

This review was generated by an AI agent (OpenHands) on behalf of @simonrosenberg.

@openhands-ai

openhands-ai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Done. I completed the /codereview-roasted re-review of PR #1571 and posted it to GitHub.

Review: #1571 (review) (COMMENT)

What I did

I grounded the review against the checked-out branch (43 files, +3344/−626) rather than the PR description — reading the adapter, conversation service, the reused AgentSettingsScreen embedded mode, the new profile library/editor components, the chat-input pickers, mutation/query hooks, routes/nav gating, and tests. I also statically verified two CI gates I could check without a full build (i18n keys present in all 15 languages; no direct-agent-server-call violations in the new files).

Verdict: 🟡 Acceptable — COMMENT (not APPROVE)

Confirmed the previous blocker is resolved: buildAgentProfileFields is now a pure, exported, unit-tested function.

Three improvement opportunities (all grounded, none are correctness bugs):

  1. Dead module — useRenameAgentProfile is never imported (the editor calls the service directly).
  2. Unreachable code — the isInConversation branch in useChatInputProfileState + the "start new with profile" hint + its 15-language i18n key can never execute, because the picker only renders when !conversationId.
  3. Positional-param sprawl — the [undefined, effectiveAgentProfileId] spread to skip sandboxId pushes createConversation to 10 params; the author already flagged it with a TODO, and this is the natural place to do the options-object refactor.

Why COMMENT rather than APPROVE: per this repo's review policy, the PR changes the conversation-launch path (agent_profile_id XOR inline agent_settings, skipping the ACP/encrypted-settings/subscription checks), which can change the effective agent config a conversation runs with — so I flagged it for a human maintainer to sanity-check rather than auto-approving. Overall risk assessed 🟡 MEDIUM (additive, cloud-gated, degrades to the legacy path, CI green).

No code changes were requested of me — this was a review request — so I made no commits.

simonrosenberg and others added 2 commits July 2, 2026 10:07
…e Agent settings form

Adds a Settings → Agent profiles library (local backends only) that mirrors
the LLM-profiles UX: a list of named profiles with a create/edit view that
reuses the existing Agent settings form as the editor — you just add a name
(and, for OpenHands agents, pick an LLM profile).

Deliberately minimal vs the full Phase-4 UX: no chat-input picker, no live
switch, no Settings information-architecture rework. Condenser / verification /
MCP stay global, exactly as on main.

- Data layer: AgentProfilesService + list/save/delete/rename/activate hooks
  wrapping the ts-client AgentProfilesClient (endpoints shipped in
  agent-server v1.29.0).
- Editor: AgentSettingsScreen gains an opt-in `embedded` mode (hides its
  header + global Save, seeds from an override, and reports state via a save
  control) — mirroring how LlmSettingsScreen is embedded in the LLM-profiles
  view. The global Agent settings page is unchanged.
- Library: AgentProfilesLocalView (list/create/edit) + manager/body/row/menu +
  delete modal, at the additive route /settings/agents, gated to local
  backends (cloud has no /api/agent-profiles surface yet, epic #3730).
- Maps the form to AgentProfileSaveInput: OpenHands requires an llm_profile_ref
  (via a picker); ACP stores acp_server/acp_model and the command as a shell
  string. Validated end-to-end against a real agent-server.

Part of OpenHands/software-agent-sdk#3713 (Phase 4). An alternative to the
larger #1550.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…onversation switch

Adds the full chat integration for Agent Profiles (epic #3713, #3727), keeping
the simplified library/editor from the previous commit:

- New-conversation picker (home): an agent-profile toggle replaces the LLM-
  profile toggle. Selecting activates the profile so the next conversation
  launches from it; conversations start via `agent_profile_id` (resolved
  server-side) instead of an inline agent_settings dump.
- Mid-conversation switch, capability-gated by the running agent:
  - OpenHands conversation → live LLM-profile switch (`/switch_profile`).
  - ACP conversation → live model switch (`set_session_model`, existing
    ChatInputModel).
  - Home / cloud fall back to the agent-profile picker / model picker.
- Threads `agent_profile_id` through the conversation-start path
  (buildStartConversationRequest: agent_profile_id XOR agent_settings; skip the
  ACP tag / encrypted-settings / subscription check on the profile path) and
  reads the server's `launched_agent_profile` provenance to mark the current
  profile without settings-matching.
- Replaces the old SwitchProfileButton/context-menu with the new pickers.

Validated end-to-end against a real agent-server (SDK main): starting a
conversation with `agent_profile_id` returns 201 and stamps
`launched_agent_profile { agent_profile_id, revision }`.

Ported from #1550's chat implementation. Gates green: typecheck, eslint,
prettier, i18n (15 langs), vitest (3496 passed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
simonrosenberg and others added 2 commits July 8, 2026 14:48
… stamp the launched LLM ref

The seeded `default` agent profile is the enriched baseline that mirrors global
agent_settings, not a deliberate profile pick. Launching it via `agent_profile_id`
made the server rebuild the agent purely from the profile, dropping the canvas-only
enrichments the profile-resolution path can't carry — the `<RUNTIME_SERVICES>`
system-message suffix, the `canvas_ui` tool, and project-skill loading. Route the
well-known `default` profile through the agent_settings launch instead; named
profiles are deliberate custom configs and keep the profile path. Fixes the
mock-llm-docker-e2e automation RUNTIME_SERVICES failure.

Also from #1571 review:
- Stamp the launched OpenHands profile's `llm_profile_ref` into conversation
  metadata (not the standalone active LLM profile) so the switcher pill names the
  exact profile the conversation runs when the two differ (#1082).
- Add `retry: false` to the LLM-ref validation fetch, matching the sibling
  agent-profiles fetch, so a slow/erroring /api/profiles falls back promptly.

Hoist the well-known name to `WELL_KNOWN_DEFAULT_AGENT_PROFILE_NAME` (shared by the
launch path and onboarding). Re-onboarding intentionally overwrites `default`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ofile load

`useLlmConfigured` derives `isAcpAgent` and the referenced LLM from the active
agent profile but omitted that query's loading state from `isLoading`. On a cold
cache an ACP agent (which needs no key) briefly read as an unconfigured OpenHands
agent, flashing the "LLM not set up" banner until the profiles query resolved.
Thread the `useActiveAgentProfile` loading signal into the indeterminate state so
consumers render nothing until the active agent profile is known (#1571 review).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ands profiles

The `default`→agent_settings shortcut (which preserves <RUNTIME_SERVICES>/canvas_ui)
must not apply to an ACP `default` profile: activation is pointer-only, so global
agent_settings is stale (still OpenHands) when an ACP profile is active — routing it
via agent_settings launched the wrong agent (mock-llm-acp-agent.spec.ts step 3
expected agent_profile_id, got OpenHands agent_settings). ACP also carries no
<RUNTIME_SERVICES>/canvas_ui enrichment, so there's nothing to preserve. Gate the
shortcut on agent_kind === "openhands"; ACP defaults keep the profile path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VascoSch92

Copy link
Copy Markdown
Member

1. The default-profile launch downgrade needs to be local-only
In useCreateConversation the seeded default OpenHands profile gets downgraded to the agent_settings path (effectiveAgentProfileId = undefined). The whole justification for that is preserving the canvas-only enrichments, which only exist on the local path. On cloud there's no agent_settings payload, so we end up sending agent_profile_id: null and the conversation never gets launched_agent_profile stamped or the profile's config applied. Can we gate the downgrade behind !isCloud so cloud always launches from the resolved profile id? Would be good to add a cloud e2e that launches from the active default.

2. You can't actually clear tool_concurrency_limit from the editor
buildAgentProfileFields only sets the key when coerced != null, and mergeAgentProfileSaveInput then keeps the stored value for any omitted key. Net effect: emptying the field on an edit-save is a silent no-op, you can only ever change it, never unset it. I think we want to emit an explicit null when the field is blank so "clear" actually clears.

3. We lost the specific switch-failure message
Dropping meta: { disableToast: true } on useSwitchLlmProfile means a failed switch now shows the generic global toast instead of the old MODEL$SWITCH_FAILED ("Switched to {name} failed") message. If that's deliberate, let's delete the now-unused key; otherwise I'd keep the tailored message in an onError.

4. Retry policy is inconsistent across the agent-profiles fetches
The launch path uses retry: false so older backends without /api/agent-profiles degrade immediately, but redirectIfAcpActive (fetchQuery) and useAgentProfiles (CONFIG_CACHE_OPTIONS) still use the default 3x backoff. On a backend that doesn't have the surface, the route guard eats the full backoff on every settings navigation. Can we pull the retry setting into a shared options constant so they don't drift?

5. Stale comment in useChatInputLlmProfileState
The comment on optimisticActiveProfile says it's written by switchAndLog -> recordSwitch, but that logic moved into useSwitchLlmProfile's onSuccess. Please update the comment, and while you're there double-check the model-store write (activeProfileByConversation) still fires so the instant label update didn't quietly break.

6. Stale llm_profile_ref in the editor dropdown (minor)
If an OpenHands profile references an LLM profile that's since been deleted, the dropdown renders nothing selected but llmProfileRef still holds the old name and saves it straight back. Worth validating against the live list on load and falling back to the default.

7. The two chat-input pickers are near-duplicates (nit, optional)
chat-input-profile-picker.tsx and chat-input-llm-profile-picker.tsx share ~90% of the popover shell + truncateLabel. Could extract a shared shell later, not blocking.

- Gate the default-profile agent_settings downgrade to local backends
  only; cloud always launches from the resolved agent_profile_id.
- Emit an explicit schema-default (not an omitted key) when
  tool_concurrency_limit is cleared, so edit-save actually resets it.
- Restore the tailored "Switched to {name} failed" toast via
  meta.disableToast + a dedicated onError.
- Share one AGENT_PROFILES_RETRY_OPTIONS constant across the launch
  path, redirectIfAcpActive, and useAgentProfiles so retry policy
  can't drift between call sites.
- Fix a stale comment on optimisticActiveProfile's write path.
- Self-heal a dangling llm_profile_ref in the agent-profile editor by
  validating it against the live LLM-profiles list on load.
resolvePickerKind hard-coded cloud conversations to the read-only
model picker, on the premise that cloud has no per-conversation
switch endpoint. That's not true: POST
/api/v1/app-conversations/{id}/switch_profile has existed since
OpenHands#14288 (2026-05-05), predating this PR, and the frontend
plumbing to call it (AgentServerConversationService.switchProfile's
cloud branch) was already implemented and just unreachable.

Cloud OpenHands conversations now resolve to the LLM-profile picker,
same as local, matching how ACP already behaves identically on both
backends. main's old SwitchProfileButton had no cloud gate either, so
this restores previously-working behavior rather than adding new
scope.

@enyst enyst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

✅ Mock-LLM E2E Tests

60/60 passed

Commit: 9d71042b · Workflow run · Test artifacts

Details
Status Test Duration
✅ automations/mock-llm-automation.spec.ts › mock-LLM automation lifecycle › step 1: setup LLM profile and register automation trajectory 6.9s
✅ automations/mock-llm-automation.spec.ts › mock-LLM automation lifecycle › step 2: create automation and dispatch run via the UI 35.5s
✅ automations/mock-llm-automation.spec.ts › mock-LLM automation lifecycle › step 3: verify automation and run on the automations page 6.2s
✅ automations/mock-llm-preset-automation.spec.ts › preset automation → slash command conversation › automation card sends the correct slash command to a conversation 15.5s
✅ automations/mock-llm-preset-automation.spec.ts › preset automation → slash command conversation › direct slash command from home page triggers skill activation 13.0s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: fresh install with runtime-injected key › reaches the onboarding modal without pre-seeded localStorage 1.5s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: non-public key rotation › recovers when localStorage has a stale session API key 5.3s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › shows first-run onboarding before the auth screen when no key is configured 1.4s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › rejects an incorrect key with an inline error 1.7s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › allows access after pasting the correct key 1.8s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › skips auth screen for returning user with valid stored key 777ms
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › re-prompts when the server rotates its key (stale localStorage) 1.5s
✅ backends/mock-llm-cross-connect.spec.ts › cross-connect: frontend-only → backend-only › frontend-only connects to a separate backend-only instance 16.9s
✅ backends/mock-llm-cross-connect.spec.ts › cross-connect: frontend-only → multiple backends › connects to two separate backends and switches between them 20.4s
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: --frontend-only › serves the frontend but returns 503 for backend routes 7.4s
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: --backend-only › serves backend APIs but returns 503 for the frontend root 14.1s
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: port conflict › fails with a clear error when the ingress port is occupied 105ms
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: port conflict › starts successfully on a free port after a conflict 6.0s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 1: create an LLM profile pointing at the mock LLM server 6.3s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 2: activate the mock-llm profile and verify settings API 6.2s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 3: run a conversation with the mock LLM 7.3s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 4: resume conversation from sidebar after navigating away 5.7s
✅ conversations/mock-llm-image-upload.spec.ts › mock-LLM image upload › attaching an image embeds it as base64 in the LLM completion call 12.8s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 1: ensure mock LLM profile is configured 6.6s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 2: start conversation and attach workspace metadata 11.6s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 3: git control bar shows workspace pill and git actions 25.3s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 4: files tab defaults to diff view for attached workspace 5.9s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 5: browser tab shows empty state 6.3s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 6: files tab defaults to file-tree view without attached workspace 7.6s
✅ home/mock-llm-folder-workspace.spec.ts › mock-LLM folder browser → workspace → conversation › step 1: browse to a folder, add it as a workspace, and launch a conversation with the correct working_dir 7.6s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 1: GitHub card is visible on the MCP marketplace page 5.5s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 2: clicking GitHub add control opens the install modal with correct fields 5.6s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 3: full install flow — fill PAT, submit, verify installed 12.2s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 4: installed GitHub server can be deleted 5.9s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › install: invalid Slack credentials are blocked with a credential-check error 5.8s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › install: a valid token missing only a scope still installs (missing_scope is not a credential failure) 5.9s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › install: an older agent server that omits tool_result still installs (compat) 5.9s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › edit: Test Connection verifies the stored credentials and surfaces a credential failure 5.8s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › edit: Test Connection reports success for valid stored credentials 5.9s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › custom (non-catalog) server: Test Connection attaches no verification probe 5.8s
✅ onboarding/mock-llm-onboarding-happy-path.spec.ts › onboarding happy path › completes the full onboarding flow and launches a conversation 4.6s
✅ onboarding/mock-llm-onboarding-regressions.spec.ts › onboarding recent regressions › keeps the modal open on backdrop click and Escape 1.5s
✅ onboarding/mock-llm-onboarding-regressions.spec.ts › onboarding recent regressions › defaults the LLM setup step to OpenAI GPT-5.5 1.6s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › scopes standalone styles to the agent-server-ui shell 1.4s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › renders critic results on agent messages and finish actions 3.5s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › loads older events when scrolling up 1.7s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › selected workspace persists after navigating away and returning 2.1s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › cleared sessionStorage yields empty workspace selection 1.0s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 1: configure ACP agent via Settings → Agent UI 13.4s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 2: reload and verify ACP settings are persisted in UI 5.7s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 3: start ACP conversation and verify agent reply 6.2s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 4: resume ACP conversation from sidebar after navigating away 5.7s
✅ settings/mock-llm-model-switch.spec.ts › mock-LLM /model slash command › step 1: configure LLM, create switch-target profile, register trajectory 13.3s
✅ settings/mock-llm-model-switch.spec.ts › mock-LLM /model slash command › step 2: start conversation, switch profile via /model, verify switch 6.8s
✅ settings/mock-llm-profile-management.spec.ts › active profile deletion + reconciliation › active profile is deletable and reconciliation activates another profile 9.2s
✅ settings/mock-llm-profile-management.spec.ts › same-model profile identity › chat header shows the correct profile when two profiles share the same model 14.7s
✅ settings/mock-llm-profile-management.spec.ts › OpenHands provider hidden base_url preservation › re-saving an OpenHands profile from Basic view preserves hidden base_url 7.3s
✅ skills/mock-llm-skills.spec.ts › skill loading: project, user, and deletion › project skill in workspace/.agents/skills/ triggers on matching keyword 12.9s
✅ skills/mock-llm-skills.spec.ts › skill loading: project, user, and deletion › user skill in ~/.openhands/skills/ triggers on matching keyword 13.6s
✅ skills/mock-llm-skills.spec.ts › skill loading: project, user, and deletion › deleting a user skill removes it from subsequent conversations 13.8s

Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses)

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

✅ Mock-LLM Docker E2E Test Results

60/60 passed

Commit: 9d71042b · Workflow run · Test artifacts

Details
Status Test Duration
✅ automations/mock-llm-automation.spec.ts › mock-LLM automation lifecycle › step 1: setup LLM profile and register automation trajectory 7.3s
✅ automations/mock-llm-automation.spec.ts › mock-LLM automation lifecycle › step 2: create automation and dispatch run via the UI 30.5s
✅ automations/mock-llm-automation.spec.ts › mock-LLM automation lifecycle › step 3: verify automation and run on the automations page 6.2s
✅ automations/mock-llm-preset-automation.spec.ts › preset automation → slash command conversation › automation card sends the correct slash command to a conversation 15.6s
✅ automations/mock-llm-preset-automation.spec.ts › preset automation → slash command conversation › direct slash command from home page triggers skill activation 12.8s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: fresh install with runtime-injected key › reaches the onboarding modal without pre-seeded localStorage 1.5s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: non-public key rotation › recovers when localStorage has a stale session API key 5.3s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › shows first-run onboarding before the auth screen when no key is configured 1.5s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › rejects an incorrect key with an inline error 1.7s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › allows access after pasting the correct key 1.9s
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › skips auth screen for returning user with valid stored key 856ms
✅ backends/mock-llm-auth-modes.spec.ts › auth mode: public gate › re-prompts when the server rotates its key (stale localStorage) 1.6s
✅ backends/mock-llm-cross-connect.spec.ts › cross-connect: frontend-only → backend-only › frontend-only connects to a separate backend-only instance 23.0s
✅ backends/mock-llm-cross-connect.spec.ts › cross-connect: frontend-only → multiple backends › connects to two separate backends and switches between them 21.0s
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: --frontend-only › serves the frontend but returns 503 for backend routes 7.4s
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: --backend-only › serves backend APIs but returns 503 for the frontend root 14.1s
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: port conflict › fails with a clear error when the ingress port is occupied 107ms
✅ backends/mock-llm-partial-stack.spec.ts › partial stack: port conflict › starts successfully on a free port after a conflict 6.0s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 1: create an LLM profile pointing at the mock LLM server 6.4s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 2: activate the mock-llm profile and verify settings API 6.3s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 3: run a conversation with the mock LLM 6.3s
✅ conversations/mock-llm-conversation.spec.ts › mock-LLM agent-server conversation › step 4: resume conversation from sidebar after navigating away 5.8s
✅ conversations/mock-llm-image-upload.spec.ts › mock-LLM image upload › attaching an image embeds it as base64 in the LLM completion call 12.7s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 1: ensure mock LLM profile is configured 6.6s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 2: start conversation and attach workspace metadata 11.5s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 3: git control bar shows workspace pill and git actions 25.4s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 4: files tab defaults to diff view for attached workspace 5.9s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 5: browser tab shows empty state 6.3s
✅ files/mock-llm-files-and-git.spec.ts › files tab, git control bar, and browser tab › step 6: files tab defaults to file-tree view without attached workspace 7.3s
✅ home/mock-llm-folder-workspace.spec.ts › mock-LLM folder browser → workspace → conversation › step 1: browse to a folder, add it as a workspace, and launch a conversation with the correct working_dir 7.3s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 1: GitHub card is visible on the MCP marketplace page 5.5s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 2: clicking GitHub add control opens the install modal with correct fields 5.7s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 3: full install flow — fill PAT, submit, verify installed 12.3s
✅ mcp/mock-llm-mcp-github.spec.ts › MCP GitHub server install flow › step 4: installed GitHub server can be deleted 5.9s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › install: invalid Slack credentials are blocked with a credential-check error 5.8s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › install: a valid token missing only a scope still installs (missing_scope is not a credential failure) 6.0s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › install: an older agent server that omits tool_result still installs (compat) 5.8s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › edit: Test Connection verifies the stored credentials and surfaces a credential failure 5.8s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › edit: Test Connection reports success for valid stored credentials 5.8s
✅ mcp/mock-llm-mcp-slack-credentials.spec.ts › MCP Test Connection credential verification (Slack) › custom (non-catalog) server: Test Connection attaches no verification probe 5.9s
✅ onboarding/mock-llm-onboarding-happy-path.spec.ts › onboarding happy path › completes the full onboarding flow and launches a conversation 4.2s
✅ onboarding/mock-llm-onboarding-regressions.spec.ts › onboarding recent regressions › keeps the modal open on backdrop click and Escape 1.5s
✅ onboarding/mock-llm-onboarding-regressions.spec.ts › onboarding recent regressions › defaults the LLM setup step to OpenAI GPT-5.5 1.6s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › scopes standalone styles to the agent-server-ui shell 1.4s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › renders critic results on agent messages and finish actions 1.5s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › loads older events when scrolling up 1.7s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › selected workspace persists after navigating away and returning 2.2s
✅ regressions/mock-llm-ui-regressions.spec.ts › UI regressions › cleared sessionStorage yields empty workspace selection 1.4s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 1: configure ACP agent via Settings → Agent UI 13.3s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 2: reload and verify ACP settings are persisted in UI 5.8s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 3: start ACP conversation and verify agent reply 6.8s
✅ settings/mock-llm-acp-agent.spec.ts › mock-LLM ACP agent conversation › step 4: resume ACP conversation from sidebar after navigating away 5.7s
✅ settings/mock-llm-model-switch.spec.ts › mock-LLM /model slash command › step 1: configure LLM, create switch-target profile, register trajectory 12.7s
✅ settings/mock-llm-model-switch.spec.ts › mock-LLM /model slash command › step 2: start conversation, switch profile via /model, verify switch 6.7s
✅ settings/mock-llm-profile-management.spec.ts › active profile deletion + reconciliation › active profile is deletable and reconciliation activates another profile 8.3s
✅ settings/mock-llm-profile-management.spec.ts › same-model profile identity › chat header shows the correct profile when two profiles share the same model 14.5s
✅ settings/mock-llm-profile-management.spec.ts › OpenHands provider hidden base_url preservation › re-saving an OpenHands profile from Basic view preserves hidden base_url 7.8s
✅ skills/mock-llm-skills.spec.ts › skill loading: project, user, and deletion › project skill in workspace/.agents/skills/ triggers on matching keyword 12.8s
✅ skills/mock-llm-skills.spec.ts › skill loading: project, user, and deletion › user skill in ~/.openhands/skills/ triggers on matching keyword 12.7s
✅ skills/mock-llm-skills.spec.ts › skill loading: project, user, and deletion › deleting a user skill removes it from subsequent conversations 12.7s

Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses)

@openhands-release-bot

Copy link
Copy Markdown
Contributor

🚀 Released in v1.2.0.

This branch was successfully deployed

1 active deployment
Preview — 9d71042b Deployed Jul 8, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

canvas-review Experimental code review from an a shared agent canvas instance e2e-tests Triggers mock-LLM E2E tests on PRs released: v1.2.0 Shipped in v1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants