Skip to content
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
fa61d95
Merge branch 'main' of https://github.com/ambient-code/platform
jsell-rh Jun 3, 2026
50ddfb8
feat(ambient-ui): restructure sidebar into Operate/Build nav groups
jsell-rh Jun 3, 2026
e15a4da
feat(ambient-ui): add Dashboard as default project landing page
jsell-rh Jun 3, 2026
2e99338
feat(ambient-ui): agent detail page, CRUD, and lifecycle badges
jsell-rh Jun 3, 2026
22928df
feat(ambient-ui): Work Item/Review columns, bulk ops, timestamp toggle
jsell-rh Jun 3, 2026
bd60f88
feat(ambient-ui): keyboard navigation, command palette, escape-back
jsell-rh Jun 3, 2026
ba45b4e
fix(ambient-ui): pass projectId to agent get/update/delete operations
jsell-rh Jun 3, 2026
6cd4808
fix(ambient-ui,api): agent PATCH persists all fields, tab restructure
jsell-rh Jun 3, 2026
42360b1
feat(ambient-ui): Run Test Session split-pane on agent detail page
jsell-rh Jun 3, 2026
f1f20dc
fix(ambient-ui): test sessions stopped immediately, missing annotation
jsell-rh Jun 3, 2026
a099a1a
fix(ambient-ui): centralize model options, add test session badge
jsell-rh Jun 3, 2026
3587de6
fix(ambient-ui): add chat input to test pane, fix re-run and header o…
jsell-rh Jun 3, 2026
b30f43a
fix(ambient-ui): pin test pane to viewport height with internal scroll
jsell-rh Jun 3, 2026
58219be
feat(ambient-ui): display git commit SHA in sidebar footer
jsell-rh Jun 3, 2026
3c81b99
feat(ambient-ui): rename Sessions→Run History, filter test runs, open…
jsell-rh Jun 3, 2026
dfb0bfd
fix(ambient-ui): consistent cursor on run history rows
jsell-rh Jun 3, 2026
3778ff0
fix(ambient-ui): test pane input below fold due to missing min-h-0
jsell-rh Jun 3, 2026
21aedfb
fix(ambient-ui): remove chat icon from sessions table header
jsell-rh Jun 3, 2026
538fe3a
feat(ambient-ui): make agent name a clickable link in sessions table
jsell-rh Jun 3, 2026
8c54a67
fix(ambient-ui): prevent test pane input from scrolling below viewport
jsell-rh Jun 3, 2026
aac19f7
fix(ambient-ui): pin split-pane to viewport height when test pane open
jsell-rh Jun 3, 2026
af29ce5
fix(ambient-ui): use fixed positioning for test pane split layout
jsell-rh Jun 3, 2026
301eb74
fix(ambient-ui): use calc height instead of fixed positioning for spl…
jsell-rh Jun 3, 2026
ff96f07
fix(ambient-ui): replace ResizablePanelGroup with simple flex + sticky
jsell-rh Jun 3, 2026
086847d
fix(ambient-ui): use sticky top-14 with calc height for test pane
jsell-rh Jun 3, 2026
afcb937
feat(ambient-ui): unify chat sidebar with multi-session tabs
jsell-rh Jun 3, 2026
e3b19f3
fix(ambient-ui): add tooltips to sidebar hide/close buttons
jsell-rh Jun 3, 2026
7235e88
feat(ambient-ui): always-visible tabs, + button, responsive dashboard
jsell-rh Jun 3, 2026
481f7dc
fix(ambient-ui): anchor + popover to tab strip, responsive phase dots
jsell-rh Jun 3, 2026
6b34edd
Merge branch 'main' into jsell/feat/ambient-ui-dashboard-agents
mergify[bot] Jun 3, 2026
c06f355
fix(api-server): add DEFAULT values to agent LLM migration columns
jsell-rh Jun 3, 2026
9337ef7
fix(api-server): remove BeforeCreate temperature/maxTokens defaults
jsell-rh Jun 3, 2026
4304c73
Merge branch 'main' into jsell/feat/ambient-ui-dashboard-agents
jsell-rh Jun 3, 2026
f40dd08
test(api-server): write agent integration tests for CRUD + isolation
jsell-rh Jun 3, 2026
0f89be7
fix(ambient-ui): address 14 CodeRabbit review findings
jsell-rh Jun 3, 2026
98aabf4
fix(api-server): restore BeforeCreate defaults with sentinel for temp…
jsell-rh Jun 4, 2026
9c40c62
fix(api-server): correct test assertions, symmetric sentinel for max_…
jsell-rh Jun 4, 2026
3e49062
fix(runner): extract last assistant message, not first, from snapshot
jsell-rh Jun 4, 2026
c022e10
fix(ambient-ui): pass projectId to TestToolbar, generic error messages
jsell-rh Jun 4, 2026
e6b2676
feat(ambient-ui): persist draft messages in localStorage per session
jsell-rh Jun 4, 2026
66926bf
fix(runner): add push_error to GRPCMessageWriter for crash recovery
jsell-rh Jun 4, 2026
bdacbb7
docs(runner): update GRPCMessageWriter module docstring
jsell-rh Jun 4, 2026
634cb43
fix(ambient-ui): fix nested interactive element in tab strip (a11y)
jsell-rh Jun 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions components/ambient-api-server/plugins/agents/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import (
"context"
"fmt"

"github.com/ambient-code/platform/components/ambient-api-server/pkg/api/openapi"
"github.com/ambient-code/platform/components/ambient-api-server/plugins/agents"
"github.com/openshift-online/rh-trex-ai/pkg/api/presenters"
"github.com/openshift-online/rh-trex-ai/pkg/environments"
)

Expand All @@ -24,6 +26,22 @@ func newAgent(name string) (*agents.Agent, error) {
return sub, nil
}

func newAgentWithProject(name string, projectID string) (*agents.Agent, error) {
agentService := agents.Service(&environments.Environment().Services)

agent := &agents.Agent{
ProjectId: projectID,
Name: name,
}

sub, err := agentService.Create(context.Background(), agent)
if err != nil {
return nil, fmt.Errorf("agents.Create: %s", err.Error())
}

return sub, nil
}

func newAgentList(namePrefix string, count int) ([]*agents.Agent, error) {
var items []*agents.Agent
for i := 1; i <= count; i++ {
Expand All @@ -37,10 +55,35 @@ func newAgentList(namePrefix string, count int) ([]*agents.Agent, error) {
return items, nil
}

func presentAgent(agent *agents.Agent) openapi.Agent {
reference := presenters.PresentReference(agent.ID, agent)
return openapi.Agent{
Id: reference.Id,
Kind: reference.Kind,
Href: reference.Href,
CreatedAt: openapi.PtrTime(agent.CreatedAt),
UpdatedAt: openapi.PtrTime(agent.UpdatedAt),
ProjectId: agent.ProjectId,
ParentAgentId: agent.ParentAgentId,
OwnerUserId: openapi.PtrString(agent.OwnerUserId),
Name: agent.Name,
DisplayName: agent.DisplayName,
Description: agent.Description,
Prompt: agent.Prompt,
RepoUrl: agent.RepoUrl,
WorkflowId: agent.WorkflowId,
LlmModel: openapi.PtrString(agent.LlmModel),
LlmTemperature: openapi.PtrFloat64(agent.LlmTemperature),
LlmMaxTokens: openapi.PtrInt32(agent.LlmMaxTokens),
}
}

func stringPtr(s string) *string { return &s }

var (
_ = newAgent
_ = newAgentWithProject
_ = newAgentList
_ = presentAgent
_ = stringPtr
)
18 changes: 18 additions & 0 deletions components/ambient-api-server/plugins/agents/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,27 @@ func (h agentHandler) Patch(w http.ResponseWriter, r *http.Request) {
if patch.Name != nil {
found.Name = *patch.Name
}
if patch.DisplayName != nil {
found.DisplayName = patch.DisplayName
}
if patch.Description != nil {
found.Description = patch.Description
}
if patch.Prompt != nil {
found.Prompt = patch.Prompt
}
if patch.RepoUrl != nil {
found.RepoUrl = patch.RepoUrl
}
if patch.LlmModel != nil {
found.LlmModel = *patch.LlmModel
}
if patch.LlmTemperature != nil {
found.LlmTemperature = *patch.LlmTemperature
}
if patch.LlmMaxTokens != nil {
found.LlmMaxTokens = *patch.LlmMaxTokens
}
if patch.Labels != nil {
found.Labels = patch.Labels
}
Expand Down
Loading
Loading