Repository navigation
feat(settings): let org admins manage organization Agent Profiles (OHE-3755) - #1013
Merged
Conversation
…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.
…le 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.
…E-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.
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
hieptl
marked this pull request as ready for review
October 26, 2026 15:57
…gent 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.
…-agent-profiles-editor-skills-with-org-scoped-skills-listed Resolve the conflicts after #1008 was squash-merged into the base branch and main was merged into it: - agent-profile-form-state.ts, agent-profile-form.tsx, agent-profiles-view.tsx: keep this branch's versions; the base side only carried #1008's content, which this branch already builds on. - i18n/translation.json: the base file plus the 12 keys only this branch adds; declaration.ts regenerated with make-i18n.
…ped-skills-listed' into hiep/ohe-3755-org-agent-profiles-org-agent-profile-management-on-the-agent Resolve the conflicts after #1012 was squash-merged into the base branch and the base picked up main: - agent-profile-form.tsx: combine both edits of the editor's doc comment (the base's updated settings list plus this branch's org-scope clause). - i18n/translation.json: the base file plus the 7 keys only this branch adds; declaration.ts regenerated with make-i18n.
Base automatically changed from
hiep/ohe-3749-agent-profiles-editor-skills-with-org-scoped-skills-listed
to
hieptl/ohe-3456-agent-profiles-page
October 27, 2026 12:02
hieptl
merged commit Oct 27, 2026
e70f649
into
hieptl/ohe-3456-agent-profiles-page
13 of 20 checks passed
hieptl
deleted the
hiep/ohe-3755-org-agent-profiles-org-agent-profile-management-on-the-agent
branch
October 27, 2026 12:21
hieptl
added a commit
that referenced
this pull request
Oct 27, 2026
…feature flag (OHE-3747) (#755) * feat(settings): add feature flags for the Agent Context and Agent Profiles 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. * feat(settings): add the personal Agent Context page behind a feature 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. * feat(settings): add the Agent Profiles page replacing Agent behind a 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. * feat(settings): add system prompt, condenser and verification to the 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. * feat(settings): add skills with organization scope to the Agent Profile 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. * feat(settings): let org admins manage organization Agent Profiles (OHE-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. * test(settings): keep flag-gated pages out of the expected user menu items (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. * test(settings): restore the user menu test's original formatting The previous commit let prettier rewrap the whole file; keep only the flag-gated path exclusion it was meant to add.
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.
Summary
Organization Agent Profile management on the Agent Profiles page, behind a new feature flag (OHE-3755, part of OHE-3088).
enable_org_agent_profiles(envENABLE_ORG_AGENT_PROFILES, or the structuredOH_WEB_CLIENT_FEATURE_FLAGS_*form), default off. Frontend permissionmanage_org_agent_profilesfor admins and owners, matching the backend'sEDIT_ORG_SETTINGS.profileScope. In org mode it hides the agent kind (OpenHands only) and the MCP section (savesmcp_server_refs: []), always lists the organization's shared secrets explicitly (all pre-selected for a new profile or a legacynull), loads instance and inherited-marketplace skills only, and shows a warning when editing a legacy org profile whose refs are stillnull. Writes use the edited row's scope. LLM profiles are unchanged: the personal and org endpoints return the same org collection.Notes
Validation
npm run lint: exit 0 (5 pre-existing warnings).npm run check-translation-completeness: all keys complete.vitestsettings sweep plus__tests__/utils/org: 43 files, 466 passed.pre-commiton the Python files: passed.tests/unit/app_server/test_default_web_client_config_injector.py: 106 passed.Linear: OHE-3755
Enterprise server image for this PR: