Repository navigation
feat(settings): add the Agent Profiles page replacing Agent behind a feature flag (OHE-3747) - #755
Merged
Merged
Conversation
2 of 6 tasks
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
…files pages (OHE-3744) Two env-backed web-client feature flags, both default off: - enable_agent_context_page (ENABLE_AGENT_CONTEXT_PAGE) shows the dedicated Agent Context settings page. - enable_agent_profiles_page (ENABLE_AGENT_PROFILES_PAGE) replaces the personal Agent page with Agent Profiles, and implies the Agent Context page since the Agent page hosted the memory toggle. isSettingsPageHidden hides /settings/agent-context and /settings/agents unless the matching flag is on, so the nav item and the route redirect share one rule. No visible change while both flags are off.
…flag (OHE-3745) Moves the "Enable Persistent Memory" toggle out of Settings > Agent into its own Personal Settings item, /settings/agent-context (SaaS only), shown when enable_agent_context_page (or enable_agent_profiles_page) is on. The page saves enable_memory_context through the existing settings endpoint. With the flag on, the Agent page no longer renders the inline section; with it off, the Agent page is unchanged. The item is OpenHands-only (disabledByAcp), as the inline section was.
…feature flag (OHE-3747) With enable_agent_profiles_page on (SaaS), Personal Settings shows "Agent Profiles" (/settings/agents) instead of "Agent", and /settings/agent redirects there. The page follows the Secrets layout: the member's own profiles (add, edit, rename, delete, set as default, every write with scope=personal) and an "Organization agent profiles" section listing the org's shared ones read-only (set as default only), hidden when empty. The editor covers name, agent (OpenHands, or ACP when enable_acp), LLM profile, sub-agents and "let the agent switch LLM profiles" (as tools entries, since the SDK retired the boolean switches), parallel tool calls, MCP servers, secrets (personal and organization-shared, with an Organization badge) and ACP preset, command, model and credentials. The ACP guard is off while the profiles page is on, since the agent kind then comes from the active profile. With the flag off, the Agent page and nav are unchanged.
hieptl
force-pushed
the
hieptl/ohe-3456-agent-context-page
branch
from
October 24, 2026 08:38
57f5308 to
4181692
Compare
hieptl
force-pushed
the
hieptl/ohe-3456-agent-profiles-page
branch
from
October 24, 2026 08:38
4e39c1e to
047afa0
Compare
This was referenced Oct 24, 2026
Merged
Merged
hieptl
marked this pull request as ready for review
October 26, 2026 15:53
tofarr
reviewed
Oct 27, 2026
tofarr
left a comment
Contributor
There was a problem hiding this comment.
🍰 - I added some screenshots too
Resolve the conflicts with main after #753, #1007 and #754 were squash-merged: - routes.ts, routes/settings.tsx: keep main's text and re-add the /settings/agents route and SAAS_ONLY_PATHS entry. - i18n/translation.json: main's file plus the 32 keys only this branch adds; declaration.ts regenerated with make-i18n. - constants/settings-nav.tsx: drop the Agent Context item the auto-merge duplicated, keeping main's copy after the new Agent Profiles item.
…Agent Profile editor (OHE-3748) (#1008) System prompt in three modes (OpenHands default, default plus instructions as system_message_suffix, custom persona), and the condenser and verification sections of the agent-settings schema rendered per profile, excluding the global-only verification keys. Hidden fields and cleared values are left out of the stored section so server defaults apply; a section is never written back unseeded.
…le editor (OHE-3749) (#1009) * feat(settings): add system prompt, condenser and verification to the Agent Profile editor (OHE-3748) System prompt in three modes (OpenHands default, default plus instructions as system_message_suffix, custom persona), and the condenser and verification sections of the agent-settings schema rendered per profile, excluding the global-only verification keys. Hidden fields and cleared values are left out of the stored section so server defaults apply; a section is never written back unseeded. * feat(settings): add skills with organization scope to the Agent Profile editor (OHE-3749) A Skills section listing the server's global and user skills plus the skills of every marketplace the member inherits or registered, with an Organization badge on organization-marketplace skills. All skills are on by default; unchecked ones are saved as the profile's disabled_skills deny-list. * feat(settings): add a tools picker and tool catalog endpoint to the Agent Profile editor (OHE-3754) (#1012) GET /api/tools/catalog serves the SDK tool registry's catalog (a copy of the endpoint proposed in #763). The editor's sub-agents and LLM-switching switches move under a Tools section with two modes: "Standard set" keeps today's behaviour, "Choose tools" lists the catalog and saves an explicit tool list, which the profile-backed automation templates require. The picker is seeded from the standard set, pinned entries keep their params, a pinned tool the catalog does not list is shown and flagged once the catalog has loaded, and at least one tool is required.
…E-3755) (#1013) * feat(settings): add system prompt, condenser and verification to the Agent Profile editor (OHE-3748) System prompt in three modes (OpenHands default, default plus instructions as system_message_suffix, custom persona), and the condenser and verification sections of the agent-settings schema rendered per profile, excluding the global-only verification keys. Hidden fields and cleared values are left out of the stored section so server defaults apply; a section is never written back unseeded. * feat(settings): add skills with organization scope to the Agent Profile editor (OHE-3749) A Skills section listing the server's global and user skills plus the skills of every marketplace the member inherits or registered, with an Organization badge on organization-marketplace skills. All skills are on by default; unchecked ones are saved as the profile's disabled_skills deny-list. * feat(settings): let org admins manage organization Agent Profiles (OHE-3755) Behind the new enable_org_agent_profiles flag (ENABLE_ORG_AGENT_PROFILES), admins and owners (frontend permission manage_org_agent_profiles) get an "Add organization profile" button and Edit/Delete on the organization's profiles; legacy ACP org profiles can only be deleted. Other members keep the read-only section. The editor takes a profileScope. For an org profile it hides the agent kind and the MCP section (saving mcp_server_refs: []), always lists the organization's shared secrets explicitly, loads instance and inherited marketplace skills only, and warns when a legacy org profile still has null refs. Writes use the edited row's scope. * feat(settings): add a tools picker and tool catalog endpoint to the Agent Profile editor (OHE-3754) (#1012) GET /api/tools/catalog serves the SDK tool registry's catalog (a copy of the endpoint proposed in #763). The editor's sub-agents and LLM-switching switches move under a Tools section with two modes: "Standard set" keeps today's behaviour, "Choose tools" lists the catalog and saves an explicit tool list, which the profile-backed automation templates require. The picker is seeded from the standard set, pinned entries keep their params, a pinned tool the catalog does not list is shown and flagged once the catalog has loaded, and at least one tool is required.
…tems (OHE-3456) The user context menu hides the Agent Context and Agent Profiles entries until enable_agent_context_page and enable_agent_profiles_page are on, and the mocked config in these tests leaves both off. Exclude those paths the way the tests already exclude the other hidden routes.
The previous commit let prettier rewrap the whole file; keep only the flag-gated path exclusion it was meant to add.
hieptl
added a commit
that referenced
this pull request
Oct 27, 2026
…storage-api-and Resolves the conflicts with the merged Agent Profiles work (#753, #754, #755, #763, #1007, #1010, #1011) by keeping both sides: both feature flags and their nav-hiding rules, both LLM-profile delete guards and rename cascades in org_profiles, and the Model Router launch hydration after main's SDK-based Agent Profile resolution in saas_settings_store. The user-menu test keeps the isSettingsPageHidden filter, which covers main's hard-coded agent-page set as well as the Model Router page. Semantic follow-ups: re-add the resolve_profile_llm import main dropped from saas_settings_store (the router hydration still uses it), and renumber the Model Router migration from 199 to 201 chaining off main's 200 (main now holds 199 and 200), and move the alembic head pinned by main's agent-profile upgrade test from 200 to 201 accordingly.
Contributor
|
🚀 Released in 1.81.0. |
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.
HUMAN:
AGENT:
Why
A member in OHE has no way to manage agent profiles: the personal Agent page is a single-agent form, and Agent Canvas redirects every settings page to
/settings/appwhen locked to Cloud. OHE-3456 asks for a personal Agent Profiles page inside the OHE settings shell that matches the Canvas experience, with personal and org-scoped profiles together on one page like the Secrets page.Summary
enable_agent_profiles_page(SaaS): Agent Profiles (/settings/agents) replaces Agent in Personal Settings,/settings/agentredirects there, and the ACP guard is off (the agent kind then comes from the active profile). With the flag off, the Agent page and navigation are exactly as today.scope=personal) and an Organization agent profiles section listing the org's shared ones read-only (set as default only), hidden when the org has none. A Default badge marks the active profile.enable_acp), LLM profile, sub-agents and "let the agent switch LLM profiles" (astoolsentriestask_tool_set/switch_llm, since SDK 1.58.1 retired the boolean switches), parallel tool calls, MCP servers (all or chosen), secrets (no restriction or chosen; personal and organization-shared secrets listed with an Organization badge), and ACP preset, command, model and credentials.utils/acp-agent-form.ts;ProfileActionsMenumakes Edit, Rename and Delete optional so org rows offer only Set as default;ProfileNameInputtakes the agent-profile name rule.Issue Number
OHE-3747, part of OHE-3456. Needs #753 (the
scopeAPI) on the backend; stacked on #754 because both touch the same navigation files.How to Test
From
frontend/:All pass locally. Manually, as a member on a deployment running #753 with
OH_WEB_CLIENT_FEATURE_FLAGS_ENABLE_AGENT_PROFILES_PAGE=true, at least one LLM profile, one MCP server and one saved secret:/settings/agentlands on/settings/agents.enable_acpon: create an ACP profile, pick a preset, enter credentials, Save. The row's secondary label reads "ACP".Video/Screenshots
Navigation: flag off (today) vs flag on. With the flag on, Agent is replaced by Agent Profiles + Agent Context, and
/settings/agentredirects to/settings/agents./settings/agent(unchanged)/settings/agentsRow actions. Personal profiles get Edit, Set as default and Delete. Org-shared profiles only get Set as default.
Set as default moves the Default badge and shows a toast. Delete asks for confirmation first.
pr-reviewerEditor. Create and edit share one in-place form: name, agent kind, LLM profile, the sub-agents and switch-LLM toggles (saved as
toolsentries), parallel tool calls, MCP servers ("All servers" or "Choose servers") and secrets ("No profile restriction" or "Choose secrets", with org-shared secrets badged Organization). For an ACP agent, the LLM and tool fields are replaced by preset, command, model and credentials.Type
Notes
scopeparameter is ignored and a member's save returns 403, so merge feat(agent-profiles): add personal-scoped Agent Profiles to the API and launch lookup (OHE-3746) #753 first and keep the flag off until then.toolsandsecret_refstake effect at cloud launch once fix(agent-profiles): align Enterprise launches with the SDK #763 lands; LLM profile, MCP scope and parallel tool calls already do.Enterprise server image for this PR: