Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8698100

Browse files
chore: fix issues
1 parent c273b23 commit 8698100

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)