Commit Graph
3 Commits
Author SHA1 Message Date
Davide Silvestri 9080e662ec chore(agent): Agent Builder analytics events for PostHog (#6914)
* feat(agent): send Agent Builder analytics events to PostHog

Adds metadata-only events for the Agent Builder dashboard: agent_run_finished,
agent_trigger_skipped (one per skip episode), labelled tool lists and
waited_seconds on decide_agent_tool_approvals, and a content-free
$ai_generation per agent model request. Tool labels never carry action or
MCP tool names. Nothing is read or sent when PostHog is disabled, including
the action_done receiver, which now returns early.

* feat(agent): send create modal steps to PostHog

* refactor(agent): drop $ai_latency and merge overlapping analytics tests

* fix(agent): report every reply ending, including failures before a run
2026-11-30 15:07:35 +00:00
Bram e8e335a23d Small agent UI/UX improvements (#6862) 2026-11-25 14:04:40 +01:00
Davide Silvestri cc361e6658 feat(agent): create agents with a setup wizard (#6765)
* feat(agent): create agents with a two-step setup wizard

The create modal asks for a name and what the agent should do, then reviews
instructions, how it starts, the identity it acts as, permissions and extras.
The choices are applied through the endpoints Configuration uses; a choice
that can't be applied is reported and the agent still opens.

The Run as dropdown can also create an identity. Application types supply
their create modal through getCreateModalComponent.

* feat(agent): add tools, model and identity choices to the create wizard

The wizard gains a third screen for the provider, model, reasoning effort and
web search. Review can create an identity and pick tools one by one. Each
suggestion now fills the whole setup: how the agent starts, its schedule,
permissions, web search and actions.

A new endpoint lists the tools an agent created in a workspace can be given,
so they can be picked before the agent exists. The provider, model and effort
fields are one component shared by Configuration and the wizard.

* fix(agent): choose the wizard identity role from workspace tools

* fix(agent): address create wizard review

Skip locked tools in the permission presets, create the identity before
the agent so a rejected name stops the wizard, number suggestion names,
select the prefilled name, report models that can't search the web, show
a failed tools request and fix the Read only icon.

* fix(agent): address second create wizard review

Give a new identity Builder when the agent may change data, reuse the
identity a failed create made, explain why web search stays off and pass
the workspace to the tool picker.
2026-11-20 14:32:37 +01:00