Skip to content

Commit c800571

Browse files
chore: fix issues
1 parent 3a18111 commit c800571

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

agent/agentcontainers/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
11831183
slices.Sort(displayApps)
11841184

11851185
subAgentConfig.DisplayApps = displayApps
1186+
subAgentConfig.Apps = apps
11861187
}
11871188

11881189
deleteSubAgent := proc.agent.ID != uuid.Nil && maybeRecreateSubAgent && !proc.agent.EqualConfig(subAgentConfig)

agent/agentcontainers/subagent.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ func (a *subAgentAPIClient) Create(ctx context.Context, agent SubAgent) (SubAgen
181181
share = agentproto.CreateSubAgentRequest_App_OWNER.Enum()
182182
case codersdk.WorkspaceAppSharingLevelPublic:
183183
share = agentproto.CreateSubAgentRequest_App_PUBLIC.Enum()
184+
case codersdk.WorkspaceAppSharingLevelOrganization:
185+
share = agentproto.CreateSubAgentRequest_App_ORGANIZATION.Enum()
184186
default:
185187
return SubAgent{}, xerrors.Errorf("unexpected codersdk.WorkspaceAppSharingLevel: %#v", app.Share)
186188
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy